@@ -132,8 +132,8 @@ |
||
| 132 | 132 | * Load PHPError |
| 133 | 133 | * todo Look into enabling save file feature because that would be bad ass |
| 134 | 134 | */ |
| 135 | -if (ENVIRONMENT == 'development' && ! is_cli() && config_item('use_php_error') ) { |
|
| 136 | - require(__DIR__ . '/../php_error.php'); |
|
| 135 | +if (ENVIRONMENT == 'development' && ! is_cli() && config_item('use_php_error')) { |
|
| 136 | + require(__DIR__.'/../php_error.php'); |
|
| 137 | 137 | \php_error\reportErrors(array( |
| 138 | 138 | 'application_folders' => 'application', |
| 139 | 139 | 'ignore_folders' => 'system', |
@@ -6,8 +6,8 @@ |
||
| 6 | 6 | //-------------------------------------------------------------------- |
| 7 | 7 | |
| 8 | 8 | $config['modules_locations'] = array( |
| 9 | - APPPATH .'modules/', |
|
| 10 | - MYTHPATH .'CIModules/' |
|
| 9 | + APPPATH .'modules/', |
|
| 10 | + MYTHPATH .'CIModules/' |
|
| 11 | 11 | ); |
| 12 | 12 | |
| 13 | 13 | /* |
@@ -6,8 +6,8 @@ discard block |
||
| 6 | 6 | //-------------------------------------------------------------------- |
| 7 | 7 | |
| 8 | 8 | $config['modules_locations'] = array( |
| 9 | - APPPATH .'modules/', |
|
| 10 | - MYTHPATH .'CIModules/' |
|
| 9 | + APPPATH.'modules/', |
|
| 10 | + MYTHPATH.'CIModules/' |
|
| 11 | 11 | ); |
| 12 | 12 | |
| 13 | 13 | /* |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | | |
| 62 | 62 | | WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded! |
| 63 | 63 | */ |
| 64 | -$config['uri_protocol'] = 'REQUEST_URI'; |
|
| 64 | +$config['uri_protocol'] = 'REQUEST_URI'; |
|
| 65 | 65 | |
| 66 | 66 | /* |
| 67 | 67 | |-------------------------------------------------------------------------- |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | | than english. |
| 86 | 86 | | |
| 87 | 87 | */ |
| 88 | -$config['language'] = 'english'; |
|
| 88 | +$config['language'] = 'english'; |
|
| 89 | 89 | |
| 90 | 90 | /* |
| 91 | 91 | |-------------------------------------------------------------------------- |
@@ -401,9 +401,9 @@ discard block |
||
| 401 | 401 | */ |
| 402 | 402 | $config['cookie_prefix'] = ''; |
| 403 | 403 | $config['cookie_domain'] = ''; |
| 404 | -$config['cookie_path'] = '/'; |
|
| 404 | +$config['cookie_path'] = '/'; |
|
| 405 | 405 | $config['cookie_secure'] = FALSE; |
| 406 | -$config['cookie_httponly'] = FALSE; |
|
| 406 | +$config['cookie_httponly'] = FALSE; |
|
| 407 | 407 | |
| 408 | 408 | /* |
| 409 | 409 | |-------------------------------------------------------------------------- |
@@ -28,10 +28,10 @@ discard block |
||
| 28 | 28 | | always be used to set the mode correctly. |
| 29 | 29 | | |
| 30 | 30 | */ |
| 31 | -defined('FILE_READ_MODE') OR define('FILE_READ_MODE', 0644); |
|
| 31 | +defined('FILE_READ_MODE') OR define('FILE_READ_MODE', 0644); |
|
| 32 | 32 | defined('FILE_WRITE_MODE') OR define('FILE_WRITE_MODE', 0666); |
| 33 | -defined('DIR_READ_MODE') OR define('DIR_READ_MODE', 0755); |
|
| 34 | -defined('DIR_WRITE_MODE') OR define('DIR_WRITE_MODE', 0755); |
|
| 33 | +defined('DIR_READ_MODE') OR define('DIR_READ_MODE', 0755); |
|
| 34 | +defined('DIR_WRITE_MODE') OR define('DIR_WRITE_MODE', 0755); |
|
| 35 | 35 | |
| 36 | 36 | /* |
| 37 | 37 | |-------------------------------------------------------------------------- |
@@ -41,14 +41,14 @@ discard block |
||
| 41 | 41 | | These modes are used when working with fopen()/popen() |
| 42 | 42 | | |
| 43 | 43 | */ |
| 44 | -defined('FOPEN_READ') OR define('FOPEN_READ', 'rb'); |
|
| 45 | -defined('FOPEN_READ_WRITE') OR define('FOPEN_READ_WRITE', 'r+b'); |
|
| 46 | -defined('FOPEN_WRITE_CREATE_DESTRUCTIVE') OR define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care |
|
| 44 | +defined('FOPEN_READ') OR define('FOPEN_READ', 'rb'); |
|
| 45 | +defined('FOPEN_READ_WRITE') OR define('FOPEN_READ_WRITE', 'r+b'); |
|
| 46 | +defined('FOPEN_WRITE_CREATE_DESTRUCTIVE') OR define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care |
|
| 47 | 47 | defined('FOPEN_READ_WRITE_CREATE_DESCTRUCTIVE') OR define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b'); // truncates existing file data, use with care |
| 48 | -defined('FOPEN_WRITE_CREATE') OR define('FOPEN_WRITE_CREATE', 'ab'); |
|
| 49 | -defined('FOPEN_READ_WRITE_CREATE') OR define('FOPEN_READ_WRITE_CREATE', 'a+b'); |
|
| 50 | -defined('FOPEN_WRITE_CREATE_STRICT') OR define('FOPEN_WRITE_CREATE_STRICT', 'xb'); |
|
| 51 | -defined('FOPEN_READ_WRITE_CREATE_STRICT') OR define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b'); |
|
| 48 | +defined('FOPEN_WRITE_CREATE') OR define('FOPEN_WRITE_CREATE', 'ab'); |
|
| 49 | +defined('FOPEN_READ_WRITE_CREATE') OR define('FOPEN_READ_WRITE_CREATE', 'a+b'); |
|
| 50 | +defined('FOPEN_WRITE_CREATE_STRICT') OR define('FOPEN_WRITE_CREATE_STRICT', 'xb'); |
|
| 51 | +defined('FOPEN_READ_WRITE_CREATE_STRICT') OR define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b'); |
|
| 52 | 52 | |
| 53 | 53 | /* |
| 54 | 54 | |-------------------------------------------------------------------------- |
@@ -75,13 +75,13 @@ discard block |
||
| 75 | 75 | | http://tldp.org/LDP/abs/html/exitcodes.html |
| 76 | 76 | | |
| 77 | 77 | */ |
| 78 | -defined('EXIT_SUCCESS') OR define('EXIT_SUCCESS', 0); // no errors |
|
| 79 | -defined('EXIT_ERROR') OR define('EXIT_ERROR', 1); // generic error |
|
| 80 | -defined('EXIT_CONFIG') OR define('EXIT_CONFIG', 3); // configuration error |
|
| 81 | -defined('EXIT_UNKNOWN_FILE') OR define('EXIT_UNKNOWN_FILE', 4); // file not found |
|
| 82 | -defined('EXIT_UNKNOWN_CLASS') OR define('EXIT_UNKNOWN_CLASS', 5); // unknown class |
|
| 78 | +defined('EXIT_SUCCESS') OR define('EXIT_SUCCESS', 0); // no errors |
|
| 79 | +defined('EXIT_ERROR') OR define('EXIT_ERROR', 1); // generic error |
|
| 80 | +defined('EXIT_CONFIG') OR define('EXIT_CONFIG', 3); // configuration error |
|
| 81 | +defined('EXIT_UNKNOWN_FILE') OR define('EXIT_UNKNOWN_FILE', 4); // file not found |
|
| 82 | +defined('EXIT_UNKNOWN_CLASS') OR define('EXIT_UNKNOWN_CLASS', 5); // unknown class |
|
| 83 | 83 | defined('EXIT_UNKNOWN_METHOD') OR define('EXIT_UNKNOWN_METHOD', 6); // unknown class member |
| 84 | -defined('EXIT_USER_INPUT') OR define('EXIT_USER_INPUT', 7); // invalid user input |
|
| 85 | -defined('EXIT_DATABASE') OR define('EXIT_DATABASE', 8); // database error |
|
| 86 | -defined('EXIT__AUTO_MIN') OR define('EXIT__AUTO_MIN', 9); // lowest automatically-assigned error code |
|
| 87 | -defined('EXIT__AUTO_MAX') OR define('EXIT__AUTO_MAX', 125); // highest automatically-assigned error code |
|
| 84 | +defined('EXIT_USER_INPUT') OR define('EXIT_USER_INPUT', 7); // invalid user input |
|
| 85 | +defined('EXIT_DATABASE') OR define('EXIT_DATABASE', 8); // database error |
|
| 86 | +defined('EXIT__AUTO_MIN') OR define('EXIT__AUTO_MIN', 9); // lowest automatically-assigned error code |
|
| 87 | +defined('EXIT__AUTO_MAX') OR define('EXIT__AUTO_MAX', 125); // highest automatically-assigned error code |
|
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | * @link http://sprintphp.com |
| 30 | 30 | * @since Version 1.0 |
| 31 | 31 | */ |
| 32 | -if (!defined('BASEPATH')) exit('No direct script access allowed'); |
|
| 32 | +if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
|
| 33 | 33 | |
| 34 | 34 | use Myth\Cron\CronManager as CronManager; |
| 35 | 35 | |
@@ -48,8 +48,8 @@ discard block |
||
| 48 | 48 | * See the docs for details. |
| 49 | 49 | */ |
| 50 | 50 | |
| 51 | -CronManager::schedule('task1', '1 minutes', function () { return true; }); |
|
| 52 | -CronManager::schedule('task2 with a really long name that wont show well', '5 minutes', function () { return true; }); |
|
| 51 | +CronManager::schedule('task1', '1 minutes', function() { return true; }); |
|
| 52 | +CronManager::schedule('task2 with a really long name that wont show well', '5 minutes', function() { return true; }); |
|
| 53 | 53 | |
| 54 | 54 | // Process the mail queue every 5 minutes |
| 55 | 55 | CronManager::schedule('process_mail_queue', '5 minutes', '\Myth\Mail\Mail::process'); |
@@ -29,7 +29,9 @@ |
||
| 29 | 29 | * @link http://sprintphp.com |
| 30 | 30 | * @since Version 1.0 |
| 31 | 31 | */ |
| 32 | -if (!defined('BASEPATH')) exit('No direct script access allowed'); |
|
| 32 | +if (!defined('BASEPATH')) { |
|
| 33 | + exit('No direct script access allowed'); |
|
| 34 | +} |
|
| 33 | 35 | |
| 34 | 36 | //-------------------------------------------------------------------- |
| 35 | 37 | // Allowed Environments |
@@ -1,34 +1,34 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Sprint |
|
| 4 | - * |
|
| 5 | - * A set of power tools to enhance the CodeIgniter framework and provide consistent workflow. |
|
| 6 | - * |
|
| 7 | - * Permission is hereby granted, free of charge, to any person obtaining a copy |
|
| 8 | - * of this software and associated documentation files (the "Software"), to deal |
|
| 9 | - * in the Software without restriction, including without limitation the rights |
|
| 10 | - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
| 11 | - * copies of the Software, and to permit persons to whom the Software is |
|
| 12 | - * furnished to do so, subject to the following conditions: |
|
| 13 | - * |
|
| 14 | - * The above copyright notice and this permission notice shall be included in |
|
| 15 | - * all copies or substantial portions of the Software. |
|
| 16 | - * |
|
| 17 | - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
| 18 | - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
| 19 | - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
|
| 20 | - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
| 21 | - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
|
| 22 | - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
|
| 23 | - * THE SOFTWARE. |
|
| 24 | - * |
|
| 25 | - * @package Sprint |
|
| 26 | - * @author Lonnie Ezell |
|
| 27 | - * @copyright Copyright 2014-2015, New Myth Media, LLC (http://newmythmedia.com) |
|
| 28 | - * @license http://opensource.org/licenses/MIT (MIT) |
|
| 29 | - * @link http://sprintphp.com |
|
| 30 | - * @since Version 1.0 |
|
| 31 | - */ |
|
| 3 | + * Sprint |
|
| 4 | + * |
|
| 5 | + * A set of power tools to enhance the CodeIgniter framework and provide consistent workflow. |
|
| 6 | + * |
|
| 7 | + * Permission is hereby granted, free of charge, to any person obtaining a copy |
|
| 8 | + * of this software and associated documentation files (the "Software"), to deal |
|
| 9 | + * in the Software without restriction, including without limitation the rights |
|
| 10 | + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
| 11 | + * copies of the Software, and to permit persons to whom the Software is |
|
| 12 | + * furnished to do so, subject to the following conditions: |
|
| 13 | + * |
|
| 14 | + * The above copyright notice and this permission notice shall be included in |
|
| 15 | + * all copies or substantial portions of the Software. |
|
| 16 | + * |
|
| 17 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
| 18 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
| 19 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
|
| 20 | + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
| 21 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
|
| 22 | + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
|
| 23 | + * THE SOFTWARE. |
|
| 24 | + * |
|
| 25 | + * @package Sprint |
|
| 26 | + * @author Lonnie Ezell |
|
| 27 | + * @copyright Copyright 2014-2015, New Myth Media, LLC (http://newmythmedia.com) |
|
| 28 | + * @license http://opensource.org/licenses/MIT (MIT) |
|
| 29 | + * @link http://sprintphp.com |
|
| 30 | + * @since Version 1.0 |
|
| 31 | + */ |
|
| 32 | 32 | if (!defined('BASEPATH')) exit('No direct script access allowed'); |
| 33 | 33 | |
| 34 | 34 | use \Myth\Events\Events as Events; |
@@ -51,12 +51,12 @@ discard block |
||
| 51 | 51 | // Send New User Registration Email |
| 52 | 52 | Events::on('didRegisterUser', function($data) { |
| 53 | 53 | |
| 54 | - if ($data['method'] != 'email') |
|
| 55 | - { |
|
| 56 | - return true; |
|
| 57 | - } |
|
| 54 | + if ($data['method'] != 'email') |
|
| 55 | + { |
|
| 56 | + return true; |
|
| 57 | + } |
|
| 58 | 58 | |
| 59 | - return Mail::deliver('UserMailer:didRegister', [$data]); |
|
| 59 | + return Mail::deliver('UserMailer:didRegister', [$data]); |
|
| 60 | 60 | |
| 61 | 61 | }, EVENTS_PRIORITY_NORMAL); |
| 62 | 62 | |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | // Send Forgotten Password email |
| 66 | 66 | Events::on('didRemindUser', function($user, $token) { |
| 67 | 67 | |
| 68 | - return Mail::deliver('UserMailer:remindUser', [$user, $token]); |
|
| 68 | + return Mail::deliver('UserMailer:remindUser', [$user, $token]); |
|
| 69 | 69 | |
| 70 | 70 | }, EVENTS_PRIORITY_NORMAL); |
| 71 | 71 | |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | // Send Reset Password notice |
| 75 | 75 | Events::on('didResetPassword', function($user) { |
| 76 | 76 | |
| 77 | - return Mail::deliver('UserMailer:resetPassword', [$user]); |
|
| 77 | + return Mail::deliver('UserMailer:resetPassword', [$user]); |
|
| 78 | 78 | |
| 79 | 79 | }, EVENTS_PRIORITY_NORMAL); |
| 80 | 80 | |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | * @link http://sprintphp.com |
| 30 | 30 | * @since Version 1.0 |
| 31 | 31 | */ |
| 32 | -if (!defined('BASEPATH')) exit('No direct script access allowed'); |
|
| 32 | +if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
|
| 33 | 33 | |
| 34 | 34 | use \Myth\Events\Events as Events; |
| 35 | 35 | use Myth\Mail\Mail as Mail; |
@@ -29,7 +29,9 @@ |
||
| 29 | 29 | * @link http://sprintphp.com |
| 30 | 30 | * @since Version 1.0 |
| 31 | 31 | */ |
| 32 | -if (!defined('BASEPATH')) exit('No direct script access allowed'); |
|
| 32 | +if (!defined('BASEPATH')) { |
|
| 33 | + exit('No direct script access allowed'); |
|
| 34 | +} |
|
| 33 | 35 | |
| 34 | 36 | //-------------------------------------------------------------------- |
| 35 | 37 | // Allowed Environments |
@@ -1,34 +1,34 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Sprint |
|
| 4 | - * |
|
| 5 | - * A set of power tools to enhance the CodeIgniter framework and provide consistent workflow. |
|
| 6 | - * |
|
| 7 | - * Permission is hereby granted, free of charge, to any person obtaining a copy |
|
| 8 | - * of this software and associated documentation files (the "Software"), to deal |
|
| 9 | - * in the Software without restriction, including without limitation the rights |
|
| 10 | - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
| 11 | - * copies of the Software, and to permit persons to whom the Software is |
|
| 12 | - * furnished to do so, subject to the following conditions: |
|
| 13 | - * |
|
| 14 | - * The above copyright notice and this permission notice shall be included in |
|
| 15 | - * all copies or substantial portions of the Software. |
|
| 16 | - * |
|
| 17 | - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
| 18 | - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
| 19 | - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
|
| 20 | - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
| 21 | - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
|
| 22 | - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
|
| 23 | - * THE SOFTWARE. |
|
| 24 | - * |
|
| 25 | - * @package Sprint |
|
| 26 | - * @author Lonnie Ezell |
|
| 27 | - * @copyright Copyright 2014-2015, New Myth Media, LLC (http://newmythmedia.com) |
|
| 28 | - * @license http://opensource.org/licenses/MIT (MIT) |
|
| 29 | - * @link http://sprintphp.com |
|
| 30 | - * @since Version 1.0 |
|
| 31 | - */ |
|
| 3 | + * Sprint |
|
| 4 | + * |
|
| 5 | + * A set of power tools to enhance the CodeIgniter framework and provide consistent workflow. |
|
| 6 | + * |
|
| 7 | + * Permission is hereby granted, free of charge, to any person obtaining a copy |
|
| 8 | + * of this software and associated documentation files (the "Software"), to deal |
|
| 9 | + * in the Software without restriction, including without limitation the rights |
|
| 10 | + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
| 11 | + * copies of the Software, and to permit persons to whom the Software is |
|
| 12 | + * furnished to do so, subject to the following conditions: |
|
| 13 | + * |
|
| 14 | + * The above copyright notice and this permission notice shall be included in |
|
| 15 | + * all copies or substantial portions of the Software. |
|
| 16 | + * |
|
| 17 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
| 18 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
| 19 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
|
| 20 | + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
| 21 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
|
| 22 | + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
|
| 23 | + * THE SOFTWARE. |
|
| 24 | + * |
|
| 25 | + * @package Sprint |
|
| 26 | + * @author Lonnie Ezell |
|
| 27 | + * @copyright Copyright 2014-2015, New Myth Media, LLC (http://newmythmedia.com) |
|
| 28 | + * @license http://opensource.org/licenses/MIT (MIT) |
|
| 29 | + * @link http://sprintphp.com |
|
| 30 | + * @since Version 1.0 |
|
| 31 | + */ |
|
| 32 | 32 | if (!defined('BASEPATH')) exit('No direct script access allowed'); |
| 33 | 33 | |
| 34 | 34 | //-------------------------------------------------------------------- |
@@ -37,10 +37,10 @@ discard block |
||
| 37 | 37 | // Before any _generators are run, the current environment will be |
| 38 | 38 | // tested to verify it's an allowed environment. |
| 39 | 39 | // |
| 40 | - $config['forge.allowed_environments'] = [ |
|
| 41 | - 'development', |
|
| 42 | - 'travis' |
|
| 43 | - ]; |
|
| 40 | + $config['forge.allowed_environments'] = [ |
|
| 41 | + 'development', |
|
| 42 | + 'travis' |
|
| 43 | + ]; |
|
| 44 | 44 | |
| 45 | 45 | //-------------------------------------------------------------------- |
| 46 | 46 | // Themer to Use |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | // Define the themer to use when rendering our template files. |
| 49 | 49 | // This should include the fully namespaced classname. |
| 50 | 50 | // |
| 51 | - $config['forge.themer'] = '\Myth\Themers\ViewThemer'; |
|
| 51 | + $config['forge.themer'] = '\Myth\Themers\ViewThemer'; |
|
| 52 | 52 | |
| 53 | 53 | //-------------------------------------------------------------------- |
| 54 | 54 | // Generator Collections |
@@ -60,6 +60,6 @@ discard block |
||
| 60 | 60 | // |
| 61 | 61 | // The 'keys' are aliases that can be used to reference the view from. |
| 62 | 62 | // |
| 63 | - $config['forge.collections'] = [ |
|
| 64 | - 'sprint' => MYTHPATH .'_generators/' |
|
| 65 | - ]; |
|
| 66 | 63 | \ No newline at end of file |
| 64 | + $config['forge.collections'] = [ |
|
| 65 | + 'sprint' => MYTHPATH .'_generators/' |
|
| 66 | + ]; |
|
| 67 | 67 | \ No newline at end of file |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | * @link http://sprintphp.com |
| 30 | 30 | * @since Version 1.0 |
| 31 | 31 | */ |
| 32 | -if (!defined('BASEPATH')) exit('No direct script access allowed'); |
|
| 32 | +if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
|
| 33 | 33 | |
| 34 | 34 | //-------------------------------------------------------------------- |
| 35 | 35 | // Allowed Environments |
@@ -61,5 +61,5 @@ discard block |
||
| 61 | 61 | // The 'keys' are aliases that can be used to reference the view from. |
| 62 | 62 | // |
| 63 | 63 | $config['forge.collections'] = [ |
| 64 | - 'sprint' => MYTHPATH .'_generators/' |
|
| 64 | + 'sprint' => MYTHPATH.'_generators/' |
|
| 65 | 65 | ]; |
| 66 | 66 | \ No newline at end of file |
@@ -29,7 +29,9 @@ |
||
| 29 | 29 | * @link http://sprintphp.com |
| 30 | 30 | * @since Version 1.0 |
| 31 | 31 | */ |
| 32 | -if (!defined('BASEPATH')) exit('No direct script access allowed'); |
|
| 32 | +if (!defined('BASEPATH')) { |
|
| 33 | + exit('No direct script access allowed'); |
|
| 34 | +} |
|
| 33 | 35 | |
| 34 | 36 | //-------------------------------------------------------------------- |
| 35 | 37 | // Allowed Environments |
@@ -8,8 +8,8 @@ discard block |
||
| 8 | 8 | // |
| 9 | 9 | |
| 10 | 10 | $config['meta'] = [ |
| 11 | - 'x-ua-compatible' => 'ie=edge', |
|
| 12 | - 'viewport' => 'width=device-width, initial-scale=1', |
|
| 11 | + 'x-ua-compatible' => 'ie=edge', |
|
| 12 | + 'viewport' => 'width=device-width, initial-scale=1', |
|
| 13 | 13 | ]; |
| 14 | 14 | |
| 15 | 15 | //-------------------------------------------------------------------- |
@@ -20,5 +20,5 @@ discard block |
||
| 20 | 20 | // |
| 21 | 21 | |
| 22 | 22 | $config['http-equiv'] = [ |
| 23 | - 'x-dns-prefetch-control' |
|
| 23 | + 'x-dns-prefetch-control' |
|
| 24 | 24 | ]; |
@@ -83,7 +83,7 @@ |
||
| 83 | 83 | | The key is the alias that you will refer to when running migrations. |
| 84 | 84 | */ |
| 85 | 85 | $config['migration_paths'] = array( |
| 86 | - 'app' => APPPATH . 'database/migrations/' |
|
| 86 | + 'app' => APPPATH . 'database/migrations/' |
|
| 87 | 87 | ); |
| 88 | 88 | |
| 89 | 89 | |
@@ -83,7 +83,7 @@ |
||
| 83 | 83 | | The key is the alias that you will refer to when running migrations. |
| 84 | 84 | */ |
| 85 | 85 | $config['migration_paths'] = array( |
| 86 | - 'app' => APPPATH . 'database/migrations/' |
|
| 86 | + 'app' => APPPATH.'database/migrations/' |
|
| 87 | 87 | ); |
| 88 | 88 | |
| 89 | 89 | |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | 'jpm' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'), |
| 86 | 86 | 'mj2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'), |
| 87 | 87 | 'mjp2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'), |
| 88 | - 'png' => array('image/png', 'image/x-png'), |
|
| 88 | + 'png' => array('image/png', 'image/x-png'), |
|
| 89 | 89 | 'tiff' => 'image/tiff', |
| 90 | 90 | 'tif' => 'image/tiff', |
| 91 | 91 | 'css' => array('text/css', 'text/plain'), |