@@ -26,5 +26,10 @@ |
||
| 26 | 26 | return $this->auth; |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | + /** |
|
| 30 | + * @param string $string |
|
| 31 | + * |
|
| 32 | + * @return string|null |
|
| 33 | + */ |
|
| 29 | 34 | abstract public function config($string, $children); |
| 30 | 35 | } |
@@ -12,9 +12,9 @@ discard block |
||
| 12 | 12 | /** |
| 13 | 13 | * Make a JSON response. |
| 14 | 14 | * |
| 15 | - * @param $statusCode |
|
| 15 | + * @param integer $statusCode |
|
| 16 | 16 | * |
| 17 | - * @return JsonResponse |
|
| 17 | + * @return IlluminateJsonResponse |
|
| 18 | 18 | */ |
| 19 | 19 | protected function makeJsonResponse($statusCode) |
| 20 | 20 | { |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | /** |
| 41 | 41 | * Make a web response. |
| 42 | 42 | * |
| 43 | - * @param $statusCode |
|
| 43 | + * @param integer $statusCode |
|
| 44 | 44 | * |
| 45 | 45 | * @return \Illuminate\Http\Response |
| 46 | 46 | */ |
@@ -88,5 +88,10 @@ discard block |
||
| 88 | 88 | |
| 89 | 89 | abstract public function getRequest(); |
| 90 | 90 | |
| 91 | + /** |
|
| 92 | + * @param string $string |
|
| 93 | + * |
|
| 94 | + * @return string|null |
|
| 95 | + */ |
|
| 91 | 96 | abstract protected function config($string, $children); |
| 92 | 97 | } |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * |
| 10 | 10 | * @param null $name |
| 11 | 11 | * |
| 12 | - * @return mixed |
|
| 12 | + * @return string |
|
| 13 | 13 | */ |
| 14 | 14 | protected function makeSessionVarName($name = null) |
| 15 | 15 | { |
@@ -20,8 +20,9 @@ discard block |
||
| 20 | 20 | * Get a session var value. |
| 21 | 21 | * |
| 22 | 22 | * @param null $var |
| 23 | + * @param boolean $default |
|
| 23 | 24 | * |
| 24 | - * @return mixed |
|
| 25 | + * @return null|\Carbon\Carbon |
|
| 25 | 26 | */ |
| 26 | 27 | public function sessionGet($var = null, $default = null) |
| 27 | 28 | { |
@@ -61,6 +62,9 @@ discard block |
||
| 61 | 62 | ); |
| 62 | 63 | } |
| 63 | 64 | |
| 65 | + /** |
|
| 66 | + * @param string $string |
|
| 67 | + */ |
|
| 64 | 68 | abstract protected function config($string, $children); |
| 65 | 69 | |
| 66 | 70 | abstract public function getRequest(); |
@@ -14,14 +14,14 @@ |
||
| 14 | 14 | * |
| 15 | 15 | * @return mixed |
| 16 | 16 | */ |
| 17 | - protected function config($string, $children = []) |
|
| 17 | + protected function config($string, $children = [ ]) |
|
| 18 | 18 | { |
| 19 | 19 | if (is_null(config(Constants::CONFIG_PACKAGE_NAME))) { |
| 20 | 20 | throw new \Exception('Config not found'); |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | return config( |
| 24 | - implode('.', array_merge([Constants::CONFIG_PACKAGE_NAME, $string], (array) $children)) |
|
| 24 | + implode('.', array_merge([ Constants::CONFIG_PACKAGE_NAME, $string ], (array) $children)) |
|
| 25 | 25 | ); |
| 26 | 26 | } |
| 27 | 27 | } |