Global Config
checks:
php:
code_rating: true
duplication: true
uppercase_constants: true
optional_parameters_at_the_end: true
no_goto: true
function_in_camel_caps: true
classes_in_camel_caps: true
avoid_perl_style_comments: true
filter:
paths:
- src/*
- lib/*
coding_style:
php:
indentation:
general:
use_tabs: true
spaces:
before_parentheses:
if: false
for: false
while: false
switch: false
catch: false
within:
function_declaration: true
if: true
for: true
while: true
switch: true
catch: true
braces:
classes_functions:
class: end-of-line
function: end-of-line
closure: end-of-line
if:
opening: end-of-line
always: false
else_on_new_line: true
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
catch_on_new_line: true
finally_on_new_line: true
upper_lower_casing:
keywords:
general: lower
constants:
true_false_null: lower