From 67fffaf1786be41baa4ba0efe5969612a3051f99 Mon Sep 17 00:00:00 2001 From: Lance Pioch Date: Tue, 25 Jul 2023 19:45:01 -0400 Subject: [PATCH] Pint these --- app/Models/Board.php | 2 +- app/Models/Comment.php | 2 +- app/Models/Project.php | 2 +- app/Models/Sprint.php | 2 +- app/Models/Task.php | 2 +- app/Policies/BoardPolicy.php | 2 +- app/Policies/CommentPolicy.php | 2 +- app/Policies/ProjectPolicy.php | 2 +- app/Policies/SprintPolicy.php | 2 +- database/factories/BoardFactory.php | 1 - database/factories/CommentFactory.php | 1 - database/factories/ProjectFactory.php | 1 - database/factories/SprintFactory.php | 1 - database/factories/TaskFactory.php | 1 - .../migrations/2023_07_20_000001_create_boards_table.php | 7 ++++--- .../2023_07_20_000002_create_board_task_table.php | 7 ++++--- .../migrations/2023_07_20_000003_create_comments_table.php | 7 ++++--- .../migrations/2023_07_20_000004_create_projects_table.php | 7 ++++--- .../migrations/2023_07_20_000005_create_sprints_table.php | 7 ++++--- .../2023_07_20_000006_create_sprint_task_table.php | 7 ++++--- .../migrations/2023_07_20_000007_create_tasks_table.php | 7 ++++--- .../2023_07_20_009001_add_foreigns_to_boards_table.php | 7 ++++--- .../2023_07_20_009002_add_foreigns_to_board_task_table.php | 7 ++++--- .../2023_07_20_009003_add_foreigns_to_comments_table.php | 7 ++++--- .../2023_07_20_009004_add_foreigns_to_projects_table.php | 7 ++++--- .../2023_07_20_009005_add_foreigns_to_sprints_table.php | 7 ++++--- ...2023_07_20_009006_add_foreigns_to_sprint_task_table.php | 7 ++++--- .../2023_07_20_009007_add_foreigns_to_tasks_table.php | 7 ++++--- .../2023_07_20_009008_add_foreigns_to_team_user_table.php | 7 ++++--- tests/Feature/ProjectsTest.php | 4 ++-- 30 files changed, 71 insertions(+), 61 deletions(-) diff --git a/app/Models/Board.php b/app/Models/Board.php index 51973c4..3298018 100644 --- a/app/Models/Board.php +++ b/app/Models/Board.php @@ -3,8 +3,8 @@ namespace App\Models; use App\Models\Scopes\Searchable; -use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Factories\HasFactory; +use Illuminate\Database\Eloquent\Model; class Board extends Model { diff --git a/app/Models/Comment.php b/app/Models/Comment.php index c0ab646..7af2f15 100644 --- a/app/Models/Comment.php +++ b/app/Models/Comment.php @@ -3,8 +3,8 @@ namespace App\Models; use App\Models\Scopes\Searchable; -use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Factories\HasFactory; +use Illuminate\Database\Eloquent\Model; class Comment extends Model { diff --git a/app/Models/Project.php b/app/Models/Project.php index b3e1b5b..95e3d7a 100644 --- a/app/Models/Project.php +++ b/app/Models/Project.php @@ -3,8 +3,8 @@ namespace App\Models; use App\Models\Scopes\Searchable; -use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Factories\HasFactory; +use Illuminate\Database\Eloquent\Model; class Project extends Model { diff --git a/app/Models/Sprint.php b/app/Models/Sprint.php index 41e2be5..37248f7 100644 --- a/app/Models/Sprint.php +++ b/app/Models/Sprint.php @@ -3,8 +3,8 @@ namespace App\Models; use App\Models\Scopes\Searchable; -use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Factories\HasFactory; +use Illuminate\Database\Eloquent\Model; class Sprint extends Model { diff --git a/app/Models/Task.php b/app/Models/Task.php index 065fdae..7eff926 100644 --- a/app/Models/Task.php +++ b/app/Models/Task.php @@ -3,8 +3,8 @@ namespace App\Models; use App\Models\Scopes\Searchable; -use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Factories\HasFactory; +use Illuminate\Database\Eloquent\Model; class Task extends Model { diff --git a/app/Policies/BoardPolicy.php b/app/Policies/BoardPolicy.php index 1ad2627..32f43fe 100644 --- a/app/Policies/BoardPolicy.php +++ b/app/Policies/BoardPolicy.php @@ -2,8 +2,8 @@ namespace App\Policies; -use App\Models\User; use App\Models\Board; +use App\Models\User; use Illuminate\Auth\Access\HandlesAuthorization; class BoardPolicy diff --git a/app/Policies/CommentPolicy.php b/app/Policies/CommentPolicy.php index b45ceba..dd17362 100644 --- a/app/Policies/CommentPolicy.php +++ b/app/Policies/CommentPolicy.php @@ -2,8 +2,8 @@ namespace App\Policies; -use App\Models\User; use App\Models\Comment; +use App\Models\User; use Illuminate\Auth\Access\HandlesAuthorization; class CommentPolicy diff --git a/app/Policies/ProjectPolicy.php b/app/Policies/ProjectPolicy.php index 251502a..f6ca7b8 100644 --- a/app/Policies/ProjectPolicy.php +++ b/app/Policies/ProjectPolicy.php @@ -2,8 +2,8 @@ namespace App\Policies; -use App\Models\User; use App\Models\Project; +use App\Models\User; use Illuminate\Auth\Access\HandlesAuthorization; class ProjectPolicy diff --git a/app/Policies/SprintPolicy.php b/app/Policies/SprintPolicy.php index 65bf220..f342c24 100644 --- a/app/Policies/SprintPolicy.php +++ b/app/Policies/SprintPolicy.php @@ -2,8 +2,8 @@ namespace App\Policies; -use App\Models\User; use App\Models\Sprint; +use App\Models\User; use Illuminate\Auth\Access\HandlesAuthorization; class SprintPolicy diff --git a/database/factories/BoardFactory.php b/database/factories/BoardFactory.php index f4651fc..9fd146a 100644 --- a/database/factories/BoardFactory.php +++ b/database/factories/BoardFactory.php @@ -3,7 +3,6 @@ namespace Database\Factories; use App\Models\Board; -use Illuminate\Support\Str; use Illuminate\Database\Eloquent\Factories\Factory; class BoardFactory extends Factory diff --git a/database/factories/CommentFactory.php b/database/factories/CommentFactory.php index 14fd4e2..835f299 100644 --- a/database/factories/CommentFactory.php +++ b/database/factories/CommentFactory.php @@ -3,7 +3,6 @@ namespace Database\Factories; use App\Models\Comment; -use Illuminate\Support\Str; use Illuminate\Database\Eloquent\Factories\Factory; class CommentFactory extends Factory diff --git a/database/factories/ProjectFactory.php b/database/factories/ProjectFactory.php index 9342f0e..1d2f69b 100644 --- a/database/factories/ProjectFactory.php +++ b/database/factories/ProjectFactory.php @@ -3,7 +3,6 @@ namespace Database\Factories; use App\Models\Project; -use Illuminate\Support\Str; use Illuminate\Database\Eloquent\Factories\Factory; class ProjectFactory extends Factory diff --git a/database/factories/SprintFactory.php b/database/factories/SprintFactory.php index 0ae80f0..fdca7d1 100644 --- a/database/factories/SprintFactory.php +++ b/database/factories/SprintFactory.php @@ -3,7 +3,6 @@ namespace Database\Factories; use App\Models\Sprint; -use Illuminate\Support\Str; use Illuminate\Database\Eloquent\Factories\Factory; class SprintFactory extends Factory diff --git a/database/factories/TaskFactory.php b/database/factories/TaskFactory.php index b7f1cba..17705a9 100644 --- a/database/factories/TaskFactory.php +++ b/database/factories/TaskFactory.php @@ -3,7 +3,6 @@ namespace Database\Factories; use App\Models\Task; -use Illuminate\Support\Str; use Illuminate\Database\Eloquent\Factories\Factory; class TaskFactory extends Factory diff --git a/database/migrations/2023_07_20_000001_create_boards_table.php b/database/migrations/2023_07_20_000001_create_boards_table.php index 0683bc5..879670c 100644 --- a/database/migrations/2023_07_20_000001_create_boards_table.php +++ b/database/migrations/2023_07_20_000001_create_boards_table.php @@ -1,10 +1,11 @@ markTestIncomplete(); @@ -37,7 +38,6 @@ public function test_projects_can_only_be_viewed_by_team_members(): void { $this->markTestIncomplete(); - // Create a team with a team leader $teamLeader = User::factory()->create(); $team = Team::factory()->create(['user_id' => $teamLeader->id]);