Skip to content

Instantly share code, notes, and snippets.

@thecyrilcril
Forked from JustSteveKing/pint.json
Created June 20, 2023 11:19
Show Gist options
  • Select an option

  • Save thecyrilcril/f8b47d84619d08bbcebe5f78fb7caab1 to your computer and use it in GitHub Desktop.

Select an option

Save thecyrilcril/f8b47d84619d08bbcebe5f78fb7caab1 to your computer and use it in GitHub Desktop.

Revisions

  1. @JustSteveKing JustSteveKing revised this gist May 19, 2023. 1 changed file with 78 additions and 39 deletions.
    117 changes: 78 additions & 39 deletions pint.json
    Original file line number Diff line number Diff line change
    @@ -1,42 +1,81 @@
    {
    "preset": "psr12",
    "rules": {
    "align_multiline_comment": true,
    "array_indentation": true,
    "array_syntax": true,
    "blank_line_after_namespace": true,
    "blank_line_after_opening_tag": true,
    "combine_consecutive_issets": true,
    "combine_consecutive_unsets": true,
    "concat_space": true,
    "declare_parentheses": true,
    "declare_strict_types": true,
    "explicit_string_variable": true,
    "final_class": true,
    "final_internal_class": false,
    "fully_qualified_strict_types": true,
    "global_namespace_import": {
    "import_classes": true,
    "import_constants": true,
    "import_functions": true
    },
    "is_null": true,
    "lambda_not_used_import": true,
    "logical_operators": true,
    "mb_str_functions": true,
    "method_chaining_indentation": true,
    "modernize_strpos": true,
    "new_with_braces": true,
    "no_empty_comment": true,
    "not_operator_with_space": true,
    "ordered_traits": true,
    "protected_to_private": true,
    "simplified_if_return": true,
    "strict_comparison": true,
    "ternary_to_null_coalescing": true,
    "trim_array_spaces": true,
    "use_arrow_functions": true,
    "void_return": true,
    "yoda_style": true
    "preset": "psr12",
    "rules": {
    "align_multiline_comment": true,
    "array_indentation": true,
    "array_syntax": true,
    "blank_line_after_namespace": true,
    "blank_line_after_opening_tag": true,
    "combine_consecutive_issets": true,
    "combine_consecutive_unsets": true,
    "concat_space": {
    "spacing": "one"
    },
    "declare_parentheses": true,
    "declare_strict_types": true,
    "explicit_string_variable": true,
    "final_class": true,
    "fully_qualified_strict_types": true,
    "global_namespace_import": {
    "import_classes": true,
    "import_constants": true,
    "import_functions": true
    },
    "is_null": true,
    "lambda_not_used_import": true,
    "logical_operators": true,
    "mb_str_functions": true,
    "method_chaining_indentation": true,
    "modernize_strpos": true,
    "new_with_braces": true,
    "no_empty_comment": true,
    "not_operator_with_space": true,
    "ordered_traits": true,
    "protected_to_private": true,
    "simplified_if_return": true,
    "strict_comparison": true,
    "ternary_to_null_coalescing": true,
    "trim_array_spaces": true,
    "use_arrow_functions": true,
    "void_return": true,
    "yoda_style": true,
    "array_push": true,
    "assign_null_coalescing_to_coalesce_equal": true,
    "explicit_indirect_variable": true,
    "method_argument_space": {
    "on_multiline": "ensure_fully_multiline"
    },
    "modernize_types_casting": true,
    "no_superfluous_elseif": true,
    "no_useless_else": true,
    "nullable_type_declaration_for_default_null_value": true,
    "ordered_imports": {
    "sort_algorithm": "alpha"
    },
    "ordered_class_elements": {
    "order": [
    "use_trait",
    "case",
    "constant",
    "constant_public",
    "constant_protected",
    "constant_private",
    "property_public",
    "property_protected",
    "property_private",
    "construct",
    "destruct",
    "magic",
    "phpunit",
    "method_abstract",
    "method_public_static",
    "method_public",
    "method_protected_static",
    "method_protected",
    "method_private_static",
    "method_private"
    ],
    "sort_algorithm": "none"
    }
    }
    }
  2. @JustSteveKing JustSteveKing created this gist Jan 6, 2023.
    42 changes: 42 additions & 0 deletions pint.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,42 @@
    {
    "preset": "psr12",
    "rules": {
    "align_multiline_comment": true,
    "array_indentation": true,
    "array_syntax": true,
    "blank_line_after_namespace": true,
    "blank_line_after_opening_tag": true,
    "combine_consecutive_issets": true,
    "combine_consecutive_unsets": true,
    "concat_space": true,
    "declare_parentheses": true,
    "declare_strict_types": true,
    "explicit_string_variable": true,
    "final_class": true,
    "final_internal_class": false,
    "fully_qualified_strict_types": true,
    "global_namespace_import": {
    "import_classes": true,
    "import_constants": true,
    "import_functions": true
    },
    "is_null": true,
    "lambda_not_used_import": true,
    "logical_operators": true,
    "mb_str_functions": true,
    "method_chaining_indentation": true,
    "modernize_strpos": true,
    "new_with_braces": true,
    "no_empty_comment": true,
    "not_operator_with_space": true,
    "ordered_traits": true,
    "protected_to_private": true,
    "simplified_if_return": true,
    "strict_comparison": true,
    "ternary_to_null_coalescing": true,
    "trim_array_spaces": true,
    "use_arrow_functions": true,
    "void_return": true,
    "yoda_style": true
    }
    }