Passed
Push — master ( a6d17d...559900 )
by Alexey
05:21
created

Repository Config

filter:
    excluded_paths:
        - 'spec/'
        - 'stub/'
        - 'tests/'
        - '*/stub/*'
        - '*/spec/*'
        - '*/tests/*'
checks:
    php:
        uppercase_constants: true
        simplify_boolean_return: true
        return_doc_comments: true
        remove_extra_empty_lines: true
        properties_in_camelcaps: true
        phpunit_assertions: true
        parameters_in_camelcaps: true
        parameter_doc_comments: true
        optional_parameters_at_the_end: true
        no_goto: true
        more_specific_types_in_doc_comments: true
        line_length:
            max_length: '120'
        function_in_camel_caps: true
        encourage_postdec_operator: true
        classes_in_camel_caps: true
        check_method_contracts:
            verify_interface_like_constraints: true
            verify_documented_constraints: true
            verify_parent_constraints: true
        avoid_perl_style_comments: true
        avoid_multiple_statements_on_same_line: true

coding_style:
    php:
        spaces:
            before_parentheses:
                closure_definition: true
            around_operators:
                concatenation: true
            other:
                after_type_cast: false
        braces:
            classes_functions:
                class: new-line
                function: new-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

build:
    environment:
        php: '7.0.8'
    tests:
        override:
            -
                command: 'phpunit --configuration phpunit.xml --coverage-clover=phpunit-coverage.cov'
                coverage:
                    file: 'phpunit-coverage.cov'
                    format: 'clover'
            - 
                command: './vendor/bin/phpspec --config=phpspec.yml run'
                coverage:
                    file: 'phpspec_coverage.xml'
                    format: 'clover'