catfan / Medoo

The lightweight PHP database framework to accelerate the development.
https://medoo.in
MIT License
4.83k stars 1.15k forks source link

[ENHANCEMENT] Code does not follow PSR-1 or PSR-2 #552

Closed smartclash closed 3 years ago

smartclash commented 7 years ago

Hi @catfan ,

Medoo is a simple and awesome project. Every feature is tight-packed into a single class. I agree that point. But the more features getting added, the code style really varies from one line to another, one function to another.

To prevent this, please either use PSR-1 or PSR-2 code fixer implemented by symfony or simply create an account at styleci.io and it will take care of every thing.

And, most important thing, Nowadays, IDE's all believe in PHPDoc and all rely on them for code-completion and suggestions. Just launch up PHPDocGenerator and let it do the hard work for you.

rakshazi commented 7 years ago

good idea! @catfan use PHP CS Fixer v2, please

Glennmen commented 6 years ago

Indeed please enforce PSR-2