| @@ -7,9 +7,9 @@ | ||
| 7 | 7 | * |
| 8 | 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | -namespace WindPressPackages\Symfony\Component\Finder; | |
| 11 | +namespace WindPressDeps\Symfony\Component\Finder; | |
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | 14 | * Extends \SplFileInfo to support relative paths. |
| 15 | 15 | * |
| @@ -51,12 +51,12 @@ | ||
| 51 | 51 | public function getRelativePathname() |
| 52 | 52 | { |
| 53 | 53 | return $this->relativePathname; |
| 54 | 54 | } |
| 55 | - public function getFilenameWithoutExtension() : string | |
| 55 | + public function getFilenameWithoutExtension(): string | |
| 56 | 56 | { |
| 57 | 57 | $filename = $this->getFilename(); |
| 58 | - return \pathinfo($filename, \PATHINFO_FILENAME); | |
| 58 | + return pathinfo($filename, \PATHINFO_FILENAME); | |
| 59 | 59 | } |
| 60 | 60 | /** |
| 61 | 61 | * Returns the contents of the file. |
| 62 | 62 | * |
| @@ -65,15 +65,15 @@ | ||
| 65 | 65 | * @throws \RuntimeException |
| 66 | 66 | */ |
| 67 | 67 | public function getContents() |
| 68 | 68 | { |
| 69 | - \set_error_handler(function ($type, $msg) use(&$error) { | |
| 69 | + set_error_handler(function ($type, $msg) use (&$error) { | |
| 70 | 70 | $error = $msg; |
| 71 | 71 | }); |
| 72 | 72 | try { |
| 73 | - $content = \file_get_contents($this->getPathname()); | |
| 73 | + $content = file_get_contents($this->getPathname()); | |
| 74 | 74 | } finally { |
| 75 | - \restore_error_handler(); | |
| 75 | + restore_error_handler(); | |
| 76 | 76 | } |
| 77 | 77 | if (\false === $content) { |
| 78 | 78 | throw new \RuntimeException($error); |
| 79 | 79 | } |