Example #1
0
 /**
  * Construct an instance of a StyleConfig.
  *
  * @param string $name
  * @param string $description
  * @param null $finder
  */
 public function __construct($name = 'chroma', $description = 'Chroma default configuration', $finder = null)
 {
     parent::__construct($name, $description);
     $this->finder = coalesce($finder, $this->makeFinder());
     $this->level(FixerInterface::NONE_LEVEL);
     $this->fixers(['encoding', 'short_tag', 'braces', 'elseif', 'eof_ending', 'function_call_space', 'function_declaration', 'indentation', 'line_after_namespace', 'linefeed', 'lowercase_constants', 'lowercase_keywords', 'method_argument_space', 'multiple_use', 'parenthesis', 'php_closing_tag', 'trailing_spaces', 'visibility', 'duplicate_semicolon', 'extra_empty_lines', 'multiline_array_trailing_comma', 'new_with_braces', 'object_operator', 'operators_spaces', 'remove_lines_between_uses', 'return', 'single_array_no_trailing_comma', 'spaces_before_semicolon', 'spaces_cast', 'standardize_not_equal', 'ternary_spaces', 'whitespacy_lines', 'concat_with_spaces', 'multiline_spaces_before_semicolon', 'short_array_syntax', 'remove_leading_slash_use', 'phpdoc_order', 'unused_use', 'single_quote', 'single_blank_line_before_namespace', 'spaces_before_semicolon', 'trim_array_spaces', 'phpdoc_var_without_name', 'phpdoc_to_comment', 'phpdoc_short_description', 'phpdoc_scalar', 'phpdoc_no_empty_return', 'phpdoc_no_access', 'no_empty_lines_after_phpdocs', 'no_blank_lines_after_class_opening', 'join_function_fixer', 'blankline_after_open_tag', 'unalign_double_arrow', 'unalign_equals', 'short_echo_tag', 'php4_constructor']);
 }
Example #2
0
 /**
  * @param string $name
  * @param string $description
  */
 public function __construct($name = self::class, $description = '')
 {
     parent::__construct($name, $description);
     $this->level = FixerInterface::PSR2_LEVEL;
     $this->fixers = $this->getDefaultFixers();
     $this->setUsingCache(true);
 }
 public function __construct()
 {
     parent::__construct();
     $this->finder = new Symfony23Finder();
 }
Example #4
0
 public function __construct()
 {
     @trigger_error(sprintf('The "%s" class is deprecated. You should stop using it, as it will soon be removed in 2.0 version.', __CLASS__), E_USER_DEPRECATED);
     parent::__construct();
     $this->finder = new Symfony23Finder();
 }
 public function __construct()
 {
     parent::__construct();
     $this->finder = new MagentoFinder();
 }