@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | if (is_array($template)) { |
| 61 | 61 | $layout = $template[0]; |
| 62 | 62 | $view = $template[1]; |
| 63 | - }else { |
|
| 63 | + } else { |
|
| 64 | 64 | $layout = 'layouts/app.htm'; |
| 65 | 65 | $view = $template; |
| 66 | 66 | } |
@@ -101,11 +101,11 @@ discard block |
||
| 101 | 101 | foreach ($err as $e) { |
| 102 | 102 | flash($e, 'danger'); |
| 103 | 103 | } |
| 104 | - }else { |
|
| 104 | + } else { |
|
| 105 | 105 | flash($err, 'danger'); |
| 106 | 106 | } |
| 107 | 107 | } |
| 108 | - }else { |
|
| 108 | + } else { |
|
| 109 | 109 | flash($error, 'danger'); |
| 110 | 110 | } |
| 111 | 111 | } |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | { |
| 17 | 17 | if (Registry::exists('APP')) { |
| 18 | 18 | $app = Registry::get('APP'); |
| 19 | - }else { |
|
| 19 | + } else { |
|
| 20 | 20 | $app = new self; |
| 21 | 21 | Registry::set('APP', $app); |
| 22 | 22 | } |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | { |
| 82 | 82 | if ($file) { |
| 83 | 83 | $this->app->config(base_path("{path}/{$file}")); |
| 84 | - }else { |
|
| 84 | + } else { |
|
| 85 | 85 | foreach (glob(base_path("{$path}/*.ini")) as $file) { |
| 86 | 86 | $this->app->config($file); |
| 87 | 87 | } |
@@ -126,11 +126,11 @@ discard block |
||
| 126 | 126 | $this->configureCSRF($type); |
| 127 | 127 | } elseif ($this->app->CSRF) { |
| 128 | 128 | $this->session = new Session(null, 'CSRF'); |
| 129 | - }else { |
|
| 129 | + } else { |
|
| 130 | 130 | if ($type == 'jig' || $type == 'mongo' || $type == 'sql') { |
| 131 | 131 | $session = str_ireplace('/', '', 'DB\/'.$this->_getDBType($type).'\Session'); |
| 132 | 132 | $this->session = new $session($this->app->DB); |
| 133 | - }else { |
|
| 133 | + } else { |
|
| 134 | 134 | $this->session = new Session(); |
| 135 | 135 | } |
| 136 | 136 | } |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | { |
| 166 | 166 | if ($this->app->DEV) { |
| 167 | 167 | Falsum\Run::handler($this->app->DEBUG != 3); |
| 168 | - }else { |
|
| 168 | + } else { |
|
| 169 | 169 | $this->app->set('ONERROR', 'App\Core\Controllers\ErrorController->init'); |
| 170 | 170 | } |
| 171 | 171 | } |
@@ -55,18 +55,18 @@ |
||
| 55 | 55 | } elseif (array_key_exists('input', $key)) { |
| 56 | 56 | $inputClass = $key['input']; |
| 57 | 57 | } |
| 58 | - }else { |
|
| 58 | + } else { |
|
| 59 | 59 | $imgClass = $inputClass = $key; |
| 60 | 60 | } |
| 61 | 61 | } |
| 62 | 62 | if (method_exists($this, $func)) { |
| 63 | 63 | $response = $this->$key($length, $imgClass).$this->input($inputClass); |
| 64 | - }else { |
|
| 64 | + } else { |
|
| 65 | 65 | throw new Exception("Error Processing Captcha Method", 1); |
| 66 | 66 | } |
| 67 | 67 | } elseif (is_numeric($param)) { |
| 68 | 68 | $response = $this->img($param).$this->input(); |
| 69 | - }else { |
|
| 69 | + } else { |
|
| 70 | 70 | throw new Exception("Error Processing Captcha Parameters", 1); |
| 71 | 71 | } |
| 72 | 72 | |
@@ -1,3 +1,3 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -require_once __DIR__ . "/../vendor/autoload.php"; |
|
| 3 | +require_once __DIR__."/../vendor/autoload.php"; |
|