adding some comment headers to constants and global functions
This commit is contained in:
parent
e5c0eae622
commit
10aae0a9f2
@ -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);
|
||||
|
||||
|
@ -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',
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user