Passed
Push — master ( a0fc87...4d60db )
by Petr
08:22
created
php-tests/BasicTests/BasicFactoryTest.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,9 +28,13 @@
 block discarded – undo
28 28
     public function testFactoryAvailability(string $rule, bool $gotResult): void
29 29
     {
30 30
         $factory = new Rules\Factory();
31
-        if (!$gotResult) $this->expectException(RuleException::class);
31
+        if (!$gotResult) {
32
+            $this->expectException(RuleException::class);
33
+        }
32 34
         $data = $factory->getRule($rule);
33
-        if ($data) $this->assertInstanceOf(Rules\ARule::class, $data);
35
+        if ($data) {
36
+            $this->assertInstanceOf(Rules\ARule::class, $data);
37
+        }
34 38
     }
35 39
 
36 40
     public function inputsProvider(): array
Please login to merge, or discard this patch.
php-tests/BasicTests/FileFactoryTest.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,9 +25,13 @@
 block discarded – undo
25 25
     public function testFileFactoryAvailability(string $rule, bool $gotResult): void
26 26
     {
27 27
         $factory = new Rules\File\Factory();
28
-        if (!$gotResult) $this->expectException(RuleException::class);
28
+        if (!$gotResult) {
29
+            $this->expectException(RuleException::class);
30
+        }
29 31
         $data = $factory->getRule($rule);
30
-        if ($data) $this->assertInstanceOf(Rules\File\AFileRule::class, $data);
32
+        if ($data) {
33
+            $this->assertInstanceOf(Rules\File\AFileRule::class, $data);
34
+        }
31 35
     }
32 36
 
33 37
     public function inputFilesProvider(): array
Please login to merge, or discard this patch.