diff options
author | Thomas Lange <code@nerdmind.de> | 2024-12-01 18:09:09 +0100 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2024-12-01 19:50:22 +0100 |
commit | 2ac4bdca2ab38990f891371282a3a17af290e78f (patch) | |
tree | 4383257740b3a4ae1800ac989d24234eefc0d8c2 /admin/page/insert.php | |
parent | ebc5cf9ac20b959c6d4a6a34643eb8657cf9db84 (diff) | |
download | blog-2ac4bdca2ab38990f891371282a3a17af290e78f.tar.gz blog-2ac4bdca2ab38990f891371282a3a17af290e78f.tar.xz blog-2ac4bdca2ab38990f891371282a3a17af290e78f.zip |
PHP Keywords and types should be in lowercase
Follow PSR-12 and use lowercase variants of PHP reserved keywords.
See: https://www.php-fig.org/psr/psr-12/#25-keywords-and-types
Find all uppercase occurrences of "or", "and", "null", "true" and
"false" and change them to the lowercase variant.
Diffstat (limited to 'admin/page/insert.php')
-rw-r--r-- | admin/page/insert.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/admin/page/insert.php b/admin/page/insert.php index 915fee5..7577433 100644 --- a/admin/page/insert.php +++ b/admin/page/insert.php @@ -2,8 +2,8 @@ #=============================================================================== # DEFINE: Administration #=============================================================================== -const ADMINISTRATION = TRUE; -const AUTHENTICATION = TRUE; +const ADMINISTRATION = true; +const AUTHENTICATION = true; #=============================================================================== # INCLUDE: Initialization @@ -27,9 +27,9 @@ $Page = new ORM\Entities\Page; if(HTTP::issetPOST('insert')) { $Page->set('user', HTTP::POST('user')); $Page->set('slug', HTTP::POST('slug') ?: generateSlug(HTTP::POST('name'))); - $Page->set('name', HTTP::POST('name') ?: NULL); - $Page->set('body', HTTP::POST('body') ?: NULL); - $Page->set('argv', HTTP::POST('argv') ?: NULL); + $Page->set('name', HTTP::POST('name') ?: null); + $Page->set('body', HTTP::POST('body') ?: null); + $Page->set('argv', HTTP::POST('argv') ?: null); $Page->set('time_insert', HTTP::POST('time_insert') ?: date('Y-m-d H:i:s')); $Page->set('time_update', HTTP::POST('time_update') ?: date('Y-m-d H:i:s')); |