Completed
Pull Request — master (#44)
by Alberto
07:10
created
src/Stub/Helper/isPropertyName.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Moka\Stub\Helper;
5 5
 
Please login to merge, or discard this patch.
src/Stub/Helper/const.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Moka\Stub\Helper;
5 5
 
Please login to merge, or discard this patch.
src/Stub/Helper/isName.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Moka\Stub\Helper;
5 5
 
Please login to merge, or discard this patch.
src/Stub/Helper/validateStaticName.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Moka\Stub\Helper;
5 5
 
Please login to merge, or discard this patch.
src/Stub/Helper/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
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';
Please login to merge, or discard this patch.
src/Stub/Helper/stripName.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             '',
Please login to merge, or discard this patch.
src/Stub/Helper/validateName.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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',
Please login to merge, or discard this patch.
src/Stub/Helper/isMethodName.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
13 13
  */
14 14
 function isMethodName(string $name): bool
15 15
 {
16
-    return !isPropertyName($name);
16
+    return ! isPropertyName($name);
17 17
 }
Please login to merge, or discard this patch.
src/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
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';
Please login to merge, or discard this patch.