Fix indents

This commit is contained in:
bzick 2013-07-03 12:10:50 +04:00
parent c76f5c8be0
commit 0457d5c379
5 changed files with 303 additions and 299 deletions

View File

@ -26,9 +26,13 @@ class Provider implements ProviderInterface {
if(is_file($path)) { if(is_file($path)) {
unlink($path); unlink($path);
} elseif(is_dir($path)) { } elseif(is_dir($path)) {
$iterator = iterator_to_array(new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($path, $iterator = iterator_to_array(
new \RecursiveIteratorIterator(
new \RecursiveDirectoryIterator($path,
\FilesystemIterator::KEY_AS_PATHNAME | \FilesystemIterator::CURRENT_AS_FILEINFO | \FilesystemIterator::SKIP_DOTS), \FilesystemIterator::KEY_AS_PATHNAME | \FilesystemIterator::CURRENT_AS_FILEINFO | \FilesystemIterator::SKIP_DOTS),
\RecursiveIteratorIterator::CHILD_FIRST)); \RecursiveIteratorIterator::CHILD_FIRST
)
);
foreach($iterator as $file) { foreach($iterator as $file) {
/* @var \splFileInfo $file*/ /* @var \splFileInfo $file*/
if($file->isFile()) { if($file->isFile()) {