Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mckenziearts authored and actions-user committed Aug 25, 2021
1 parent bd5fb05 commit 8fc053d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 15 deletions.
4 changes: 1 addition & 3 deletions src/Console/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

namespace Shopper\Framework\Console;

use Traitor\Traitor;
use Illuminate\Console\Command;
use Spatie\Analytics\AnalyticsServiceProvider;
use Shopper\Framework\Models\Traits\ShopperUser;
use Symfony\Component\Console\Helper\ProgressBar;
use Shopper\Framework\Providers\ShopperServiceProvider;

Expand Down Expand Up @@ -122,7 +120,7 @@ protected function complete(): void
======================== Installation Complete ======================
");

$this->comment("Before create an admin user you have to change the extend class of your User Model to The Shopper User Model 'Shopper\Framework\Models\User\User'");
$this->comment("Before create an admin user you have to change the extend class of your User Model to The Shopper User Model 'Shopper\\Framework\\Models\\User\\User'");
$this->comment("To create a user, run 'php artisan shopper:admin'");
}

Expand Down
16 changes: 8 additions & 8 deletions src/FrameworkServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,31 @@

use Carbon\Carbon;
use const LC_TIME;
use Illuminate\Contracts\Auth\StatefulGuard;
use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\ServiceProvider;
use Maatwebsite\Sidebar\Middleware\ResolveSidebars;
use Shopper\Framework\Contracts\FailedTwoFactorLoginResponse as FailedTwoFactorLoginResponseContract;
use Shopper\Framework\Contracts\TwoFactorAuthenticationProvider as TwoFactorAuthenticationProviderContract;
use Shopper\Framework\Services\Gravatar;
use Illuminate\Contracts\Auth\StatefulGuard;
use Shopper\Framework\Events\BuildingSidebar;
use Shopper\Framework\Http\Middleware\Dashboard;
use Shopper\Framework\Http\Composers\MenuCreator;
use Spatie\Permission\Middlewares\RoleMiddleware;
use Maatwebsite\Sidebar\Middleware\ResolveSidebars;
use Shopper\Framework\Http\Middleware\Authenticate;
use Shopper\Framework\Http\Composers\GlobalComposer;
use Shopper\Framework\Http\Composers\SidebarCreator;
use Shopper\Framework\Http\Middleware\HasConfiguration;
use Shopper\Framework\Providers\ShopperServiceProvider;
use Spatie\Permission\Middlewares\PermissionMiddleware;
use Shopper\Framework\Exceptions\ShopperExceptionHandler;
use Shopper\Framework\Events\Handlers\RegisterShopSidebar;
use Shopper\Framework\Events\Handlers\RegisterOrderSidebar;
use Shopper\Framework\Http\Middleware\RedirectIfAuthenticated;
use Shopper\Framework\Events\Handlers\RegisterDashboardSidebar;
use Shopper\Framework\Http\Responses\FailedTwoFactorLoginResponse;
use Shopper\Framework\Providers\ShopperServiceProvider;
use Shopper\Framework\Services\Gravatar;
use Shopper\Framework\Services\TwoFactor\TwoFactorAuthenticationProvider;
use Spatie\Permission\Middlewares\RoleMiddleware;
use Spatie\Permission\Middlewares\PermissionMiddleware;
use Shopper\Framework\Contracts\FailedTwoFactorLoginResponse as FailedTwoFactorLoginResponseContract;
use Shopper\Framework\Contracts\TwoFactorAuthenticationProvider as TwoFactorAuthenticationProviderContract;

class FrameworkServiceProvider extends ServiceProvider
{
Expand Down
6 changes: 2 additions & 4 deletions src/Models/User/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
namespace Shopper\Framework\Models\User;

use function count;
use Illuminate\Support\Facades\Storage;
use Laravel\Cashier\Billable;
use Spatie\Permission\Traits\HasRoles;
use Illuminate\Support\Facades\Storage;
use Illuminate\Database\Eloquent\SoftDeletes;
use Shopper\Framework\Models\Shop\Order\Order;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Shopper\Framework\Models\Traits\CanHaveDiscount;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Shopper\Framework\Services\TwoFactor\TwoFactorAuthenticatable;
use Spatie\Permission\Traits\HasRoles;

class User extends Authenticatable
{
Expand Down Expand Up @@ -74,8 +74,6 @@ public static function boot()

/**
* Get the table associated with the model.
*
* @return string
*/
public function getTable(): string
{
Expand Down
2 changes: 2 additions & 0 deletions src/Traits/WithSeoAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
trait WithSeoAttributes
{
public bool $updateSeo = false;

public ?string $seoTitle = null;

public ?string $seoDescription = null;

/**
Expand Down

0 comments on commit 8fc053d

Please sign in to comment.