Checkout Config
tools:
php_sim: true
php_pdepend: true
php_analyzer: true
sensiolabs_security_checker: true
filter:
paths:
- 'app/*'
excluded_paths:
- 'app/views/*'
- 'app/config/*'
- 'app/database/*'
- 'app/tests/*'
coding_style:
php:
spaces:
before_parentheses:
closure_definition: true
function_declaration: false
around_operators:
negation: true
concatenation: true
other:
after_type_cast: false
braces:
classes_functions:
class: new-line
function: new-line
closure: end-of-line
if:
opening: end-of-line
for:
opening: end-of-line
while:
opening: end-of-line
do_while:
opening: end-of-line
switch:
opening: end-of-line
try:
opening: end-of-line
upper_lower_casing:
keywords:
general: lower
checks:
php:
uppercase_constants: true
unused_methods: true
too_many_arguments: true
sql_injection_vulnerabilities: true
security_vulnerabilities: true
require_scope_for_properties: true
require_scope_for_methods: true
require_php_tag_first: false
remove_extra_empty_lines: true
psr2_class_declaration: true
psr2_switch_declaration: true
no_trailing_whitespace: false
no_short_open_tag: true
no_global_keyword: true
no_goto: true
more_specific_types_in_doc_comments: true
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: false
order_alphabetically: false
fix_doc_comments: true
encourage_single_quotes: true
encourage_shallow_comparison: true