@@ -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 | // Authentication Type |
@@ -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 | // Auto Migrate? |
@@ -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 | // AUTHORIZATION ENGINE |
@@ -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 | use Myth\Cron\CronManager as CronManager; |
| 35 | 37 | |
@@ -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 | use \Myth\Events\Events as Events; |
| 35 | 37 | 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 |
@@ -21,8 +21,7 @@ |
||
| 21 | 21 | // If the file can't be found, then use the regular view method... |
| 22 | 22 | if (file_exists($view)) { |
| 23 | 23 | return $this->_ci_load(array('_ci_path' => $view, '_ci_vars' => $this->_ci_object_to_array($vars), '_ci_return' => $return)); |
| 24 | - } |
|
| 25 | - else { |
|
| 24 | + } else { |
|
| 26 | 25 | return $this->_ci_load(array('_ci_view' => $view, '_ci_vars' => $this->_ci_object_to_array($vars), '_ci_return' => $return)); |
| 27 | 26 | } |
| 28 | 27 | } |
@@ -1636,8 +1636,10 @@ |
||
| 1636 | 1636 | $r = ($seed * (1 + $key)) % 100; # Pseudo-random function. |
| 1637 | 1637 | # roughly 10% raw, 45% hex, 45% dec |
| 1638 | 1638 | # '@' *must* be encoded. I insist. |
| 1639 | - if ($r > 90 && $char != '@') /* do nothing */ { |
|
| 1639 | + if ($r > 90 && $char != '@') { |
|
| 1640 | + /* do nothing */ { |
|
| 1640 | 1641 | ; |
| 1642 | + } |
|
| 1641 | 1643 | } else if ($r < 45) { |
| 1642 | 1644 | $chars[$key] = '&#x' . dechex($ord) . ';'; |
| 1643 | 1645 | } else { |
@@ -208,8 +208,7 @@ discard block |
||
| 208 | 208 | if ($this->_migration_type === 'sequential') |
| 209 | 209 | { |
| 210 | 210 | $target_version = sprintf('%03d', $target_version); |
| 211 | - } |
|
| 212 | - else |
|
| 211 | + } else |
|
| 213 | 212 | { |
| 214 | 213 | $target_version = (string) $target_version; |
| 215 | 214 | } |
@@ -226,8 +225,7 @@ discard block |
||
| 226 | 225 | { |
| 227 | 226 | // Moving Up |
| 228 | 227 | $method = 'up'; |
| 229 | - } |
|
| 230 | - else |
|
| 228 | + } else |
|
| 231 | 229 | { |
| 232 | 230 | // Moving Down, apply in reverse order |
| 233 | 231 | $method = 'down'; |
@@ -437,8 +435,7 @@ discard block |
||
| 437 | 435 | if ($this->_migration_type == 'timestamp') |
| 438 | 436 | { |
| 439 | 437 | $prefix = date('YmdHis'); |
| 440 | - } |
|
| 441 | - else |
|
| 438 | + } else |
|
| 442 | 439 | { |
| 443 | 440 | $prefix = str_pad($this->get_version() + 1, 3, '0', STR_PAD_LEFT); |
| 444 | 441 | } |