This repository was archived by the owner on Feb 14, 2023. It is now read-only.
File tree 4 files changed +9
-3
lines changed 4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ public static function init(): self
42
42
* @param bool $use_data
43
43
*
44
44
* @throws \ReflectionException
45
+ *
45
46
* @return $this
46
47
*/
47
48
public function data ($ data = null , int $ status_code = 200 , bool $ use_data = true ): self
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ final class Exception
16
16
* @param mixed $value
17
17
*
18
18
* @throws \ReflectionException
19
+ *
19
20
* @return bool
20
21
*/
21
22
public static function isError ($ value = null ): bool
@@ -33,6 +34,7 @@ public static function isErrorCode(int $code = 0): bool
33
34
* @param int $status_code
34
35
*
35
36
* @throws \ReflectionException
37
+ *
36
38
* @return int
37
39
*/
38
40
public static function getCode ($ value , int $ status_code = 400 ): int
Original file line number Diff line number Diff line change 8
8
9
9
class Instance
10
10
{
11
- static protected $ instances = [];
11
+ protected static $ instances = [];
12
12
13
13
/**
14
14
* @param mixed $haystack
15
- * @param string| array $needles
15
+ * @param array|string $needles
16
16
*
17
17
* @throws \ReflectionException
18
+ *
18
19
* @return bool
19
20
*/
20
21
public static function of ($ haystack , $ needles ): bool
@@ -89,9 +90,10 @@ protected static function isObject($value): bool
89
90
}
90
91
91
92
/**
92
- * @param string| object $class
93
+ * @param object|string $class
93
94
*
94
95
* @throws \ReflectionException
96
+ *
95
97
* @return \ReflectionClass
96
98
*/
97
99
protected static function reflection ($ class )
Original file line number Diff line number Diff line change 12
12
* @param bool $use_data
13
13
*
14
14
* @throws \ReflectionException
15
+ *
15
16
* @return Symfony\Component\HttpFoundation\JsonResponse
16
17
*/
17
18
function api_response (
You can’t perform that action at this time.
0 commit comments