Giter Site home page Giter Site logo

Comments (3)

collectiveaccess avatar collectiveaccess commented on July 28, 2024

There is a .editorconfig file that defines basic parameters. PHPStorm should honor these. For what it's worth, I have begun using PHPStorm/WebStorm myself... so please do keep using it on your end!

Many of the code formatting standards we've used date back quite a long time (to PHP 3 and 4 in a few cases). We are in the early stages of revising and codifying these. If you'd like to help us with this it would be much appreciated.

from providence.

miceno avatar miceno commented on July 28, 2024

There are two options:

  1. The quick one and easy one: I suggest we define a style on editconfig, we save it with the configuration, and we use it in PHPStorm. I don't feel like tidying us to a tool, but using a "standard".
  2. The long one: configure a command line PHP beautifier and formatter so we make sure all code is formatted the same way. In the long term, it should be this way, since you can run it before every commit and format code automatically. But it requires more effort, I don't feel on doing it as of now.

The critical issue as of now is that if we apply any editconfig/PHPStorm formatting it will update all the source code :( and it will not be nice on the git log.

I tried to apply any of the PHPStorm styles (PSR1/PSR2, Laravel, CodeIgniter...) and all of them introduced changes in spacing or braces location, or both :( So I don't feel like changing all the files as of now.

from providence.

miceno avatar miceno commented on July 28, 2024

merged on #364

from providence.

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.