Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Ullyott <ullyott.kevin@gmail.com>
  • Loading branch information
Orrison committed Aug 24, 2023
1 parent b5ae215 commit f753151
Show file tree
Hide file tree
Showing 30 changed files with 36 additions and 81 deletions.
4 changes: 1 addition & 3 deletions app-modules/assist-data-model/src/AssistDataModelPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,5 @@ public function register(Panel $panel): void
);
}

public function boot(Panel $panel): void
{
}
public function boot(Panel $panel): void {}
}
3 changes: 1 addition & 2 deletions app-modules/assist-data-model/src/Models/Student.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
use Illuminate\Database\Eloquent\Relations\MorphToMany;
use Assist\Authorization\Models\Concerns\DefinesPermissions;
use Illuminate\Notifications\DatabaseNotificationCollection;
use Assist\AssistDataModel\Database\Factories\StudentFactory;
use Assist\Audit\Models\Concerns\Auditable as AuditableTrait;

/**
Expand All @@ -40,7 +39,7 @@
* @property-read Collection<int, Subscription> $subscriptions
* @property-read int|null $subscriptions_count
*
* @method static StudentFactory factory($count = null, $state = [])
* @method static \Assist\AssistDataModel\Database\Factories\StudentFactory factory($count = null, $state = [])
* @method static Builder|Student newModelQuery()
* @method static Builder|Student newQuery()
* @method static Builder|Student query()
Expand Down
4 changes: 1 addition & 3 deletions app-modules/audit/src/AuditPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,5 @@ public function register(Panel $panel): void
);
}

public function boot(Panel $panel): void
{
}
public function boot(Panel $panel): void {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,5 @@ class RoleAttachedToRoleGroup
*/
public function __construct(
public RoleGroupRolePivot $pivot
) {
}
) {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,5 @@ class RoleRemovedFromRoleGroup
*/
public function __construct(
public RoleGroupRolePivot $pivot
) {
}
) {}
}
3 changes: 1 addition & 2 deletions app-modules/authorization/src/Events/RoleRemovedFromUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@ class RoleRemovedFromUser
public function __construct(
public Role $role,
public User $user
) {
}
) {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,5 @@ class UserAttachedToRoleGroup
*/
public function __construct(
public RoleGroupUserPivot $pivot
) {
}
) {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,5 @@ class UserRemovedFromRoleGroup
*/
public function __construct(
public RoleGroupUserPivot $pivot
) {
}
) {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ class SocialiteLogoutResponse extends LogoutResponse
{
public function __construct(
public SocialiteProvider $provider
) {
}
) {}

public function toResponse($request): RedirectResponse
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

// TODO I am leaving this trait here as a placeholder for something that will be responsible for creating new permissions
// For specific instances of a model. For instance, when a user record is created, we'll need to create the permissions for that record (user.1.view, user.1.edit, etc.)
trait ImplementsPermissionHandling
{
}
trait ImplementsPermissionHandling {}
4 changes: 1 addition & 3 deletions app-modules/case/src/CasePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,5 @@ public function register(Panel $panel): void
);
}

public function boot(Panel $panel): void
{
}
public function boot(Panel $panel): void {}
}
2 changes: 0 additions & 2 deletions app-modules/case/src/Models/CaseItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@
use App\Models\Institution;
use Assist\Audit\Models\Audit;
use Illuminate\Support\Carbon;
use Assist\Prospect\Models\Prospect;
use Kirschbaum\PowerJoins\PowerJoins;
use Illuminate\Database\Eloquent\Model;
use OwenIt\Auditing\Contracts\Auditable;
use Illuminate\Database\Eloquent\Builder;
use Assist\AssistDataModel\Models\Student;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\SoftDeletes;
use Assist\Case\Database\Factories\CaseItemFactory;
Expand Down
4 changes: 1 addition & 3 deletions app-modules/engagement/database/seeders/EngagementSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@

class EngagementSeeder extends Seeder
{
public function run(): void
{
}
public function run(): void {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ abstract class QueuedEngagementDelivery implements EngagementChannel, ShouldQueu

public function __construct(
public EngagementDeliverable $deliverable
) {
}
) {}

public function handle(): void
{
Expand Down
4 changes: 1 addition & 3 deletions app-modules/engagement/src/EngagementPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,5 @@ public function register(Panel $panel): void
);
}

public function boot(Panel $panel): void
{
}
public function boot(Panel $panel): void {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

use Exception;

class UnknownDeliveryMethodException extends Exception
{
}
class UnknownDeliveryMethodException extends Exception {}
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ class EngagementNotification extends Notification

public function __construct(
protected EngagementDeliverable $deliverable
) {
}
) {}

public function via(object $notifiable): array
{
Expand Down
4 changes: 1 addition & 3 deletions app-modules/knowledge-base/src/KnowledgeBasePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,5 @@ public function register(Panel $panel): void
);
}

public function boot(Panel $panel): void
{
}
public function boot(Panel $panel): void {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,4 @@
*
* @mixin Model
*/
interface Subscribable
{
}
interface Subscribable {}
7 changes: 6 additions & 1 deletion app-modules/notifications/src/Models/Subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,23 @@
* @property string $subscribable_type
* @property Carbon|null $created_at
* @property Carbon|null $updated_at
* @property-read Model|Eloquent $subscribable
* @property Carbon|null $deleted_at
* @property-read Model|\Eloquent $subscribable
* @property-read User $user
*
* @method static Builder|Subscription newModelQuery()
* @method static Builder|Subscription newQuery()
* @method static Builder|Subscription onlyTrashed()
* @method static Builder|Subscription query()
* @method static Builder|Subscription whereCreatedAt($value)
* @method static Builder|Subscription whereDeletedAt($value)
* @method static Builder|Subscription whereId($value)
* @method static Builder|Subscription whereSubscribableId($value)
* @method static Builder|Subscription whereSubscribableType($value)
* @method static Builder|Subscription whereUpdatedAt($value)
* @method static Builder|Subscription whereUserId($value)
* @method static Builder|Subscription withTrashed()
* @method static Builder|Subscription withoutTrashed()
*
* @mixin Eloquent
*/
Expand Down
4 changes: 1 addition & 3 deletions app-modules/prospect/src/ProspectPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,5 @@ public function register(Panel $panel): void
);
}

public function boot(Panel $panel): void
{
}
public function boot(Panel $panel): void {}
}
3 changes: 1 addition & 2 deletions app/DataTransferObjects/ForeignDataWrapperData.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ public function __construct(
public string $externalDatabase,
/** @var array<string> */
public array $tables,
) {
}
) {}
}
3 changes: 1 addition & 2 deletions app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ class Handler extends ExceptionHandler
*/
public function register(): void
{
$this->reportable(function (Throwable $e) {
});
$this->reportable(function (Throwable $e) {});
}

protected function unauthenticated($request, AuthenticationException $exception)
Expand Down
8 changes: 2 additions & 6 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,10 @@ class AppServiceProvider extends ServiceProvider
/**
* Register any application services.
*/
public function register(): void
{
}
public function register(): void {}

/**
* Bootstrap any application services.
*/
public function boot(): void
{
}
public function boot(): void {}
}
4 changes: 1 addition & 3 deletions app/Providers/EventServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ class EventServiceProvider extends ServiceProvider
/**
* Register any events for your application.
*/
public function boot(): void
{
}
public function boot(): void {}

/**
* Determine if events and listeners should be automatically discovered.
Expand Down
4 changes: 1 addition & 3 deletions app/Providers/MorphServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@

class MorphServiceProvider extends ServiceProvider
{
public function register(): void
{
}
public function register(): void {}

public function boot(): void
{
Expand Down
4 changes: 1 addition & 3 deletions app/View/Components/DatePicker.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ class DatePicker extends Component
*
* @return void
*/
public function __construct()
{
}
public function __construct() {}

/**
* Get the view / contents that represent the component.
Expand Down
4 changes: 1 addition & 3 deletions app/View/Components/Dropzone.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ class Dropzone extends Component
*
* @return void
*/
public function __construct()
{
}
public function __construct() {}

/**
* Get the view / contents that represent the component.
Expand Down
3 changes: 1 addition & 2 deletions routes/api.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<?php

Route::group(['prefix' => 'v1', 'as' => 'api.', 'middleware' => ['auth:sanctum']], function () {
});
Route::group(['prefix' => 'v1', 'as' => 'api.', 'middleware' => ['auth:sanctum']], function () {});
8 changes: 2 additions & 6 deletions stubs/app-modules/app/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@

class StubClassNamePrefixServiceProvider extends ServiceProvider
{
public function register()
{
}
public function register() {}

public function boot()
{
}
public function boot() {}
}

0 comments on commit f753151

Please sign in to comment.