Browse Source

Fixing style errors.

stickler-ci 8 years ago
parent
commit
1f3507bf27
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/Filesystem/File.php

+ 4 - 3
src/Filesystem/File.php

@@ -359,14 +359,15 @@ class File
      *
      * @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);
     }
 
     /**