Skip to content

Commit

Permalink
Fixed #71
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Apr 16, 2020
1 parent f71100a commit ea8f5ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Linter.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function __construct($path, array $excludes = [], array $extensions = ['p
{
$this->path = (array)$path;
$this->excludes = $excludes;
$this->extensions = \array_map(function($extension){
$this->extensions = \array_map(function ($extension) {
return \sprintf('*.%s', \ltrim($extension, '.'));
}, $extensions);
}
Expand Down Expand Up @@ -161,7 +161,7 @@ public function getFiles()
foreach ($this->path as $path) {
if (is_dir($path)) {
$this->files = array_merge($this->files, $this->getFilesFromDir($path));
} else if (is_file($path)) {
} elseif (is_file($path)) {
$this->files[$path] = new SplFileInfo($path, $path, $path);
}
}
Expand Down

0 comments on commit ea8f5ea

Please sign in to comment.