@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | /** |
71 | 71 | * Check if an status is exist in the array. |
72 | 72 | * |
73 | - * @param array $key |
|
73 | + * @param string $key |
|
74 | 74 | * @return bool |
75 | 75 | */ |
76 | 76 | public function has($key) |
@@ -92,6 +92,7 @@ discard block |
||
92 | 92 | /** |
93 | 93 | * Call the response status. |
94 | 94 | * |
95 | + * @param JsonResponse $builder |
|
95 | 96 | * @return array |
96 | 97 | */ |
97 | 98 | public function call(string $status, $builder) |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace ArinaSystems\JsonResponse\Tests; |
4 | 4 | |
5 | -use Illuminate\Support\Facades\Config; |
|
6 | 5 | use ArinaSystems\JsonResponse\Option; |
6 | +use Illuminate\Support\Facades\Config; |
|
7 | 7 | |
8 | 8 | class OptionTest extends TestCase |
9 | 9 | { |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace ArinaSystems\JsonResponse\Traits; |
4 | 4 | |
5 | -use Throwable; |
|
6 | 5 | use ArinaSystems\JsonResponse\Facades\JsonResponse; |
6 | +use Throwable; |
|
7 | 7 | |
8 | 8 | trait JsonHandler |
9 | 9 | { |
@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace ArinaSystems\JsonResponse\Tests; |
4 | 4 | |
5 | +use ArinaSystems\JsonResponse\Facades\JsonResponse; |
|
6 | +use ArinaSystems\JsonResponse\Facades\Option; |
|
5 | 7 | use Exception; |
6 | 8 | use Illuminate\Support\Facades\Config; |
7 | -use ArinaSystems\JsonResponse\Facades\Option; |
|
8 | -use ArinaSystems\JsonResponse\Facades\JsonResponse; |
|
9 | 9 | |
10 | 10 | class JsonResponseTest extends TestCase |
11 | 11 | { |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | /** |
27 | 27 | * Create a new instance. |
28 | 28 | * |
29 | - * @param \ArinaSystems\JsonResponse\Option|array|string $options |
|
29 | + * @param Option $options |
|
30 | 30 | */ |
31 | 31 | public function __construct(Option $options, Attribute $attributes, Status $status) |
32 | 32 | { |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | * |
109 | 109 | * @param string|array|null $key |
110 | 110 | * @param mixed|null $default |
111 | - * @return \ArinaSystems\JsonResponse\Option|mixed |
|
111 | + * @return integer |
|
112 | 112 | */ |
113 | 113 | public function options($key = null, $default = null) |
114 | 114 | { |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | * Set json response attributes. |
166 | 166 | * |
167 | 167 | * @param \ArinaSystems\JsonResponse\Attribute|array|string $attributes |
168 | - * @param null|mixed $value |
|
168 | + * @param \Throwable $value |
|
169 | 169 | * @return self |
170 | 170 | */ |
171 | 171 | public function setAttributes($attributes, $value = null) |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | /** |
218 | 218 | * Get the current instance of json response builder. |
219 | 219 | * |
220 | - * @return ArinaSystems\JsonResponse\JsonResponse |
|
220 | + * @return JsonResponse |
|
221 | 221 | */ |
222 | 222 | public function instance(): self |
223 | 223 | { |