Passed
Branch v1.2.0 (bfb331)
by Deric
02:47
created

Repository Config

before_commands:
    - composer install --prefer-source --no-interaction --no-dev
checks:
    php:
        code_rating: true
        remove_extra_empty_lines: true
        remove_php_closing_tag: true
        remove_trailing_whitespace: true
        fix_use_statements:
            remove_unused: true
            preserve_multiple: false
            preserve_blanklines: true
            order_alphabetically: true
        fix_php_opening_tag: true
        fix_linefeed: true
        fix_line_ending: true
        fix_identation_4spaces: true
        fix_doc_comments: true
tools:
    php_cs_fixer:
        enabled: true
        config:
            level: psr2
    php_mess_detector:
        enabled: true
        config:
            rulesets:
                - codesize
                - unusedcode
                - naming
                - design
            naming_rules:
                short_variable:
                    minimum: 2
    php_analyzer: true
    php_code_sniffer:
        config:
            standard: PSR2
        filter:
            paths: ['lib']
build:
    nodes:
        tests:
        analysis:
            tests:
                override:
                    - php-scrutinizer-run

Global Config

coding_style:
    php:
        spaces:
            around_operators:
                concatenation: true
        braces:
            classes_functions:
                class: new-line
                function: new-line
                closure: new-line
            for:
                opening: new-line
            while:
                opening: new-line
            do_while:
                opening: new-line
            switch:
                opening: new-line
            try:
                opening: new-line
        upper_lower_casing:
            keywords:
                general: lower
            constants:
                true_false_null: upper