@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | while ($line !== false) { |
| 55 | 55 | if (strpos($line, '-') === 0) { |
| 56 | 56 | $result_string .= $this->error($line, false, true); |
| 57 | - } else if(strpos($line, '+') === 0) { |
|
| 57 | + } else if (strpos($line, '+') === 0) { |
|
| 58 | 58 | $result_string .= $this->success($line, false, true); |
| 59 | 59 | } else { |
| 60 | 60 | $result_string .= $line; |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | $handle = fopen('php://stdin', 'r'); |
| 143 | 143 | $line = fgets($handle); |
| 144 | 144 | |
| 145 | - if(trim($line) != $confirmation_word){ |
|
| 145 | + if (trim($line) != $confirmation_word) { |
|
| 146 | 146 | $this->warning('ABORTING'); |
| 147 | 147 | call_user_func($cancel_action); |
| 148 | 148 | exit; |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | $self->systemKeys[] = $key; |
| 19 | 19 | }); |
| 20 | 20 | |
| 21 | - foreach($arguments as $key => $value) { |
|
| 21 | + foreach ($arguments as $key => $value) { |
|
| 22 | 22 | $this->set($key, $value); |
| 23 | 23 | } |
| 24 | 24 | } |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | |
| 41 | 41 | public function getOr(string ...$keys) |
| 42 | 42 | { |
| 43 | - foreach($keys as $key) { |
|
| 43 | + foreach ($keys as $key) { |
|
| 44 | 44 | $value = $this->get($key); |
| 45 | 45 | |
| 46 | 46 | if ($value) { |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | $key = $matches[1]; |
| 55 | 55 | $value = true; |
| 56 | 56 | |
| 57 | - switch(count($matches)) { |
|
| 57 | + switch (count($matches)) { |
|
| 58 | 58 | case 4: |
| 59 | 59 | case 5: |
| 60 | 60 | $value = $matches[3]; |
@@ -10,9 +10,9 @@ |
||
| 10 | 10 | /** |
| 11 | 11 | * autoload |
| 12 | 12 | */ |
| 13 | -spl_autoload_register(function ($class) { |
|
| 13 | +spl_autoload_register(function($class) { |
|
| 14 | 14 | $file = realpath(__DIR__ . '/' . 'app') . '/' . str_replace('\\', '/', $class) . '.php'; |
| 15 | - if(file_exists($file)) { |
|
| 15 | + if (file_exists($file)) { |
|
| 16 | 16 | require_once($file); |
| 17 | 17 | } |
| 18 | 18 | }); |