Passed
Push — master ( beb5fc...4d9ea0 )
by Anton
02:12
created

Global Config

coding_style:
    php:
        spaces:
            before_parentheses:
                closure_definition: true
            before_left_brace:
                class: false
                function: false
                if: false
                else: false
                for: false
                while: false
                do: false
                switch: false
                try: false
                catch: false
                finally: false
            before_keywords:
                else: false
                while: false
                catch: false
                finally: false
            other:
                after_type_cast: false
        braces:
            classes_functions:
                class: new-line
                function: new-line
                closure: new-line
            if:
                opening: new-line
                else_on_new_line: true
            for:
                opening: new-line
            while:
                opening: new-line
            do_while:
                opening: new-line
                while_on_new_line: true
            switch:
                opening: new-line
            try:
                opening: new-line
                catch_on_new_line: true
                finally_on_new_line: true
        upper_lower_casing:
            keywords:
                general: lower
            constants:
                true_false_null: lower

checks:
    javascript: {  }
    php:
        avoid_closing_tag: true
        avoid_aliased_php_functions: true
        avoid_conflicting_incrementers: true
        avoid_duplicate_types: true
        avoid_fixme_comments: true
        avoid_length_functions_in_loops: true
        avoid_todo_comments: true
        avoid_superglobals: true
        avoid_perl_style_comments: true
        avoid_multiple_statements_on_same_line: true
        avoid_usage_of_logical_operators: true
        avoid_unnecessary_concatenation: true
        avoid_useless_overridden_methods: true
        classes_in_camel_caps: true
        code_rating: false
        closure_use_not_conflicting: true
        deadlock_detection_in_loops: true
        deprecated_code_usage: true
        duplication: true
        encourage_postdec_operator: true
        encourage_single_quotes: true
        fix_doc_comments: true
        instanceof_class_exists: true
        uppercase_constants: true
        unused_variables: true
        unused_properties: true
        unused_parameters: true
        unused_methods: true
        unreachable_code: true
        sql_injection_vulnerabilities: true
        simplify_boolean_return: true
        single_namespace_per_use: true
        side_effects_or_types: true
        security_vulnerabilities: true
        require_scope_for_properties: true
        require_scope_for_methods: true
        require_php_tag_first: true
        psr2_switch_declaration: false
        no_eval: true
        no_exit: true
        no_global_keyword: true
        no_goto: true
        no_long_variable_names:
            maximum: '20'
        no_new_line_at_end_of_file: true
        no_non_implemented_abstract_methods: true
        no_short_open_tag: true
        no_unnecessary_if: true
        one_class_per_file: true
        parameters_in_camelcaps: true
        php5_style_constructor: true
        use_self_instead_of_fqcn: true
        function_in_camel_caps: true
        fix_use_statements:
            remove_unused: true
            preserve_multiple: false
            preserve_blanklines: false
            order_alphabetically: false
        properties_in_camelcaps: true
        prefer_while_loop_over_for_loop: true
        parameter_doc_comments: true
        optional_parameters_at_the_end: true
        more_specific_types_in_doc_comments: true
        return_doc_comments: true

build:
  nodes:
    analysis:
      tests:
        override: [php-scrutinizer-run]