Completed
Pull Request — master (#41)
by Angelo
03:35
created
src/Moka/Generator/Template/PropertyTemplate.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\Generator\Template;
5 5
 
Please login to merge, or discard this patch.
src/Moka/Generator/Template/PropertyInitializationTemplate.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\Generator\Template;
5 5
 
Please login to merge, or discard this patch.
src/Moka/Strategy/AbstractMockingStrategy.php 1 patch
Spacing   +4 added lines, -4 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\Strategy;
5 5
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     final protected static function checkDependencies(string $dependencyClassName, string $dependencyPackageName)
33 33
     {
34
-        if (!class_exists($dependencyClassName)) {
34
+        if ( ! class_exists($dependencyClassName)) {
35 35
             throw new MissingDependencyException(
36 36
                 sprintf(
37 37
                     'Class "%s" does not exist, please install package "%s"',
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
     {
147 147
         $this->verifyMockType();
148 148
 
149
-        if (!is_a($mock, $this->mockType)) {
149
+        if ( ! is_a($mock, $this->mockType)) {
150 150
             throw new InvalidArgumentException(
151 151
                 sprintf(
152 152
                     'Mock object must be an instance of "%s", "%s" given',
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
      */
165 165
     private function verifyMockType()
166 166
     {
167
-        if (!$this->mockType) {
167
+        if ( ! $this->mockType) {
168 168
             throw new NotImplementedException('Mock type was not defined');
169 169
         }
170 170
     }
Please login to merge, or discard this patch.
src/Moka/Stub/MethodStub.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;
5 5
 
Please login to merge, or discard this patch.
src/Moka/Stub/PropertyStub.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;
5 5
 
Please login to merge, or discard this patch.
src/Moka/Stub/StubInterface.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;
5 5
 
Please login to merge, or discard this patch.
src/Moka/Stub/StubSet.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;
5 5
 
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
      */
21 21
     public function add($elem)
22 22
     {
23
-        if (!$elem instanceof StubInterface) {
23
+        if ( ! $elem instanceof StubInterface) {
24 24
             throw new InvalidArgumentException(
25 25
                 sprintf(
26 26
                     'Element must be an instance of "%s", "%s" given',
Please login to merge, or discard this patch.
src/Moka/Stub/StubHelper.php 1 patch
Spacing   +4 added lines, -4 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;
5 5
 
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      */
92 92
     public static function isMethodName(string $name): bool
93 93
     {
94
-        return !static::isPropertyName($name);
94
+        return ! static::isPropertyName($name);
95 95
     }
96 96
 
97 97
     /**
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
             ? array_intersect(array_keys(static::PREFIXES), $prefixes)
130 130
             : array_keys(static::PREFIXES);
131 131
 
132
-        return array_reduce($prefixes, function (string $name, string $prefix) {
132
+        return array_reduce($prefixes, function(string $name, string $prefix) {
133 133
             return preg_replace(
134 134
                 sprintf('/^%s/', static::PREFIXES[$prefix]),
135 135
                 '',
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
             ? static::$methodName($name)
153 153
             : preg_match(static::REGEX_NAME, $name);
154 154
 
155
-        if (!$nameIsValid) {
155
+        if ( ! $nameIsValid) {
156 156
             $message = isset(static::PREFIXES[$type])
157 157
                 ? sprintf(
158 158
                     'Name must be prefixed by "%s", "%s" given',
Please login to merge, or discard this patch.
src/Moka/Stub/AbstractStub.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;
5 5
 
Please login to merge, or discard this patch.