Repository Config
build:
nodes:
analysis:
project_setup:
override:
- 'true'
tests:
override:
- php-scrutinizer-run
-
command: phpcs-run
use_website_config: true
environment:
node:
version: 6.0.0
checks:
php:
fix_php_opening_tag: false
remove_php_closing_tag: false
no_mixed_inline_html: false
require_braces_around_control_structures: true
psr2_control_structure_declaration: true
avoid_superglobals: false
security_vulnerabilities: true
no_exit: false
javascript: true
filter:
excluded_paths:
- '*.min.js'
- 'lib/'
- 'Resources/'
Global Config
coding_style:
php:
spaces:
before_parentheses:
array_initializer: 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: upper