Giter Club home page Giter Club logo

Comments (3)

Jubeki avatar Jubeki commented on June 10, 2024 1

You have placed yoda_style and Laravel/laravel_phpdoc_alignment outside of the rules in pint.json.

You would need the following pint.json:

{
  "preset": "laravel",
  "rules": {
    "blank_line_between_import_groups": true,
    "concat_space": {
      "spacing": "none"
    },
    "class_attributes_separation": {
      "elements": {
        "method": "one"
      }
    },
    "curly_braces_position": {
      "control_structures_opening_brace": "same_line",
      "functions_opening_brace": "next_line_unless_newline_at_signature_end",
      "anonymous_functions_opening_brace": "same_line",
      "classes_opening_brace": "next_line_unless_newline_at_signature_end",
      "anonymous_classes_opening_brace": "same_line",
      "allow_single_line_empty_anonymous_classes": true,
      "allow_single_line_anonymous_functions": false
    },
    "explicit_string_variable": true,
    "global_namespace_import": {
      "import_classes": true,
      "import_constants": true,
      "import_functions": true
    },
    "new_with_braces": false,
    "not_operator_with_successor_space": false,
    "ordered_imports": {
      "sort_algorithm": "alpha",
      "imports_order": [
        "const",
        "class",
        "function"
      ]
    },
    "php_unit_test_annotation": {
      "style": "annotation"
    },
    "simple_to_complex_string_variable": true,
    "nullable_type_declaration_for_default_null_value": {
      "use_nullable_type_declaration": false
    },
    "nullable_type_declaration": false,
    "phpdoc_separation": false,
    "yoda_style": false,
    "Laravel/laravel_phpdoc_alignment": false
  }
}

from pint.

maxacarvalho avatar maxacarvalho commented on June 10, 2024

Oh boy, I need some rest 🫠
Thank you!

from pint.

driesvints avatar driesvints commented on June 10, 2024

Thanks @Jubeki

from pint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.