adding some comment headers to constants and global functions

This commit is contained in:
Brian 2022-09-15 10:45:04 -06:00
parent e5c0eae622
commit 10aae0a9f2
Signed by: brian
GPG Key ID: DE1A5390A3B84CD8
3 changed files with 30 additions and 0 deletions

View File

@ -1,5 +1,15 @@
<?php
/*
|--------------------------------------------------------------------------
| Cache TTL (Time-To-Live)
|--------------------------------------------------------------------------
|
| Here is a collection of intervals in seconds that are commong to use
| when caching, but written as a more human-friendly phrase.
|
*/
define('CACHE_TTL_FIVE_MINUTES', 300);
define('CACHE_TTL_FIFTEEN_MINUTES', 900);

View File

@ -1,5 +1,15 @@
<?php
/*
|--------------------------------------------------------------------------
| HTTP Status Codes
|--------------------------------------------------------------------------
|
| Here is a collection of HTTP status codes and a corresponding string
| that is human-friendly and easy to remember.
|
*/
$httpCodes = [
// 100's (informational / "hold on")
100 => 'HTTP_CONTINUE',

View File

@ -1,5 +1,15 @@
<?php
/*
|--------------------------------------------------------------------------
| Global Functions
|--------------------------------------------------------------------------
|
| This is a home for functions that don't belong to any one class and
| that should be available anywhere in the application.
|
*/
if (! function_exists('snake2Title')) {
/**
* Convert a snake case string to a title with spaces