@@ -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 |
@@ -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 |
@@ -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 @@ 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 |
@@ -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 |
@@ -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'), |
@@ -17,48 +17,48 @@ |
||
17 | 17 | |
18 | 18 | // smiley image name width height alt |
19 | 19 | |
20 | - ':-)' => array('grin.gif', '19', '19', 'grin'), |
|
21 | - ':lol:' => array('lol.gif', '19', '19', 'LOL'), |
|
22 | - ':cheese:' => array('cheese.gif', '19', '19', 'cheese'), |
|
23 | - ':)' => array('smile.gif', '19', '19', 'smile'), |
|
24 | - ';-)' => array('wink.gif', '19', '19', 'wink'), |
|
25 | - ';)' => array('wink.gif', '19', '19', 'wink'), |
|
26 | - ':smirk:' => array('smirk.gif', '19', '19', 'smirk'), |
|
27 | - ':roll:' => array('rolleyes.gif', '19', '19', 'rolleyes'), |
|
28 | - ':-S' => array('confused.gif', '19', '19', 'confused'), |
|
29 | - ':wow:' => array('surprise.gif', '19', '19', 'surprised'), |
|
30 | - ':bug:' => array('bigsurprise.gif', '19', '19', 'big surprise'), |
|
31 | - ':-P' => array('tongue_laugh.gif', '19', '19', 'tongue laugh'), |
|
32 | - '%-P' => array('tongue_rolleye.gif', '19', '19', 'tongue rolleye'), |
|
33 | - ';-P' => array('tongue_wink.gif', '19', '19', 'tongue wink'), |
|
34 | - ':P' => array('raspberry.gif', '19', '19', 'raspberry'), |
|
35 | - ':blank:' => array('blank.gif', '19', '19', 'blank stare'), |
|
36 | - ':long:' => array('longface.gif', '19', '19', 'long face'), |
|
37 | - ':ohh:' => array('ohh.gif', '19', '19', 'ohh'), |
|
38 | - ':grrr:' => array('grrr.gif', '19', '19', 'grrr'), |
|
39 | - ':gulp:' => array('gulp.gif', '19', '19', 'gulp'), |
|
40 | - '8-/' => array('ohoh.gif', '19', '19', 'oh oh'), |
|
41 | - ':down:' => array('downer.gif', '19', '19', 'downer'), |
|
42 | - ':red:' => array('embarrassed.gif', '19', '19', 'red face'), |
|
43 | - ':sick:' => array('sick.gif', '19', '19', 'sick'), |
|
44 | - ':shut:' => array('shuteye.gif', '19', '19', 'shut eye'), |
|
45 | - ':-/' => array('hmm.gif', '19', '19', 'hmmm'), |
|
46 | - '>:(' => array('mad.gif', '19', '19', 'mad'), |
|
47 | - ':mad:' => array('mad.gif', '19', '19', 'mad'), |
|
48 | - '>:-(' => array('angry.gif', '19', '19', 'angry'), |
|
49 | - ':angry:' => array('angry.gif', '19', '19', 'angry'), |
|
50 | - ':zip:' => array('zip.gif', '19', '19', 'zipper'), |
|
51 | - ':kiss:' => array('kiss.gif', '19', '19', 'kiss'), |
|
52 | - ':ahhh:' => array('shock.gif', '19', '19', 'shock'), |
|
53 | - ':coolsmile:' => array('shade_smile.gif', '19', '19', 'cool smile'), |
|
54 | - ':coolsmirk:' => array('shade_smirk.gif', '19', '19', 'cool smirk'), |
|
55 | - ':coolgrin:' => array('shade_grin.gif', '19', '19', 'cool grin'), |
|
56 | - ':coolhmm:' => array('shade_hmm.gif', '19', '19', 'cool hmm'), |
|
57 | - ':coolmad:' => array('shade_mad.gif', '19', '19', 'cool mad'), |
|
58 | - ':coolcheese:' => array('shade_cheese.gif', '19', '19', 'cool cheese'), |
|
59 | - ':vampire:' => array('vampire.gif', '19', '19', 'vampire'), |
|
60 | - ':snake:' => array('snake.gif', '19', '19', 'snake'), |
|
61 | - ':exclaim:' => array('exclaim.gif', '19', '19', 'exclaim'), |
|
62 | - ':question:' => array('question.gif', '19', '19', 'question') |
|
20 | + ':-)' => array('grin.gif', '19', '19', 'grin'), |
|
21 | + ':lol:' => array('lol.gif', '19', '19', 'LOL'), |
|
22 | + ':cheese:' => array('cheese.gif', '19', '19', 'cheese'), |
|
23 | + ':)' => array('smile.gif', '19', '19', 'smile'), |
|
24 | + ';-)' => array('wink.gif', '19', '19', 'wink'), |
|
25 | + ';)' => array('wink.gif', '19', '19', 'wink'), |
|
26 | + ':smirk:' => array('smirk.gif', '19', '19', 'smirk'), |
|
27 | + ':roll:' => array('rolleyes.gif', '19', '19', 'rolleyes'), |
|
28 | + ':-S' => array('confused.gif', '19', '19', 'confused'), |
|
29 | + ':wow:' => array('surprise.gif', '19', '19', 'surprised'), |
|
30 | + ':bug:' => array('bigsurprise.gif', '19', '19', 'big surprise'), |
|
31 | + ':-P' => array('tongue_laugh.gif', '19', '19', 'tongue laugh'), |
|
32 | + '%-P' => array('tongue_rolleye.gif', '19', '19', 'tongue rolleye'), |
|
33 | + ';-P' => array('tongue_wink.gif', '19', '19', 'tongue wink'), |
|
34 | + ':P' => array('raspberry.gif', '19', '19', 'raspberry'), |
|
35 | + ':blank:' => array('blank.gif', '19', '19', 'blank stare'), |
|
36 | + ':long:' => array('longface.gif', '19', '19', 'long face'), |
|
37 | + ':ohh:' => array('ohh.gif', '19', '19', 'ohh'), |
|
38 | + ':grrr:' => array('grrr.gif', '19', '19', 'grrr'), |
|
39 | + ':gulp:' => array('gulp.gif', '19', '19', 'gulp'), |
|
40 | + '8-/' => array('ohoh.gif', '19', '19', 'oh oh'), |
|
41 | + ':down:' => array('downer.gif', '19', '19', 'downer'), |
|
42 | + ':red:' => array('embarrassed.gif', '19', '19', 'red face'), |
|
43 | + ':sick:' => array('sick.gif', '19', '19', 'sick'), |
|
44 | + ':shut:' => array('shuteye.gif', '19', '19', 'shut eye'), |
|
45 | + ':-/' => array('hmm.gif', '19', '19', 'hmmm'), |
|
46 | + '>:(' => array('mad.gif', '19', '19', 'mad'), |
|
47 | + ':mad:' => array('mad.gif', '19', '19', 'mad'), |
|
48 | + '>:-(' => array('angry.gif', '19', '19', 'angry'), |
|
49 | + ':angry:' => array('angry.gif', '19', '19', 'angry'), |
|
50 | + ':zip:' => array('zip.gif', '19', '19', 'zipper'), |
|
51 | + ':kiss:' => array('kiss.gif', '19', '19', 'kiss'), |
|
52 | + ':ahhh:' => array('shock.gif', '19', '19', 'shock'), |
|
53 | + ':coolsmile:' => array('shade_smile.gif', '19', '19', 'cool smile'), |
|
54 | + ':coolsmirk:' => array('shade_smirk.gif', '19', '19', 'cool smirk'), |
|
55 | + ':coolgrin:' => array('shade_grin.gif', '19', '19', 'cool grin'), |
|
56 | + ':coolhmm:' => array('shade_hmm.gif', '19', '19', 'cool hmm'), |
|
57 | + ':coolmad:' => array('shade_mad.gif', '19', '19', 'cool mad'), |
|
58 | + ':coolcheese:' => array('shade_cheese.gif', '19', '19', 'cool cheese'), |
|
59 | + ':vampire:' => array('vampire.gif', '19', '19', 'vampire'), |
|
60 | + ':snake:' => array('snake.gif', '19', '19', 'snake'), |
|
61 | + ':exclaim:' => array('exclaim.gif', '19', '19', 'exclaim'), |
|
62 | + ':question:' => array('question.gif', '19', '19', 'question') |
|
63 | 63 | |
64 | 64 | ); |
@@ -4,28 +4,28 @@ |
||
4 | 4 | |
5 | 5 | class MY_Loader extends HMVC_Loader { |
6 | 6 | |
7 | - /** |
|
8 | - * Does the same thing that load->view does except ensures that the |
|
9 | - * view file is treated as a path so that it can be found outside of |
|
10 | - * the standard view paths. |
|
11 | - * |
|
12 | - * @param $view |
|
13 | - * @param array $vars |
|
14 | - * @param bool $return |
|
15 | - * @return object|void |
|
16 | - */ |
|
17 | - public function view_path($view, $vars = array(), $return = FALSE) |
|
18 | - { |
|
19 | - $view .= '.php'; |
|
7 | + /** |
|
8 | + * Does the same thing that load->view does except ensures that the |
|
9 | + * view file is treated as a path so that it can be found outside of |
|
10 | + * the standard view paths. |
|
11 | + * |
|
12 | + * @param $view |
|
13 | + * @param array $vars |
|
14 | + * @param bool $return |
|
15 | + * @return object|void |
|
16 | + */ |
|
17 | + public function view_path($view, $vars = array(), $return = FALSE) |
|
18 | + { |
|
19 | + $view .= '.php'; |
|
20 | 20 | |
21 | - // If the file can't be found, then use the regular view method... |
|
22 | - if (file_exists($view)) { |
|
23 | - return $this->_ci_load(array('_ci_path' => $view, '_ci_vars' => $this->_ci_object_to_array($vars), '_ci_return' => $return)); |
|
24 | - } |
|
25 | - else { |
|
26 | - return $this->_ci_load(array('_ci_view' => $view, '_ci_vars' => $this->_ci_object_to_array($vars), '_ci_return' => $return)); |
|
27 | - } |
|
28 | - } |
|
21 | + // If the file can't be found, then use the regular view method... |
|
22 | + if (file_exists($view)) { |
|
23 | + return $this->_ci_load(array('_ci_path' => $view, '_ci_vars' => $this->_ci_object_to_array($vars), '_ci_return' => $return)); |
|
24 | + } |
|
25 | + else { |
|
26 | + return $this->_ci_load(array('_ci_view' => $view, '_ci_vars' => $this->_ci_object_to_array($vars), '_ci_return' => $return)); |
|
27 | + } |
|
28 | + } |
|
29 | 29 | |
30 | - // -------------------------------------------------------------------- |
|
30 | + // -------------------------------------------------------------------- |
|
31 | 31 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require_once APPPATH .'third_party/HMVC/Loader.php'; |
|
3 | +require_once APPPATH.'third_party/HMVC/Loader.php'; |
|
4 | 4 | |
5 | 5 | class MY_Loader extends HMVC_Loader { |
6 | 6 |
@@ -43,8 +43,7 @@ |
||
43 | 43 | if (is_object($ci)) |
44 | 44 | { |
45 | 45 | $this->ci =& $ci; |
46 | - } |
|
47 | - else { |
|
46 | + } else { |
|
48 | 47 | $this->ci =& get_instance(); |
49 | 48 | } |
50 | 49 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require_once APPPATH .'third_party/HMVC/Router.php'; |
|
3 | +require_once APPPATH.'third_party/HMVC/Router.php'; |
|
4 | 4 | |
5 | 5 | class MY_Router extends HMVC_Router {} |