Skip to content
Permalink
Browse files

Fixing style errors.

  • Loading branch information...
stickler-ci authored and saeideng committed Feb 26, 2018
1 parent fb8d264 commit 1f3507bf273e35caed011646e2351165ff9956af
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/Filesystem/File.php
@@ -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);
}
/**

0 comments on commit 1f3507b

Please sign in to comment.
You can’t perform that action at this time.