Repository Config
tools:
php_sim: true
php_pdepend: true
php_analyzer: true
php_code_sniffer:
config:
standard: WordPress
filter:
excluded_paths:
- 'tests/*'
coding_style:
php:
indentation:
general:
use_tabs: true
spaces:
around_operators:
unary_additive: true
negation: true
concatenation: true
within:
array_initializer: true
grouping: true
function_call: true
function_declaration: true
if: true
for: true
while: true
switch: true
catch: true
ternary_operator:
in_short_version: true
braces:
classes_functions:
class: end-of-line
function: end-of-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
constants:
true_false_null: lower
Global Config
tools:
php_sim: true
php_pdepend: true
php_analyzer: true
php_code_sniffer:
config:
standard: WordPress
filter:
excluded_paths:
- 'tests/*'
coding_style:
php:
indentation:
general:
use_tabs: true
spaces:
around_operators:
unary_additive: true
negation: true
concatenation: true
within:
array_initializer: true
grouping: true
function_call: true
function_declaration: true
if: true
for: true
while: true
switch: true
catch: true
ternary_operator:
in_short_version: true
braces:
classes_functions:
class: end-of-line
function: end-of-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
constants:
true_false_null: lower