@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | * |
| 93 | 93 | * @param string $id Cache ID |
| 94 | 94 | * @param int $offset Step/value to add |
| 95 | - * @return mixed New value on success or FALSE on failure |
|
| 95 | + * @return boolean New value on success or FALSE on failure |
|
| 96 | 96 | */ |
| 97 | 97 | public function increment($id, $offset = 1) |
| 98 | 98 | { |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | * |
| 105 | 105 | * @param string $id Cache ID |
| 106 | 106 | * @param int $offset Step/value to reduce by |
| 107 | - * @return mixed New value on success or FALSE on failure |
|
| 107 | + * @return boolean New value on success or FALSE on failure |
|
| 108 | 108 | */ |
| 109 | 109 | public function decrement($id, $offset = 1) |
| 110 | 110 | { |
@@ -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; |
@@ -68,6 +68,7 @@ |
||
| 68 | 68 | /** |
| 69 | 69 | * get singleton |
| 70 | 70 | * |
| 71 | + * @param string $key |
|
| 71 | 72 | * @return object |
| 72 | 73 | */ |
| 73 | 74 | public static function getSoul($key = null) |