Permalink
Browse files

removed support for PHP 5.3

  • Loading branch information...
dg committed May 20, 2015
1 parent 2a9619e commit 6ec9057f36d02e7fd3bd5c215e3ed33a748ccd7c
Showing with 6 additions and 83 deletions.
  1. +0 −37 src/Finder/CallbackFilterIterator.php
  2. +6 −7 src/Finder/Finder.php
  3. +0 −39 src/Finder/RecursiveCallbackFilterIterator.php

This file was deleted.

Oops, something went wrong.
@@ -232,8 +232,7 @@ private function buildIterator($path)
if ($this->exclude) {
$filters = $this->exclude;
$iterator = new RecursiveCallbackFilterIterator($iterator, function($foo, $bar, RecursiveCallbackFilterIterator $iterator) use ($filters) {
$file = $iterator->getInnerIterator();
$iterator = new \RecursiveCallbackFilterIterator($iterator, function($foo, $bar, \RecursiveDirectoryIterator $file) use ($filters) {
if (!$file->isDot() && !$file->isFile()) {
foreach ($filters as $filter) {
if (!call_user_func($filter, $file)) {
@@ -252,10 +251,10 @@ private function buildIterator($path)
if ($this->groups) {
$groups = $this->groups;
$iterator = new CallbackFilterIterator($iterator, function($foo, $bar, CallbackFilterIterator $file) use ($groups) {
do {
$iterator = new \CallbackFilterIterator($iterator, function($foo, $bar, \Iterator $file) use ($groups) {
while ($file instanceof \OuterIterator) {
$file = $file->getInnerIterator();
} while (!$file instanceof FilesystemIterator);
}
foreach ($groups as $filters) {
foreach ($filters as $filter) {
@@ -339,7 +338,7 @@ public function size($operator, $size = NULL)
$operator = $operator ? $operator : '=';
}
return $this->filter(function(FilesystemIterator $file) use ($operator, $size) {
return Finder::compare($file->getSize(), $operator, $size);
return self::compare($file->getSize(), $operator, $size);
});
}
@@ -361,7 +360,7 @@ public function date($operator, $date = NULL)
}
$date = DateTime::from($date)->format('U');
return $this->filter(function(FilesystemIterator $file) use ($operator, $date) {
return Finder::compare($file->getMTime(), $operator, $date);
return self::compare($file->getMTime(), $operator, $date);
});
}

This file was deleted.

Oops, something went wrong.

0 comments on commit 6ec9057

Please sign in to comment.