@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Moka\Stub\Helper; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Moka\Stub\Helper; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Moka\Stub\Helper; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Moka\Stub\Helper; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | require_once __DIR__ . '/const.php'; |
5 | 5 | require_once __DIR__ . '/isMethodName.php'; |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Moka\Stub\Helper; |
5 | 5 | |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | ? array_intersect(array_keys(PREFIXES), $prefixes) |
15 | 15 | : array_keys(PREFIXES); |
16 | 16 | |
17 | - return array_reduce($prefixes, function (string $name, string $prefix) { |
|
17 | + return array_reduce($prefixes, function(string $name, string $prefix) { |
|
18 | 18 | return preg_replace( |
19 | 19 | sprintf(TEMPLATE_NAME, PREFIXES[$prefix]), |
20 | 20 | '', |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Moka\Stub\Helper; |
5 | 5 | |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | ? $functionName($name) |
26 | 26 | : preg_match(REGEX_NAME, $name); |
27 | 27 | |
28 | - if (!$nameIsValid) { |
|
28 | + if ( ! $nameIsValid) { |
|
29 | 29 | $message = $isAPrefix |
30 | 30 | ? sprintf( |
31 | 31 | 'Name must be prefixed by "%s", "%s" given', |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Moka\Stub\Helper; |
5 | 5 | |
@@ -13,5 +13,5 @@ discard block |
||
13 | 13 | */ |
14 | 14 | function isMethodName(string $name): bool |
15 | 15 | { |
16 | - return !isPropertyName($name); |
|
16 | + return ! isPropertyName($name); |
|
17 | 17 | } |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | require_once __DIR__ . '/Factory/buildStub.php'; |
5 | 5 | require_once __DIR__ . '/Factory/buildStubs.php'; |