Skip to content
Snippets Groups Projects
Commit 05aeb252 authored by Daniel Hürtgen's avatar Daniel Hürtgen
Browse files

TASK: Use native \SplFileInfo instead of Symfony one

parent 37f87282
No related merge requests found
...@@ -25,7 +25,6 @@ use Higidi\ComposerPhpCSStandardsPlugin\PHPCodeSniffer\Standards\Standards; ...@@ -25,7 +25,6 @@ use Higidi\ComposerPhpCSStandardsPlugin\PHPCodeSniffer\Standards\Standards;
use Higidi\ComposerPhpCSStandardsPlugin\PHPCodeSniffer\Standards\Factory; use Higidi\ComposerPhpCSStandardsPlugin\PHPCodeSniffer\Standards\Factory;
use Higidi\ComposerPhpCSStandardsPlugin\Symfony\Finder\Factory as FinderFactory; use Higidi\ComposerPhpCSStandardsPlugin\Symfony\Finder\Factory as FinderFactory;
use Symfony\Component\Finder\Finder as SymfonyFinder; use Symfony\Component\Finder\Finder as SymfonyFinder;
use Symfony\Component\Finder\SplFileInfo;
/** /**
* Standards finder class. * Standards finder class.
...@@ -67,7 +66,7 @@ class Finder ...@@ -67,7 +66,7 @@ class Finder
->sortByName(); ->sortByName();
$paths = iterator_to_array($finder, false); $paths = iterator_to_array($finder, false);
$paths = array_map( $paths = array_map(
function (SplFileInfo $file) { function (\SplFileInfo $file) {
return $file->getPath(); return $file->getPath();
}, },
$paths $paths
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment