Skip to content
This repository was archived by the owner on Feb 14, 2023. It is now read-only.

Commit fcc6c4d

Browse files
author
Andrey Helldar
authored
Merge pull request #39 from andrey-helldar/analysis-EA2pdM
Apply fixes from StyleCI
2 parents d389c35 + 2a0f443 commit fcc6c4d

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

src/Services/Response.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public static function init(): self
4242
* @param bool $use_data
4343
*
4444
* @throws \ReflectionException
45+
*
4546
* @return $this
4647
*/
4748
public function data($data = null, int $status_code = 200, bool $use_data = true): self

src/Support/Exception.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ final class Exception
1616
* @param mixed $value
1717
*
1818
* @throws \ReflectionException
19+
*
1920
* @return bool
2021
*/
2122
public static function isError($value = null): bool
@@ -33,6 +34,7 @@ public static function isErrorCode(int $code = 0): bool
3334
* @param int $status_code
3435
*
3536
* @throws \ReflectionException
37+
*
3638
* @return int
3739
*/
3840
public static function getCode($value, int $status_code = 400): int

src/Support/Instance.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@
88

99
class Instance
1010
{
11-
static protected $instances = [];
11+
protected static $instances = [];
1212

1313
/**
1414
* @param mixed $haystack
15-
* @param string|array $needles
15+
* @param array|string $needles
1616
*
1717
* @throws \ReflectionException
18+
*
1819
* @return bool
1920
*/
2021
public static function of($haystack, $needles): bool
@@ -89,9 +90,10 @@ protected static function isObject($value): bool
8990
}
9091

9192
/**
92-
* @param string|object $class
93+
* @param object|string $class
9394
*
9495
* @throws \ReflectionException
96+
*
9597
* @return \ReflectionClass
9698
*/
9799
protected static function reflection($class)

src/helpers.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @param bool $use_data
1313
*
1414
* @throws \ReflectionException
15+
*
1516
* @return Symfony\Component\HttpFoundation\JsonResponse
1617
*/
1718
function api_response(

0 commit comments

Comments
 (0)