@@ -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 | // Authentication Type |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | // |
| 41 | 41 | // Allowed values: 'basic', 'digest' |
| 42 | 42 | // |
| 43 | - $config['api.auth_type'] = 'basic'; |
|
| 43 | + $config['api.auth_type'] = 'basic'; |
|
| 44 | 44 | |
| 45 | 45 | //-------------------------------------------------------------------- |
| 46 | 46 | // Realm |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | // the username of the client. This will typically be either |
| 59 | 59 | // 'username' or 'email'. |
| 60 | 60 | // |
| 61 | - $config['api.auth_field'] = 'email'; |
|
| 61 | + $config['api.auth_field'] = 'email'; |
|
| 62 | 62 | |
| 63 | 63 | //-------------------------------------------------------------------- |
| 64 | 64 | // IP Blacklists |
@@ -1,34 +1,34 @@ |
||
| 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 | |
| 33 | 33 | /** |
| 34 | 34 | * BUILD TOOL |
@@ -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,22 +37,22 @@ discard block |
||
| 37 | 37 | // We can automatically run any outstanding migrations in the core, |
| 38 | 38 | // the application and the modules themselves if this is set to TRUE. |
| 39 | 39 | // |
| 40 | - $config['auto_migrate'] = array( |
|
| 40 | + $config['auto_migrate'] = array( |
|
| 41 | 41 | // 'app', // Comment this line out to turn off auto-migrations. |
| 42 | - ); |
|
| 42 | + ); |
|
| 43 | 43 | |
| 44 | 44 | //-------------------------------------------------------------------- |
| 45 | 45 | // Site Information |
| 46 | 46 | //-------------------------------------------------------------------- |
| 47 | 47 | // |
| 48 | - $config['site.name'] = 'Sprint PHP'; |
|
| 49 | - $config['site.auth_email'] = '[email protected]'; |
|
| 48 | + $config['site.name'] = 'Sprint PHP'; |
|
| 49 | + $config['site.auth_email'] = '[email protected]'; |
|
| 50 | 50 | |
| 51 | 51 | //-------------------------------------------------------------------- |
| 52 | 52 | // Profiler |
| 53 | 53 | //-------------------------------------------------------------------- |
| 54 | 54 | // |
| 55 | - $config['show_profiler'] = true; |
|
| 55 | + $config['show_profiler'] = true; |
|
| 56 | 56 | |
| 57 | 57 | //-------------------------------------------------------------------- |
| 58 | 58 | // PHP Error |
@@ -79,15 +79,15 @@ discard block |
||
| 79 | 79 | // The cache types can be overriedden as class values within each |
| 80 | 80 | // controller. |
| 81 | 81 | // |
| 82 | - $config['cache_type'] = 'dummy'; |
|
| 83 | - $config['backup_cache_type'] = 'dummy'; |
|
| 82 | + $config['cache_type'] = 'dummy'; |
|
| 83 | + $config['backup_cache_type'] = 'dummy'; |
|
| 84 | 84 | |
| 85 | 85 | //-------------------------------------------------------------------- |
| 86 | 86 | // Themer |
| 87 | 87 | //-------------------------------------------------------------------- |
| 88 | 88 | // Sets the Themer Engine to use. |
| 89 | 89 | // |
| 90 | - $config['active_themer'] = '\Myth\Themers\ViewThemer'; |
|
| 90 | + $config['active_themer'] = '\Myth\Themers\ViewThemer'; |
|
| 91 | 91 | |
| 92 | 92 | //-------------------------------------------------------------------- |
| 93 | 93 | // Theme Paths |
@@ -95,12 +95,12 @@ discard block |
||
| 95 | 95 | // The aliases and paths to the theme folders. The key of each element |
| 96 | 96 | // is the alias name. This is used to reference within the 'display' |
| 97 | 97 | // method of the |
| 98 | - $config['theme.paths'] = array( |
|
| 99 | - 'bootstrap' => FCPATH .'themes/bootstrap3', |
|
| 100 | - 'foundation' => FCPATH .'themes/foundation5', |
|
| 101 | - 'docs' => FCPATH .'themes/docs', |
|
| 102 | - 'email' => FCPATH .'themes/email' |
|
| 103 | - ); |
|
| 98 | + $config['theme.paths'] = array( |
|
| 99 | + 'bootstrap' => FCPATH .'themes/bootstrap3', |
|
| 100 | + 'foundation' => FCPATH .'themes/foundation5', |
|
| 101 | + 'docs' => FCPATH .'themes/docs', |
|
| 102 | + 'email' => FCPATH .'themes/email' |
|
| 103 | + ); |
|
| 104 | 104 | |
| 105 | 105 | //-------------------------------------------------------------------- |
| 106 | 106 | // Variants |
@@ -112,10 +112,10 @@ discard block |
||
| 112 | 112 | // The key is the name the variant is referenced by. |
| 113 | 113 | // The value is the string that is added to the view name. |
| 114 | 114 | // |
| 115 | - $config['theme.variants'] = array( |
|
| 116 | - 'phone' => '+phone', |
|
| 117 | - 'tablet' => '+tablet', |
|
| 118 | - ); |
|
| 115 | + $config['theme.variants'] = array( |
|
| 116 | + 'phone' => '+phone', |
|
| 117 | + 'tablet' => '+tablet', |
|
| 118 | + ); |
|
| 119 | 119 | |
| 120 | 120 | //-------------------------------------------------------------------- |
| 121 | 121 | // AutoDetect Variants? |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | // mobile phone, or tablet to browse the site. This is then set |
| 126 | 126 | // in the Themer so it will attempt to use variant files. |
| 127 | 127 | // |
| 128 | - $config['theme.autodetect_variant'] = true; |
|
| 128 | + $config['theme.autodetect_variant'] = true; |
|
| 129 | 129 | |
| 130 | 130 | //-------------------------------------------------------------------- |
| 131 | 131 | // Default Theme |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | // This is the name of the folder that holds the default theme parts. |
| 134 | 134 | // This can be overridden in each controller via the $theme class variable. |
| 135 | 135 | // |
| 136 | - $config['theme.default_theme'] = 'bootstrap'; |
|
| 136 | + $config['theme.default_theme'] = 'bootstrap'; |
|
| 137 | 137 | |
| 138 | 138 | //-------------------------------------------------------------------- |
| 139 | 139 | // Use A UIKit? |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | // If defined, this should be the full name (with namespaces) of |
| 142 | 142 | // the UIKit to use within your views. |
| 143 | 143 | // |
| 144 | - $config['theme.uikit'] = '\Myth\UIKits\Bootstrap'; |
|
| 144 | + $config['theme.uikit'] = '\Myth\UIKits\Bootstrap'; |
|
| 145 | 145 | |
| 146 | 146 | //-------------------------------------------------------------------- |
| 147 | 147 | // Parse Views? |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | // |
| 160 | 160 | // This can be overridden on a per-call basis. |
| 161 | 161 | // |
| 162 | - $config['theme.auto_escape'] = true; |
|
| 162 | + $config['theme.auto_escape'] = true; |
|
| 163 | 163 | |
| 164 | 164 | //-------------------------------------------------------------------- |
| 165 | 165 | // Settings Stores |
@@ -172,10 +172,10 @@ discard block |
||
| 172 | 172 | // The 'key' is the alias the store can be referenced by later. |
| 173 | 173 | // The 'value' is the fully namespaced class name for the store. |
| 174 | 174 | // |
| 175 | - $config['settings.stores'] = [ |
|
| 176 | - 'db' => '\Myth\Settings\DatabaseStore', |
|
| 177 | - 'config' => '\Myth\Settings\ConfigStore' |
|
| 178 | - ]; |
|
| 175 | + $config['settings.stores'] = [ |
|
| 176 | + 'db' => '\Myth\Settings\DatabaseStore', |
|
| 177 | + 'config' => '\Myth\Settings\ConfigStore' |
|
| 178 | + ]; |
|
| 179 | 179 | |
| 180 | 180 | //-------------------------------------------------------------------- |
| 181 | 181 | // Default Settigns Store |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | // The default datastore to use if none is specified. This primarily |
| 184 | 184 | // is used for saving items and findBy, but does apply to all. |
| 185 | 185 | // |
| 186 | - $config['settings.default_store'] = 'db'; |
|
| 186 | + $config['settings.default_store'] = 'db'; |
|
| 187 | 187 | |
| 188 | 188 | |
| 189 | 189 | //-------------------------------------------------------------------- |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | // The default MailService to use when sending any emails through |
| 193 | 193 | // Myth\Mail\Mail commands. Must include the full namespace of the class. |
| 194 | 194 | // |
| 195 | - $config['mail.default_service'] = '\Myth\Mail\LogMailService'; |
|
| 195 | + $config['mail.default_service'] = '\Myth\Mail\LogMailService'; |
|
| 196 | 196 | |
| 197 | 197 | //-------------------------------------------------------------------- |
| 198 | 198 | // Mail: Pretend to send |
@@ -201,4 +201,4 @@ discard block |
||
| 201 | 201 | // emails and simply return a successful send. Useful during |
| 202 | 202 | // certain stages of testing. |
| 203 | 203 | // |
| 204 | - $config['mail.pretend'] = FALSE; |
|
| 204 | + $config['mail.pretend'] = FALSE; |
|
@@ -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 | // Auto Migrate? |
@@ -96,10 +96,10 @@ discard block |
||
| 96 | 96 | // is the alias name. This is used to reference within the 'display' |
| 97 | 97 | // method of the |
| 98 | 98 | $config['theme.paths'] = array( |
| 99 | - 'bootstrap' => FCPATH .'themes/bootstrap3', |
|
| 100 | - 'foundation' => FCPATH .'themes/foundation5', |
|
| 101 | - 'docs' => FCPATH .'themes/docs', |
|
| 102 | - 'email' => FCPATH .'themes/email' |
|
| 99 | + 'bootstrap' => FCPATH.'themes/bootstrap3', |
|
| 100 | + 'foundation' => FCPATH.'themes/foundation5', |
|
| 101 | + 'docs' => FCPATH.'themes/docs', |
|
| 102 | + 'email' => FCPATH.'themes/email' |
|
| 103 | 103 | ); |
| 104 | 104 | |
| 105 | 105 | //-------------------------------------------------------------------- |
@@ -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 | //-------------------------------------------------------------------- |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | // you might not want the extra risk associated with this cookie-based |
| 77 | 77 | // solution. |
| 78 | 78 | // |
| 79 | - $config['auth.allow_remembering'] = true; |
|
| 79 | + $config['auth.allow_remembering'] = true; |
|
| 80 | 80 | |
| 81 | 81 | //-------------------------------------------------------------------- |
| 82 | 82 | // Remember Me Salt |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | // If you are using Remember Me functionality, you should consider |
| 87 | 87 | // changing this value to be unique to your site. |
| 88 | 88 | // |
| 89 | - $config['auth.salt'] = 'ASimpleSalt'; |
|
| 89 | + $config['auth.salt'] = 'ASimpleSalt'; |
|
| 90 | 90 | |
| 91 | 91 | //-------------------------------------------------------------------- |
| 92 | 92 | // Remember Length |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | // 6 months - 14515200 |
| 107 | 107 | // 1 year - 29030400 |
| 108 | 108 | // |
| 109 | - $config['auth.remember_length'] = 1209600; |
|
| 109 | + $config['auth.remember_length'] = 1209600; |
|
| 110 | 110 | |
| 111 | 111 | |
| 112 | 112 | |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | // Throttling exponentially increases the time between allowed login |
| 124 | 124 | // attempts. |
| 125 | 125 | // |
| 126 | - $config['auth.allow_throttling'] = true; |
|
| 126 | + $config['auth.allow_throttling'] = true; |
|
| 127 | 127 | |
| 128 | 128 | //-------------------------------------------------------------------- |
| 129 | 129 | // Max Throttling Time |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | // |
| 135 | 135 | // This is the number of SECONDS max. |
| 136 | 136 | // |
| 137 | - $config['auth.max_throttle_time'] = 50; |
|
| 137 | + $config['auth.max_throttle_time'] = 50; |
|
| 138 | 138 | |
| 139 | 139 | //-------------------------------------------------------------------- |
| 140 | 140 | // Start Throttling After |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | // Throttling will start after X number of attempts. Before this, |
| 143 | 143 | // the user can make attempts like normal. |
| 144 | 144 | // |
| 145 | - $config['auth.allowed_login_attempts'] = 5; |
|
| 145 | + $config['auth.allowed_login_attempts'] = 5; |
|
| 146 | 146 | |
| 147 | 147 | //-------------------------------------------------------------------- |
| 148 | 148 | // Distributed Brute Force Checks |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | // The amount to multiply the average daily logins over the last 3 months |
| 151 | 151 | // by to determine if we might be under a distributed brute force attempt. |
| 152 | 152 | // |
| 153 | - $config['auth.dbrute_multiplier'] = 3; |
|
| 153 | + $config['auth.dbrute_multiplier'] = 3; |
|
| 154 | 154 | |
| 155 | 155 | //-------------------------------------------------------------------- |
| 156 | 156 | // Additional Suspension Time for Distributed Brute Force Attempts |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | // This is the number of SECONDS that will be added to all login |
| 159 | 159 | // attempts that are being throttled. |
| 160 | 160 | // |
| 161 | - $config['auth.distributed_brute_add_time'] = 45; |
|
| 161 | + $config['auth.distributed_brute_add_time'] = 45; |
|
| 162 | 162 | |
| 163 | 163 | |
| 164 | 164 | //-------------------------------------------------------------------- |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | // - 30 bits of entropy = minimum for a web service with business critical applications (e.g. SAAS). |
| 177 | 177 | // - 40 bits of entropy = minimum for a bank or other financial service. |
| 178 | 178 | // |
| 179 | - $config['auth.min_password_strength'] = 18; |
|
| 179 | + $config['auth.min_password_strength'] = 18; |
|
| 180 | 180 | |
| 181 | 181 | //-------------------------------------------------------------------- |
| 182 | 182 | // Use Dictionary |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | // dictionary to eliminate common words and their variations that would |
| 186 | 186 | // be pretty simply for a hacking attempt to guess? |
| 187 | 187 | // |
| 188 | - $config['auth.use_dictionary'] = false; |
|
| 188 | + $config['auth.use_dictionary'] = false; |
|
| 189 | 189 | |
| 190 | 190 | //-------------------------------------------------------------------- |
| 191 | 191 | // PASSWORD HASHING COST |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | // - 'email' The are sent an email with an activation link/code |
| 209 | 209 | // - 'manual' Requires manual approval by a site administrator. |
| 210 | 210 | // |
| 211 | - $config['auth.activation_method'] = 'auto'; |
|
| 211 | + $config['auth.activation_method'] = 'auto'; |
|
| 212 | 212 | |
| 213 | 213 | |
| 214 | 214 | //-------------------------------------------------------------------- |
@@ -220,4 +220,4 @@ discard block |
||
| 220 | 220 | //-------------------------------------------------------------------- |
| 221 | 221 | // Sets the Default role id to use when creating new users. |
| 222 | 222 | // |
| 223 | - $config['auth.default_role_id'] = 3; |
|
| 223 | + $config['auth.default_role_id'] = 3; |
|
@@ -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; |
@@ -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'); |
@@ -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; |
@@ -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 |