Skip to content

Instantly share code, notes, and snippets.

@lloricode
Last active July 4, 2025 14:34
Show Gist options
  • Select an option

  • Save lloricode/175ceefd1b3b65d29250fa68d5faad86 to your computer and use it in GitHub Desktop.

Select an option

Save lloricode/175ceefd1b3b65d29250fa68d5faad86 to your computer and use it in GitHub Desktop.

Revisions

  1. lloricode revised this gist Oct 25, 2022. 1 changed file with 27 additions and 1 deletion.
    28 changes: 27 additions & 1 deletion pint.json
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,8 @@
    {
    "preset": "psr12",
    "exclude": [
    "config"
    "config",
    "build"
    ],
    "notPath": [
    "ray.php"
    @@ -11,10 +12,27 @@
    "array_indentation": true,
    "array_syntax": true,
    "assign_null_coalescing_to_coalesce_equal": true,
    "binary_operator_spaces": true,
    "blank_line_before_statement": {
    "statements": [
    "break",
    "continue",
    "declare",
    "return",
    "throw",
    "try"
    ]
    },
    "cast_spaces": true,
    "class_attributes_separation": {
    "elements": {
    "method": "one"
    }
    },
    "clean_namespace": true,
    "combine_consecutive_issets": true,
    "combine_consecutive_unsets": true,
    "declare_strict_types": true,
    "doctrine_annotation_indentation": true,
    "doctrine_annotation_spaces": true,
    "fully_qualified_strict_types": true,
    @@ -27,6 +45,10 @@
    "list_syntax": true,
    "magic_constant_casing": true,
    "magic_method_casing": true,
    "method_argument_space": {
    "on_multiline": "ensure_fully_multiline",
    "keep_multiple_spaces_after_comma": true
    },
    "method_chaining_indentation": true,
    "multiline_comment_opening_closing": true,
    "multiline_whitespace_before_semicolons": true,
    @@ -48,17 +70,21 @@
    "no_whitespace_before_comma_in_array": true,
    "no_whitespace_in_blank_line": true,
    "not_operator_with_space": true,
    "not_operator_with_successor_space": true,
    "php_unit_fqcn_annotation": true,
    "phpdoc_line_span": {
    "const": "single",
    "method": "single",
    "property": "single"
    },
    "phpdoc_scalar": true,
    "phpdoc_single_line_var_spacing": true,
    "phpdoc_var_without_name": true,
    "simple_to_complex_string_variable": true,
    "simplified_if_return": true,
    "single_quote": true,
    "standardize_not_equals": true,
    "trailing_comma_in_multiline": true,
    "trim_array_spaces": true,
    "types_spaces": true,
    "unary_operator_spaces": true,
  2. lloricode revised this gist Aug 19, 2022. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions pint.json
    Original file line number Diff line number Diff line change
    @@ -43,6 +43,7 @@
    "no_multiple_statements_per_line": true,
    "no_singleline_whitespace_before_semicolons": true,
    "no_spaces_around_offset": true,
    "no_unneeded_import_alias": true,
    "no_unused_imports": true,
    "no_whitespace_before_comma_in_array": true,
    "no_whitespace_in_blank_line": true,
    @@ -54,7 +55,9 @@
    "property": "single"
    },
    "phpdoc_scalar": true,
    "simple_to_complex_string_variable": true,
    "simplified_if_return": true,
    "single_quote": true,
    "standardize_not_equals": true,
    "trim_array_spaces": true,
    "types_spaces": true,
  3. lloricode revised this gist Aug 11, 2022. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions pint.json
    Original file line number Diff line number Diff line change
    @@ -36,11 +36,15 @@
    "no_alternative_syntax": true,
    "no_empty_comment": true,
    "no_empty_statement": true,
    "no_extra_blank_lines": true,
    "no_leading_namespace_whitespace": true,
    "no_mixed_echo_print": true,
    "no_multiline_whitespace_around_double_arrow": true,
    "no_multiple_statements_per_line": true,
    "no_singleline_whitespace_before_semicolons": true,
    "no_spaces_around_offset": true,
    "no_unused_imports": true,
    "no_whitespace_before_comma_in_array": true,
    "no_whitespace_in_blank_line": true,
    "not_operator_with_space": true,
    "php_unit_fqcn_annotation": true,
  4. lloricode created this gist Aug 9, 2022.
    60 changes: 60 additions & 0 deletions pint.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,60 @@
    {
    "preset": "psr12",
    "exclude": [
    "config"
    ],
    "notPath": [
    "ray.php"
    ],
    "rules": {
    "align_multiline_comment": true,
    "array_indentation": true,
    "array_syntax": true,
    "assign_null_coalescing_to_coalesce_equal": true,
    "cast_spaces": true,
    "clean_namespace": true,
    "combine_consecutive_issets": true,
    "combine_consecutive_unsets": true,
    "doctrine_annotation_indentation": true,
    "doctrine_annotation_spaces": true,
    "fully_qualified_strict_types": true,
    "function_typehint_space": true,
    "global_namespace_import": true,
    "heredoc_indentation": true,
    "include": true,
    "lambda_not_used_import": true,
    "linebreak_after_opening_tag": true,
    "list_syntax": true,
    "magic_constant_casing": true,
    "magic_method_casing": true,
    "method_chaining_indentation": true,
    "multiline_comment_opening_closing": true,
    "multiline_whitespace_before_semicolons": true,
    "native_function_casing": true,
    "native_function_type_declaration_casing": true,
    "no_alias_language_construct_call": true,
    "no_alternative_syntax": true,
    "no_empty_comment": true,
    "no_empty_statement": true,
    "no_leading_namespace_whitespace": true,
    "no_mixed_echo_print": true,
    "no_multiple_statements_per_line": true,
    "no_singleline_whitespace_before_semicolons": true,
    "no_unused_imports": true,
    "no_whitespace_in_blank_line": true,
    "not_operator_with_space": true,
    "php_unit_fqcn_annotation": true,
    "phpdoc_line_span": {
    "const": "single",
    "method": "single",
    "property": "single"
    },
    "phpdoc_scalar": true,
    "simplified_if_return": true,
    "standardize_not_equals": true,
    "trim_array_spaces": true,
    "types_spaces": true,
    "unary_operator_spaces": true,
    "whitespace_after_comma_in_array": true
    }
    }