Passed
Push — master ( 5fc55b...15140b )
by Kirill
02:47
created
src/Generator/GeneratedResult.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     public function __construct(string $body, string $class)
37 37
     {
38 38
         $this->body = $body;
39
-        $this->as($class . '.php');
39
+        $this->as($class.'.php');
40 40
     }
41 41
 
42 42
     /**
@@ -65,14 +65,14 @@  discard block
 block discarded – undo
65 65
      */
66 66
     public function saveTo(string $directory): Readable
67 67
     {
68
-        $path = $directory . \DIRECTORY_SEPARATOR . $this->file;
68
+        $path = $directory.\DIRECTORY_SEPARATOR.$this->file;
69 69
 
70
-        if (\is_file($path) && ! @\unlink($path)) {
71
-            throw new NotReadableException('Could not save a new source into ' . $path);
70
+        if (\is_file($path) && !@\unlink($path)) {
71
+            throw new NotReadableException('Could not save a new source into '.$path);
72 72
         }
73 73
 
74
-        if (! @\file_put_contents($path, $this->body)) {
75
-            throw new NotReadableException('Could not save a new source into ' . $path);
74
+        if (!@\file_put_contents($path, $this->body)) {
75
+            throw new NotReadableException('Could not save a new source into '.$path);
76 76
         }
77 77
 
78 78
         return File::fromPathname($path);
Please login to merge, or discard this patch.
src/Grammar/Reader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
         $path = $token->value(1);
128 128
 
129 129
         foreach (self::FILE_EXTENSIONS as $extension) {
130
-            $file = \dirname($from->getPathname()) . '/' . $path . $extension;
130
+            $file = \dirname($from->getPathname()).'/'.$path.$extension;
131 131
 
132 132
             if (\is_file($file)) {
133 133
                 return File::fromPathname($file);
Please login to merge, or discard this patch.