Repository Config
filter:
excluded_paths:
- 'tests/*'
checks:
php:
fix_php_opening_tag: false
remove_php_closing_tag: false
one_class_per_file: false
side_effects_or_types: false
no_mixed_inline_html: false
require_braces_around_control_structures: false
php5_style_constructor: true
no_global_keyword: false
avoid_usage_of_logical_operators: false
psr2_class_declaration: true
no_underscore_prefix_in_properties: false
no_underscore_prefix_in_methods: false
blank_line_after_namespace_declaration: false
single_namespace_per_use: true
psr2_switch_declaration: true
psr2_control_structure_declaration: false
avoid_superglobals: false
security_vulnerabilities: true
no_exit: false
use_self_instead_of_fqcn: true
uppercase_constants: true
simplify_boolean_return: true
remove_extra_empty_lines: true
avoid_fixme_comments: true
properties_in_camelcaps: true
prefer_while_loop_over_for_loop: true
phpunit_assertions: true
return_doc_comments: true
coding_style:
php:
spaces:
around_operators:
additive: false
multiplicative: false
build: true
Global Config
filter:
excluded_paths:
- 'tests/*'
- '*.min.js'
checks:
php:
fix_php_opening_tag: false
remove_php_closing_tag: false
one_class_per_file: true
side_effects_or_types: false
no_mixed_inline_html: false
require_braces_around_control_structures: false
php5_style_constructor: true
no_global_keyword: false
avoid_usage_of_logical_operators: false
psr2_class_declaration: true
no_underscore_prefix_in_properties: true
no_underscore_prefix_in_methods: true
blank_line_after_namespace_declaration: false
single_namespace_per_use: true
psr2_switch_declaration: true
psr2_control_structure_declaration: false
avoid_superglobals: false
security_vulnerabilities: true
no_exit: false
avoid_multiple_statements_on_same_line: true
encourage_single_quotes: true
fix_line_ending: true
function_in_camel_caps: true
line_length:
max_length: '120'
naming_conventions:
local_variable: '^[a-z][a-zA-Z0-9]*$'
abstract_class_name: ^Abstract|Factory$
utility_class_name: 'Utils?$'
constant_name: '^[A-Z][A-Z0-9]*(?:_[A-Z0-9]+)*$'
property_name: '^[a-z][a-zA-Z0-9]*$'
method_name: '^(?:[a-z]|__)[a-zA-Z0-9]*$'
parameter_name: '^[a-z][a-zA-Z0-9]*$'
interface_name: '^[A-Z][a-zA-Z0-9]*Interface$'
type_name: '^[A-Z][a-zA-Z0-9]*$'
exception_name: '^[A-Z][a-zA-Z0-9]*Exception$'
isser_method_name: '^(?:is|has|should|may|supports)'
newline_at_end_of_file: true
no_goto: true
no_short_method_names:
minimum: '3'
no_short_variable_names:
minimum: '2'
optional_parameters_at_the_end: true
parameters_in_camelcaps: true
phpunit_assertions: true
prefer_while_loop_over_for_loop: true
properties_in_camelcaps: true
remove_extra_empty_lines: true
simplify_boolean_return: true
uppercase_constants: true
use_self_instead_of_fqcn: true
return_doc_comments: true
return_doc_comment_if_not_inferrable: true
parameter_doc_comments: true
param_doc_comment_if_not_inferrable: true
more_specific_types_in_doc_comments: true
javascript:
no_var: false
coding_style:
php:
spaces:
around_operators:
concatenation: true