Passed
Push — master ( 805512...f287b3 )
by Jitendra
01:27
created
example.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 echo (new Highlighter("<?php echo 'Hello world!'; ?>\n"))->highlight();
9 9
 
10 10
 // Highlight file
11
-echo Highlighter::for(__FILE__)->highlight();
11
+echo Highlighter::for (__FILE__)->highlight();
12 12
 
13 13
 // Magic string works too:
14 14
 // echo new Highlighter('<?php echo "Hello world!";');
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,9 @@
 block discarded – undo
8 8
 echo (new Highlighter("<?php echo 'Hello world!'; ?>\n"))->highlight();
9 9
 
10 10
 // Highlight file
11
-echo Highlighter::for(__FILE__)->highlight();
11
+echo Highlighter::for(__FILE__) {
12
+    ->highlight();
13
+}
12 14
 
13 15
 // Magic string works too:
14 16
 // echo new Highlighter('<?php echo "Hello world!";');
Please login to merge, or discard this patch.
src/Highlighter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         return $this->highlight();
23 23
     }
24 24
 
25
-    public static function for(string $file): self
25
+    public static function for (string $file): self
26 26
     {
27 27
         if (!\is_file($file)) {
28 28
             throw new \InvalidArgumentException('The given file doesnot exist or is unreadable.');
Please login to merge, or discard this patch.