@@ -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; |
@@ -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 |
@@ -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 |