@@ -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 |
@@ -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 | //-------------------------------------------------------------------- |
@@ -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 @@ 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,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,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 |
@@ -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 |