コード例 #1
0
ファイル: FixCommand.php プロジェクト: fabpot/php-cs-fixer
 /**
  * @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;
     }
 }