|  | @@ -79,7 +79,7 @@  discard block | 
                                                    
                                                        |  |  |  block discarded – undo | 
                                                                                                                                                                                                                    
                                                            | 79 | 79 |              $path          = dirname($path) !== static::VFSSTREAM_PREFIX ? dirname($path) : static::VFSSTREAM_URL; | 
                                                                                                            
                                                            | 80 | 80 |              $loopedPaths[] = basename($path); | 
                                                                                                            
                                                            | 81 | 81 |              //break early cuz DirectoryIterator can't handle vfs root folder | 
                                                                                                            
                                                            | 82 |  | -        } while ((0 === count($directory) || ! $breakEvent->isPropagationStopped()) && $path !== static::VFSSTREAM_URL); | 
                                                                                                            
                                                            |  | 82 | +        } while ((0 === count($directory) || !$breakEvent->isPropagationStopped()) && $path !== static::VFSSTREAM_URL); | 
                                                                                                            
                                                            | 83 | 83 |   | 
                                                                                                            
                                                            | 84 | 84 |          return $exceptionDirArray; | 
                                                                                                            
                                                            | 85 | 85 |      } | 
                                                                                                                                                        
                                                        |  | @@ -94,7 +94,7 @@  discard block | 
                                                    
                                                        |  |  |  block discarded – undo | 
                                                                                                                                                                                                                    
                                                            | 94 | 94 |          $directory = new DirectoryIterator($path); | 
                                                                                                            
                                                            | 95 | 95 |          $items     = []; | 
                                                                                                            
                                                            | 96 | 96 |          foreach ($directory as $item) { | 
                                                                                                            
                                                            | 97 |  | -            if (! $item->isDot()) { | 
                                                                                                            
                                                            |  | 97 | +            if (!$item->isDot()) { | 
                                                                                                            
                                                            | 98 | 98 |                  $items[] = clone $item; | 
                                                                                                            
                                                            | 99 | 99 |              } | 
                                                                                                            
                                                            | 100 | 100 |          } | 
                                                                                                                                                
                                         
                                        
                                            
                                                                                                    Please login to merge, or discard this patch.