mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 09:00:18 +01:00 
			
		
		
		
	Tweaks from PR #58
This commit is contained in:
		
							parent
							
								
									f656675ace
								
							
						
					
					
						commit
						b6ab981f4d
					
				@ -39,7 +39,7 @@ class Compiler
 | 
				
			|||||||
        $phar->startBuffering();
 | 
					        $phar->startBuffering();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        $iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator(__DIR__), RecursiveIteratorIterator::CHILD_FIRST);
 | 
					        $iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator(__DIR__), RecursiveIteratorIterator::CHILD_FIRST);
 | 
				
			||||||
        /** @var $path \SplFileInfo */
 | 
					        /** @var \SplFileInfo $path */
 | 
				
			||||||
        foreach ($iterator as $path) {
 | 
					        foreach ($iterator as $path) {
 | 
				
			||||||
            if ($path->isFile()) {
 | 
					            if ($path->isFile()) {
 | 
				
			||||||
                $phar->addFromString(str_replace(dirname(__DIR__).'/', '', $path->getPathname()), file_get_contents($path));
 | 
					                $phar->addFromString(str_replace(dirname(__DIR__).'/', '', $path->getPathname()), file_get_contents($path));
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user