/** * @param FixerInterface $fixer * * @return bool */ private function isFixerConfigurable(FixerInterface $fixer) { try { $fixer->configure(array()); return true; } catch (UnallowedFixerConfigurationException $e) { return false; } catch (\Exception $e) { return true; } }