Skip to content

Commit

Permalink
CS: PSR1/2
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Oct 10, 2017
1 parent ad5d2e3 commit 080ff56
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 10 deletions.
1 change: 0 additions & 1 deletion Modules/Media/Events/Handlers/MoveFileOnDisk.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ private function move($fromPath, $toPath)
$this->getDestinationPath($toPath)
);
} catch (FileExistsException $e) {

}
}

Expand Down
4 changes: 1 addition & 3 deletions Modules/Media/Http/Controllers/Api/MoveMediaController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Modules\Media\Http\Controllers\Api;

use Illuminate\Routing\Controller;
use Modules\Media\Entities\File;
use Modules\Media\Http\Requests\MoveMediaRequest;
use Modules\Media\Repositories\FileRepository;
use Modules\Media\Repositories\FolderRepository;
Expand All @@ -28,8 +27,7 @@ public function __construct(
FileRepository $file,
FolderRepository $folder,
Mover $mover
)
{
) {
$this->file = $file;
$this->folder = $folder;
$this->mover = $mover;
Expand Down
4 changes: 0 additions & 4 deletions Modules/Media/Providers/MediaServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,13 @@
use Modules\Media\Contracts\DeletingMedia;
use Modules\Media\Contracts\StoringMedia;
use Modules\Media\Entities\File;
use Modules\Media\Events\FileStartedMoving;
use Modules\Media\Events\FolderIsDeleting;
use Modules\Media\Events\FolderStartedMoving;
use Modules\Media\Events\FolderWasCreated;
use Modules\Media\Events\FolderWasUpdated;
use Modules\Media\Events\Handlers\CreateFolderOnDisk;
use Modules\Media\Events\Handlers\DeleteAllChildrenOfFolder;
use Modules\Media\Events\Handlers\DeleteFolderOnDisk;
use Modules\Media\Events\Handlers\HandleMediaStorage;
use Modules\Media\Events\Handlers\MoveFileOnDisk;
use Modules\Media\Events\Handlers\MoveFolderOnDisk;
use Modules\Media\Events\Handlers\RegisterMediaSidebar;
use Modules\Media\Events\Handlers\RemovePolymorphicLink;
use Modules\Media\Events\Handlers\RenameFolderOnDisk;
Expand Down
1 change: 1 addition & 0 deletions Modules/Media/Services/Movers/FileMover.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ private function moveFile($fromPath, $toPath) : bool
} catch (FileExistsException $e) {
return false;
}

return true;
}

Expand Down
1 change: 1 addition & 0 deletions Modules/Media/Services/Movers/FolderMover.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ private function moveDirectory($fromPath, $toPath) : bool
} catch (FileExistsException $e) {
return false;
}

return true;
}

Expand Down
1 change: 0 additions & 1 deletion Modules/Media/Tests/EloquentFileRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use Modules\Media\Events\FileWasUpdated;
use Modules\Media\Repositories\FileRepository;
use Modules\Media\Repositories\FolderRepository;
use Modules\Media\Services\FileService;
use Symfony\Component\Finder\SplFileInfo;
use Symfony\Component\HttpFoundation\File\UploadedFile;

Expand Down
2 changes: 1 addition & 1 deletion Modules/Media/Tests/FileMoverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
use Modules\Media\Entities\File;
use Modules\Media\Repositories\FileRepository;
use Modules\Media\Repositories\FolderRepository;
use Modules\Media\Services\Movers\FileMover;
use Modules\Media\Services\FileService;
use Modules\Media\Services\Movers\FileMover;

final class FileMoverTest extends MediaTestCase
{
Expand Down

0 comments on commit 080ff56

Please sign in to comment.