private function performMoveMedia($type, $location, $oldName, $newName)
    {
        $from = "{$location}/{$oldName}";

        switch (Str::lower($type)) {
            case Media::MEDIA_TYPE_FILE:
                return $this->moveFile($from, $location, $newName);

            case Media::MEDIA_TYPE_DIRECTORY:
                return $this->moveDirectory($from, $location, $newName);

            default:
                return false;
        }
    }
private function performMoveMedia($type, $location, $oldName, $newName)
    {
        $from = "{$location}/{$oldName}";

        switch (Str::lower($type)) {
            case Media::MEDIA_TYPE_FILE:
                return $this->moveFile($from, $location, $newName);

            case Media::MEDIA_TYPE_DIRECTORY:
                return $this->moveDirectory($from, $location, $newName);

            default:
                return false;
        }
    }
private function performMoveMedia ( $ type , $ location , $ oldName , $ newName ) { $ from = "{$location}/{$oldName}" ; switch ( Str :: lower ( $ type ) ) { case Media :: MEDIA_TYPE_FILE : return $ this -> moveFile ( $ from , $ location , $ newName ) ; case Media :: MEDIA_TYPE_DIRECTORY : return $ this -> moveDirectory ( $ from , $ location , $ newName ) ; default : return false ; } }
Perform the media movement.

@param  string  $type
@param  string  $location
@param  string  $oldName
@param  string  $newName

@return bool|string
Perform the media movement .