Closed r15ch13 closed 6 years ago
removed ?> and end of file
But according to PSR-1:
PHP code MUST use the long <?php ?> tags or the short-echo <?= ?> tags; it MUST NOT use the other tag variations.
Oh, that's actually from PSR-2.
Okay, weird. So the coding styles do not actually expand on each other.
Oh, that's actually from PSR-2.
Okay, weird. So the coding styles do not actually expand on each other, as it is claimed.
I think this is mainly for excluding the ASP Tags <%=
and %>
. ?>
is still used for inline code:
Date: <?php date(); ?> an so on.
I don't intend to open the pandora's box of a discussion about whitespaces, the placement of curly braces or function names.
Here are some code examples of widely used PHP projects: PHPUnit, for unit testing: Assert.php Guzzle, an HTTP client: Client.php Symfony, framework: Application.php Laravel, framework: Model.php
You're the project owner, you decide. :smile:
Ok fine then :stuck_out_tongue:
Thank you, I'll merge now. The project looks a bit prettier now. Especially the configuration is much better this way :tada:
This time it's mostly style changes and changes to
config.php
:smile:camelCase
?>
and end of filecleanup.php
andmigrate_db.php
(just in case the.htaccess
fails)config.php
is now a Class with constants:Config::MAX_UPLOAD_FILE_SIZE_KB
(norequire 'config.php'
in functions)