Skip to content

Commit

Permalink
Fixing style errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
stickler-ci authored and saeideng committed Mar 22, 2018
1 parent fb8d264 commit 1f3507b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Filesystem/File.php
Expand Up @@ -359,14 +359,15 @@ public function name()
*
* @return string the file basename.
*/
protected function _basename($name, $ext=null)
protected function _basename($name, $ext = null)
{
$splInfo = new SplFileInfo($name);
$name = ltrim($splInfo->getFilename(), DS);
if($ext===null || rtrim($name,$ext)===''){
if ($ext === null || rtrim($name, $ext) === '') {
return $name;
}
return rtrim($name,$ext);

return rtrim($name, $ext);
}

/**
Expand Down

0 comments on commit 1f3507b

Please sign in to comment.