Completed
Push — master ( 9b9925...ad9f60 )
by Christian
01:14
created
src/Compiler.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      */
133 133
     public function addFile($file, $strip = true)
134 134
     {
135
-        $realFile = realpath($this->path . DIRECTORY_SEPARATOR . $file);
135
+        $realFile = realpath($this->path.DIRECTORY_SEPARATOR.$file);
136 136
         $this->files[$file] = [$realFile, (bool) $strip];
137 137
     }
138 138
 
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      */
146 146
     public function addDirectory($directory, $exclude = null, $strip = true)
147 147
     {
148
-        $realPath = realpath($this->path . DIRECTORY_SEPARATOR . $directory);
148
+        $realPath = realpath($this->path.DIRECTORY_SEPARATOR.$directory);
149 149
         $iterator = new \RecursiveDirectoryIterator(
150 150
             $realPath,
151 151
             \FilesystemIterator::SKIP_DOTS | \FilesystemIterator::UNIX_PATHS | \FilesystemIterator::CURRENT_AS_SELF
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 
154 154
         if ((is_string($exclude) || is_array($exclude)) && !empty($exclude)) {
155 155
             $exclude = (array) $exclude;
156
-            $iterator = new \RecursiveCallbackFilterIterator($iterator, function (\RecursiveDirectoryIterator $current) use ($exclude) {
156
+            $iterator = new \RecursiveCallbackFilterIterator($iterator, function(\RecursiveDirectoryIterator $current) use ($exclude) {
157 157
                 if ($current->isDir()) {
158 158
                     return true;
159 159
                 }
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
             throw new \InvalidArgumentException(sprintf('Index file type "%s" is invalid, must be one of: cli, web', $type));
195 195
         }
196 196
 
197
-        $this->index[$type] = [$file, realpath($this->path . DIRECTORY_SEPARATOR . $file)];
197
+        $this->index[$type] = [$file, realpath($this->path.DIRECTORY_SEPARATOR.$file)];
198 198
     }
199 199
 
200 200
     /**
Please login to merge, or discard this patch.