Passed
Push — master ( 5456f3...6dca04 )
by Kirill
03:57
created
src/Prototype/tests/ClassNode/ConflictResolver/ConflictResolverTest.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,8 @@
 block discarded – undo
55 55
      */
56 56
     public static function assertRegExp(string $pattern, string $string, string $message = ''): void
57 57
     {
58
-        if (\method_exists(Assert::class, 'assertMatchesRegularExpression')) {
58
+        if (\method_exists(Assert::class, 'assertMatchesRegularExpression'))
59
+        {
59 60
             Assert::assertMatchesRegularExpression($pattern, $string, $message);
60 61
 
61 62
             return;
Please login to merge, or discard this patch.
src/StemplerBridge/tests/EngineTest.php 1 patch
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -57,9 +57,12 @@  discard block
 block discarded – undo
57 57
     {
58 58
         $s = $this->getStempler();
59 59
 
60
-        try {
60
+        try
61
+        {
61 62
             $s->get('echo', new ViewContext())->render();
62
-        } catch (RenderException $e) {
63
+        }
64
+        catch (RenderException $e)
65
+        {
63 66
             $t = $e->getUserTrace()[0];
64 67
 
65 68
             $this->assertSame(2, $t['line']);
@@ -71,9 +74,12 @@  discard block
 block discarded – undo
71 74
     {
72 75
         $s = $this->getStempler();
73 76
 
74
-        try {
77
+        try
78
+        {
75 79
             $s->get('other:echo-in', new ViewContext())->render();
76
-        } catch (RenderException $e) {
80
+        }
81
+        catch (RenderException $e)
82
+        {
77 83
             $t = $e->getUserTrace();
78 84
             $this->assertCount(2, $t);
79 85
 
@@ -89,9 +95,12 @@  discard block
 block discarded – undo
89 95
     {
90 96
         $twig = $this->getStempler();
91 97
 
92
-        try {
98
+        try
99
+        {
93 100
             $twig->get('other:bad', new ViewContext());
94
-        } catch (CompileException $e) {
101
+        }
102
+        catch (CompileException $e)
103
+        {
95 104
             $this->assertStringContainsString('bad.dark.php', $e->getFile());
96 105
         }
97 106
     }
Please login to merge, or discard this patch.