CodeIgniter Forums
Good Conventions - 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: Good Conventions (/showthread.php?tid=65844)



Good Conventions - prezire - 07-31-2016

I noticed system core files contain very good implementations such as single quotes for non-interpolated strings, strict return and parameter datatypes, strict equality and yoda conditions, good variable names and such. However, I also noticed almost half of the codes don't implement these.

These items may or may not be included during code reviews but it would be nice to have them implemented properly in the CI4 core in order to utilize PHP7's capabilities. If so, these conventions may need to be included in the User Guide's Contributing section as well.