Completed
Pull Request — master (#42)
by Alberto
09:16
created
src/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/Strategy/MockingStrategyInterface.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\Strategy;
5 5
 
Please login to merge, or discard this patch.
src/Tests/MokaPluginTestCase.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\Tests;
5 5
 
Please login to merge, or discard this patch.
src/Tests/FooTestClass.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\Tests;
5 5
 
Please login to merge, or discard this patch.
src/Tests/BarTestInterface.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\Tests;
5 5
 
Please login to merge, or discard this patch.
src/Tests/PHP71TestClass.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\Tests;
5 5
 
Please login to merge, or discard this patch.
src/Tests/MokaMockingStrategyTestCase.php 1 patch
Spacing   +5 added lines, -5 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\Tests;
5 5
 
@@ -248,17 +248,17 @@  discard block
 block discarded – undo
248 248
         ];
249 249
 
250 250
         $data = array_merge(
251
-            array_map(function (array $set) {
251
+            array_map(function(array $set) {
252 252
                 array_unshift($set, $required = true);
253 253
                 return $set;
254 254
             }, $required),
255
-            array_map(function (array $set) {
255
+            array_map(function(array $set) {
256 256
                 array_unshift($set, $required = false);
257 257
                 return $set;
258 258
             }, $optional)
259 259
         );
260 260
 
261
-        return array_reduce($data, function (array $data, array $set) {
261
+        return array_reduce($data, function(array $data, array $set) {
262 262
             $key = preg_replace('/^an? +/', '', $set[1]);
263 263
             $data[$key] = $set;
264 264
 
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
 
336 336
         $object = $this->strategy->get($mock);
337 337
         foreach ($fqcns as $fqcn) {
338
-            if (!is_a($object, $fqcn)) {
338
+            if ( ! is_a($object, $fqcn)) {
339 339
                 $this->markFeatureUnsupported(
340 340
                     sprintf(
341 341
                         'getting a valid mock from %s',
Please login to merge, or discard this patch.
src/Tests/TestInterface.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\Tests;
5 5
 
Please login to merge, or discard this patch.
src/Tests/IncompleteAbstractTestClass.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\Tests;
5 5
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
     public function getCallable(): callable
34 34
     {
35
-        return function () {
35
+        return function() {
36 36
         };
37 37
     }
38 38
 
Please login to merge, or discard this patch.