@@ -36,7 +36,7 @@ discard block |
||
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 |
||
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); |
@@ -127,7 +127,7 @@ |
||
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); |