before_commands: - "composer install --prefer-source" tools: php_code_sniffer: enabled: true config: standard: PSR2 filter: paths: ["src/*"] php_cpd: enabled: true excluded_dirs: ["bin", "spec", "vendor"] php_analyzer: enabled: true filter: paths: ["src/*"] php_mess_detector: enabled: true filter: paths: ["src/*"] php_pdepend: enabled: true excluded_dirs: ["bin", "spec", "vendor"] build: tests: override: - command: 'phpunit -c phpunit.xml' coverage: file: 'build/clover.xml' format: 'php-clover'
checks: php: fix_php_opening_tag: true remove_php_closing_tag: true one_class_per_file: true side_effects_or_types: true no_mixed_inline_html: true require_braces_around_control_structures: true php5_style_constructor: true no_global_keyword: true avoid_usage_of_logical_operators: true psr2_class_declaration: true no_underscore_prefix_in_properties: true no_underscore_prefix_in_methods: true blank_line_after_namespace_declaration: true single_namespace_per_use: true psr2_switch_declaration: true psr2_control_structure_declaration: true avoid_superglobals: true security_vulnerabilities: true no_exit: true filter: { } coding_style: php: { }