@@ -92,6 +92,9 @@ discard block |
||
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | |
| 95 | + /** |
|
| 96 | + * @param integer $code |
|
| 97 | + */ |
|
| 95 | 98 | private function terminate($code) |
| 96 | 99 | { |
| 97 | 100 | throw new TerminateException(NULL, $code); |
@@ -142,6 +145,7 @@ discard block |
||
| 142 | 145 | |
| 143 | 146 | |
| 144 | 147 | /** |
| 148 | + * @param string $configFile |
|
| 145 | 149 | * @return Container |
| 146 | 150 | */ |
| 147 | 151 | private function createContainer($configFile, Container $bootstrapContainer = NULL) |
@@ -172,6 +176,10 @@ discard block |
||
| 172 | 176 | } |
| 173 | 177 | |
| 174 | 178 | |
| 179 | + /** |
|
| 180 | + * @param string $color |
|
| 181 | + * @param string $backgroundColor |
|
| 182 | + */ |
|
| 175 | 183 | private function log($message, $color = NULL, $backgroundColor = NULL) |
| 176 | 184 | { |
| 177 | 185 | echo Cli::getColoredString($message . PHP_EOL, $color, $backgroundColor); |
@@ -165,7 +165,7 @@ |
||
| 165 | 165 | */ |
| 166 | 166 | private function createBuild(Container $container, array $arguments = NULL) |
| 167 | 167 | { |
| 168 | - if ($this->buildFactory === NULL){ |
|
| 168 | + if ($this->buildFactory === NULL) { |
|
| 169 | 169 | throw new InvalidStateException("Build factory was not setted."); |
| 170 | 170 | } |
| 171 | 171 | return $this->buildFactory->create($container, $arguments); |
@@ -133,7 +133,7 @@ |
||
| 133 | 133 | $container = require_once $bootstrapFile; |
| 134 | 134 | if ($container === 1 || $container === TRUE) { // 1 = success, TRUE = already required |
| 135 | 135 | return NULL; |
| 136 | - }elseif ($container instanceof Container) { |
|
| 136 | + } elseif ($container instanceof Container) { |
|
| 137 | 137 | return $container; |
| 138 | 138 | } |
| 139 | 139 | $this->log("Returned value from bootstrap.php must be instance of 'Genesis\\Container\\Container' or nothing (NULL).", 'red'); |