Completed
Pull Request — master (#7)
by Harry
01:42
created

Global Config

# language: php

coding_style:
    php:
        spaces:
            before_parentheses:
                closure_definition: true
        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

checks:
    php:
        uppercase_constants: true
        use_self_instead_of_fqcn: true
        switch_fallthrough_commented: true
        single_namespace_per_use: true
        simplify_boolean_return: true
        require_scope_for_properties: true
        require_scope_for_methods: true
        psr2_class_declaration: true
        properties_in_camelcaps: true
        prefer_while_loop_over_for_loop: true
        phpunit_assertions: true
        php5_style_constructor: false
        parameters_in_camelcaps: true
        avoid_closing_tag: true
        avoid_aliased_php_functions: true
        align_assignments: true
        avoid_superglobals: true
        avoid_todo_comments: true
        avoid_usage_of_logical_operators: true
        blank_line_after_namespace_declaration: true
        classes_in_camel_caps: true
        encourage_postdec_operator: true
        encourage_shallow_comparison: true
        fix_line_ending: true
        function_in_camel_caps: true
        line_length:
            max_length: '120'
        newline_at_end_of_file: true
        no_commented_out_code: true
        no_exit: true
        no_global_keyword: true
        no_goto: true
        no_long_variable_names:
            maximum: '20'
        no_short_method_names:
            minimum: '3'
        no_short_open_tag: true
        no_underscore_prefix_in_methods: true
        no_underscore_prefix_in_properties: true
        non_commented_empty_catch_block: true
        one_class_per_file: true
        optional_parameters_at_the_end: true
        parameter_doc_comments: true
        return_doc_comments: true
        return_doc_comment_if_not_inferrable: true
        param_doc_comment_if_not_inferrable: true
        no_short_variable_names:
            minimum: '2'
        remove_extra_empty_lines: true
        fix_use_statements:
            remove_unused: true
            preserve_multiple: false
            preserve_blanklines: true
            order_alphabetically: true