Skip to content

Commit

Permalink
Merge pull request #43 from InfinetyEs/analysis-qgy6DQ
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
Krato authored Mar 19, 2019
2 parents b20721c + 0b96330 commit c75f04f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/FilemanagerServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace Infinety\Filemanager;

use Laravel\Nova\Nova;
use Laravel\Nova\Events\ServingNova;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\ServiceProvider;
use Infinety\Filemanager\Http\Middleware\Authorize;
use Laravel\Nova\Events\ServingNova;
use Laravel\Nova\Nova;

class FilemanagerServiceProvider extends ServiceProvider
{
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Controllers/FilemanagerToolController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

use Illuminate\Http\Request;
use Illuminate\Routing\Controller;
use Infinety\Filemanager\Http\Services\FileManagerService;
use Laravel\Nova\Http\Requests\NovaRequest;
use Infinety\Filemanager\Http\Services\FileManagerService;

class FilemanagerToolController extends Controller
{
Expand Down
9 changes: 4 additions & 5 deletions src/Http/Services/FileManagerService.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
namespace Infinety\Filemanager\Http\Services;

use Illuminate\Http\Request;
use InvalidArgumentException;
use Illuminate\Support\Facades\Storage;
use Infinety\Filemanager\Exceptions\InvalidConfig;
use Infinety\Filemanager\Http\Services\NormalizeFile;
use InvalidArgumentException;

class FileManagerService
{
Expand Down Expand Up @@ -72,15 +71,15 @@ public function ajaxGetFilesAndFolders(Request $request, $filter = false)
{
$folder = $this->cleanSlashes($request->get('folder'));

if (!$this->storage->exists($folder)) {
if (! $this->storage->exists($folder)) {
$folder = '/';
}

//Set relative Path
$this->setRelativePath($folder);

$order = $request->get('sort');
if (!$order) {
if (! $order) {
$order = config('filemanager.order', 'mime');
}

Expand Down Expand Up @@ -213,7 +212,7 @@ public function getFileInfo($file)
*/
public function getFileInfoAsArray($file)
{
if (!$this->storage->exists($file)) {
if (! $this->storage->exists($file)) {
return [];
}

Expand Down

0 comments on commit c75f04f

Please sign in to comment.