Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
080ff560
Unverified
Commit
080ff560
authored
Oct 10, 2017
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CS: PSR1/2
parent
ad5d2e36
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
4 additions
and
10 deletions
+4
-10
MoveFileOnDisk.php
Modules/Media/Events/Handlers/MoveFileOnDisk.php
+0
-1
MoveMediaController.php
Modules/Media/Http/Controllers/Api/MoveMediaController.php
+1
-3
MediaServiceProvider.php
Modules/Media/Providers/MediaServiceProvider.php
+0
-4
FileMover.php
Modules/Media/Services/Movers/FileMover.php
+1
-0
FolderMover.php
Modules/Media/Services/Movers/FolderMover.php
+1
-0
EloquentFileRepositoryTest.php
Modules/Media/Tests/EloquentFileRepositoryTest.php
+0
-1
FileMoverTest.php
Modules/Media/Tests/FileMoverTest.php
+1
-1
No files found.
Modules/Media/Events/Handlers/MoveFileOnDisk.php
View file @
080ff560
...
...
@@ -64,7 +64,6 @@ class MoveFileOnDisk
$this
->
getDestinationPath
(
$toPath
)
);
}
catch
(
FileExistsException
$e
)
{
}
}
...
...
Modules/Media/Http/Controllers/Api/MoveMediaController.php
View file @
080ff560
...
...
@@ -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
;
...
...
@@ -28,8 +27,7 @@ class MoveMediaController extends Controller
FileRepository
$file
,
FolderRepository
$folder
,
Mover
$mover
)
{
)
{
$this
->
file
=
$file
;
$this
->
folder
=
$folder
;
$this
->
mover
=
$mover
;
...
...
Modules/Media/Providers/MediaServiceProvider.php
View file @
080ff560
...
...
@@ -14,17 +14,13 @@ use Modules\Media\Console\RefreshThumbnailCommand;
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
;
...
...
Modules/Media/Services/Movers/FileMover.php
View file @
080ff560
...
...
@@ -90,6 +90,7 @@ final class FileMover implements MoverInterface
}
catch
(
FileExistsException
$e
)
{
return
false
;
}
return
true
;
}
...
...
Modules/Media/Services/Movers/FolderMover.php
View file @
080ff560
...
...
@@ -91,6 +91,7 @@ final class FolderMover implements MoverInterface
}
catch
(
FileExistsException
$e
)
{
return
false
;
}
return
true
;
}
...
...
Modules/Media/Tests/EloquentFileRepositoryTest.php
View file @
080ff560
...
...
@@ -11,7 +11,6 @@ use Modules\Media\Events\FileWasCreated;
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
;
...
...
Modules/Media/Tests/FileMoverTest.php
View file @
080ff560
...
...
@@ -5,8 +5,8 @@ namespace Modules\Media\Tests;
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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment