@@ -120,6 +120,7 @@ |
||
| 120 | 120 | /** |
| 121 | 121 | * Set current charset |
| 122 | 122 | * |
| 123 | + * @param string $charset |
|
| 123 | 124 | * @return void |
| 124 | 125 | */ |
| 125 | 126 | public function setCharset($charset = null) |
@@ -331,7 +331,7 @@ |
||
| 331 | 331 | { |
| 332 | 332 | $possibleHostSources = ['HTTP_X_FORWARDED_HOST', 'HTTP_HOST', 'SERVER_NAME', 'SERVER_ADDR']; |
| 333 | 333 | $sourceTransformations = [ |
| 334 | - "HTTP_X_FORWARDED_HOST" => function ($value) { |
|
| 334 | + "HTTP_X_FORWARDED_HOST" => function($value) { |
|
| 335 | 335 | $elements = explode(',', $value); |
| 336 | 336 | return trim(end($elements)); |
| 337 | 337 | }, |
@@ -363,6 +363,13 @@ |
||
| 363 | 363 | * @return string |
| 364 | 364 | */ |
| 365 | 365 | // @codingStandardsIgnoreStart |
| 366 | + |
|
| 367 | + /** |
|
| 368 | + * @param string $type |
|
| 369 | + * @param integer $message |
|
| 370 | + * @param integer $line |
|
| 371 | + * @param string $file |
|
| 372 | + */ |
|
| 366 | 373 | protected static function renderErrorText($type, $message, $line, $file) |
| 367 | 374 | { |
| 368 | 375 | return $message . ' in ' . $file . ' on line ' . $line; |
@@ -135,7 +135,7 @@ |
||
| 135 | 135 | * Set the specified config item |
| 136 | 136 | * |
| 137 | 137 | * @param string $key |
| 138 | - * @param mixed $value |
|
| 138 | + * @param string $value |
|
| 139 | 139 | * @return void |
| 140 | 140 | * |
| 141 | 141 | * @throws \Kotori\Exception\ConfigException |
@@ -193,7 +193,7 @@ |
||
| 193 | 193 | $_REQUEST = array_merge($_POST, $_GET, $_COOKIE); |
| 194 | 194 | |
| 195 | 195 | if (Container::get('config')->get('app_debug')) { |
| 196 | - Container::get('response')->setHeader('X-Kotori-Hash', call_user_func(function () { |
|
| 196 | + Container::get('response')->setHeader('X-Kotori-Hash', call_user_func(function() { |
|
| 197 | 197 | $lockFile = Helper::getComposerVendorPath() . '/../composer.lock'; |
| 198 | 198 | if (!Helper::isFile($lockFile)) { |
| 199 | 199 | return 'unknown'; |
@@ -300,7 +300,7 @@ |
||
| 300 | 300 | * |
| 301 | 301 | * @param string $className |
| 302 | 302 | * @param string $methodName |
| 303 | - * @return mixed |
|
| 303 | + * @return callable |
|
| 304 | 304 | * |
| 305 | 305 | * @throws \Kotori\Exception\NotFoundException |
| 306 | 306 | */ |
@@ -180,7 +180,7 @@ |
||
| 180 | 180 | /** |
| 181 | 181 | * Logs with an arbitrary level. |
| 182 | 182 | * |
| 183 | - * @param mixed $level |
|
| 183 | + * @param string $level |
|
| 184 | 184 | * @param string $message |
| 185 | 185 | * @param array $context |
| 186 | 186 | * @return void |
@@ -66,6 +66,7 @@ discard block |
||
| 66 | 66 | /** |
| 67 | 67 | * Get singleton |
| 68 | 68 | * |
| 69 | + * @param string $key |
|
| 69 | 70 | * @return object |
| 70 | 71 | * |
| 71 | 72 | * @throws \Kotori\Exception\DatabaseException |
@@ -104,7 +105,6 @@ discard block |
||
| 104 | 105 | * |
| 105 | 106 | * Initialize Database. |
| 106 | 107 | * |
| 107 | - * @param array $config |
|
| 108 | 108 | * @return void |
| 109 | 109 | */ |
| 110 | 110 | public function __construct(array $options = []) |