Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
KABBOUCHI authored and StyleCIBot committed Nov 22, 2019
1 parent b634661 commit 30b995d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions src/Http/Controllers/ImpersonateController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace KABBOUCHI\NovaImpersonate\Http\Controllers;

use Illuminate\Support\Str;
use Illuminate\Http\Request;
use Illuminate\Routing\Controller;
use Laravel\Nova\Actions\ActionEvent;
use Illuminate\Support\Str;
use Lab404\Impersonate\Services\ImpersonateManager;
use Laravel\Nova\Actions\ActionEvent;

class ImpersonateController extends Controller
{
Expand Down
6 changes: 3 additions & 3 deletions src/Http/Middleware/Impersonate.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

namespace KABBOUCHI\NovaImpersonate\Http\Middleware;

use Illuminate\Support\Str;
use Illuminate\Http\Response;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Response;
use Illuminate\Support\Str;
use Lab404\Impersonate\Services\ImpersonateManager;
use Symfony\Component\HttpFoundation\StreamedResponse;
use Symfony\Component\HttpFoundation\BinaryFileResponse;
use Symfony\Component\HttpFoundation\StreamedResponse;

class Impersonate
{
Expand Down
4 changes: 2 additions & 2 deletions src/Impersonate.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace KABBOUCHI\NovaImpersonate;

use Laravel\Nova\Resource;
use Laravel\Nova\Fields\Field;
use Illuminate\Database\Eloquent\Model;
use Laravel\Nova\Fields\Field;
use Laravel\Nova\Resource;

class Impersonate extends Field
{
Expand Down
18 changes: 9 additions & 9 deletions src/ToolServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace KABBOUCHI\NovaImpersonate;

use Laravel\Nova\Nova;
use Illuminate\Support\Arr;
use Laravel\Nova\Events\ServingNova;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\ServiceProvider;
use Laravel\Nova\Events\ServingNova;
use Laravel\Nova\Nova;

class ToolServiceProvider extends ServiceProvider
{
Expand All @@ -17,17 +17,17 @@ class ToolServiceProvider extends ServiceProvider
*/
public function boot()
{
Nova::script('nova-impersonate', __DIR__ . '/../dist/js/field.js');
Nova::style('nova-impersonate', __DIR__ . '/../dist/css/field.css');
Nova::script('nova-impersonate', __DIR__.'/../dist/js/field.js');
Nova::style('nova-impersonate', __DIR__.'/../dist/css/field.css');

$this->loadViewsFrom(__DIR__ . '/../resources/views', 'nova-impersonate');
$this->loadViewsFrom(__DIR__.'/../resources/views', 'nova-impersonate');

$this->publishes([
__DIR__ . '/../resources/views' => base_path('resources/views/vendor/nova-impersonate'),
__DIR__.'/../resources/views' => base_path('resources/views/vendor/nova-impersonate'),
], 'nova-impersonate-views');

$this->publishes([
__DIR__ . '/../config/nova-impersonate.php' => config_path('nova-impersonate.php'),
__DIR__.'/../config/nova-impersonate.php' => config_path('nova-impersonate.php'),
], 'nova-impersonate-config');

$this->app->booted(function () {
Expand Down Expand Up @@ -57,7 +57,7 @@ protected function routes()
Route::middleware(Arr::wrap(config('nova-impersonate.middleware.base')))
->prefix('nova-impersonate')
->name('nova.impersonate.')
->group(__DIR__ . '/../routes/api.php');
->group(__DIR__.'/../routes/api.php');
}
}

Expand All @@ -68,6 +68,6 @@ protected function routes()
*/
public function register()
{
$this->mergeConfigFrom(__DIR__ . '/../config/nova-impersonate.php', 'nova-impersonate');
$this->mergeConfigFrom(__DIR__.'/../config/nova-impersonate.php', 'nova-impersonate');
}
}

0 comments on commit 30b995d

Please sign in to comment.