CodeIgniter Forums
About Code Style - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31)
+--- Thread: About Code Style (/showthread.php?tid=68674)



About Code Style - mcsaygili - 08-11-2017

Hello, I'm using PhpStorm. PhpStorm has a support for PSR1/PSR2 with Codeigniter 3. What about CI 4 ? Do we have ? Or how can we make one ?  I'm using this page for editing my IDE code formats, https://www.codeigniter.com/userguide3/general/styleguide.html

Can any one share if already build it?


RE: About Code Style - kilishan - 08-11-2017

I've attached my current one here. I don't know that covers all of it, but should cover most of it.


RE: About Code Style - mcsaygili - 08-12-2017

Thank you. I will try  Angel


RE: About Code Style - EpicKris - 08-14-2017

(08-11-2017, 11:09 AM)kilishan Wrote: I've attached my current one here. I don't know that covers all of it, but should cover most of it.

Could we make an exception for this in source control?


RE: About Code Style - kilishan - 08-14-2017

(08-14-2017, 12:13 PM)EpicKris Wrote:
(08-11-2017, 11:09 AM)kilishan Wrote: I've attached my current one here. I don't know that covers all of it, but should cover most of it.

Could we make an exception for this in source control?

I'm not sure I follow. Once imported, it shouldn't be in the project anymore, just the IDE, right?


RE: About Code Style - louisl - 08-27-2017

Hasn't been tested much yet and is subject to change but I've created this PHPCS Standard https://github.com/louisl/CodeIgniter4-Standard.

I don't use PHPStorm but here's a guide I found on how to install other standards https://confluence.jetbrains.com/display/PhpStorm/PHP+Code+Sniffer+in+PhpStorm.