Skip to content

Commit

Permalink
Fixing style errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
stickler-ci committed Mar 22, 2018
1 parent f405fdf commit 2bc59f9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Filesystem/File.php
Expand Up @@ -365,7 +365,7 @@ protected static function _basename($path, $ext = null)
{
//check for multibyte string and use basename() if not found
if (mb_strlen($path) === strlen($path)) {
return ($ext===null)? basename($path) : basename($path, $ext);
return ($ext === null)? basename($path) : basename($path, $ext);
}

$splInfo = new SplFileInfo($path);
Expand All @@ -379,7 +379,6 @@ protected static function _basename($path, $ext = null)

// basename of '/etc/.d' is '.d' not ''
return ($new === '')? $name : $new;

}

/**
Expand Down

0 comments on commit 2bc59f9

Please sign in to comment.