Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
frknasir authored and github-actions[bot] committed May 27, 2022
1 parent 97d4dc3 commit a399d7d
Show file tree
Hide file tree
Showing 17 changed files with 16 additions and 31 deletions.
1 change: 0 additions & 1 deletion src/Actions/UpdateCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use StarfolkSoftware\Pigeonhole\Contracts\UpdatesCategories;
use StarfolkSoftware\Pigeonhole\Events\CategoryUpdated;
use StarfolkSoftware\Pigeonhole\Events\UpdatingCategory;
use StarfolkSoftware\Pigeonhole\Pigeonhole;

class UpdateCategory implements UpdatesCategories
{
Expand Down
4 changes: 1 addition & 3 deletions src/Events/CategoryCreated.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace StarfolkSoftware\Pigeonhole\Events;

use StarfolkSoftware\Pigeonhole\Events\CategoryEvent;

class CategoryCreated extends CategoryEvent
{
}
}
4 changes: 1 addition & 3 deletions src/Events/CategoryDeleted.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace StarfolkSoftware\Pigeonhole\Events;

use StarfolkSoftware\Pigeonhole\Events\CategoryEvent;

class CategoryDeleted extends CategoryEvent
{
}
}
2 changes: 1 addition & 1 deletion src/Events/CategoryEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ public function __construct(
public $data = []
) {
}
}
}
4 changes: 1 addition & 3 deletions src/Events/CategoryUpdated.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace StarfolkSoftware\Pigeonhole\Events;

use StarfolkSoftware\Pigeonhole\Events\CategoryEvent;

class CategoryUpdated extends CategoryEvent
{
}
}
4 changes: 1 addition & 3 deletions src/Events/CreatingCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace StarfolkSoftware\Pigeonhole\Events;

use StarfolkSoftware\Pigeonhole\Events\CategoryEvent;

class CreatingCategory extends CategoryEvent
{
}
}
4 changes: 1 addition & 3 deletions src/Events/DeletingCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace StarfolkSoftware\Pigeonhole\Events;

use StarfolkSoftware\Pigeonhole\Events\CategoryEvent;

class DeletingCategory extends CategoryEvent
{
}
}
4 changes: 1 addition & 3 deletions src/Events/UpdatingCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace StarfolkSoftware\Pigeonhole\Events;

use StarfolkSoftware\Pigeonhole\Events\CategoryEvent;

class UpdatingCategory extends CategoryEvent
{
}
}
3 changes: 1 addition & 2 deletions src/Http/Controllers/CategoryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace StarfolkSoftware\Pigeonhole\Http\Controllers;

use StarfolkSoftware\Pigeonhole\Category;
use StarfolkSoftware\Pigeonhole\Contracts\CreatesCategories;
use StarfolkSoftware\Pigeonhole\Contracts\DeletesCategories;
use StarfolkSoftware\Pigeonhole\Contracts\UpdatesCategories;
Expand Down Expand Up @@ -60,7 +59,7 @@ public function update($category, UpdatesCategories $updatesCategories)
public function destroy($category, DeletesCategories $deletesCategories)
{
$category = Pigeonhole::newCategoryModel()->findOrFail($category);

$deletesCategories(
request()->user(),
$category
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/Actions/CreateCategoryTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

use StarfolkSoftware\Pigeonhole\Tests\Mocks\Category as MocksCategory;
use StarfolkSoftware\Pigeonhole\Contracts\CreatesCategories;
use StarfolkSoftware\Pigeonhole\Pigeonhole;
use StarfolkSoftware\Pigeonhole\Tests\Mocks\Category as MocksCategory;
use StarfolkSoftware\Pigeonhole\Tests\Mocks\TestUser;

beforeAll(function () {
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/Actions/CreateCategoryWithTeamTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

use StarfolkSoftware\Pigeonhole\Tests\Mocks\Category as MocksCategory;
use StarfolkSoftware\Pigeonhole\Contracts\CreatesCategories;
use StarfolkSoftware\Pigeonhole\Pigeonhole;
use StarfolkSoftware\Pigeonhole\Tests\Mocks\Category as MocksCategory;
use StarfolkSoftware\Pigeonhole\Tests\Mocks\TeamModel;
use StarfolkSoftware\Pigeonhole\Tests\Mocks\TestUser;

Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/Actions/DeleteCategoryTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

use StarfolkSoftware\Pigeonhole\Tests\Mocks\Category as MocksCategory;
use StarfolkSoftware\Pigeonhole\Contracts\DeletesCategories;
use StarfolkSoftware\Pigeonhole\Pigeonhole;
use StarfolkSoftware\Pigeonhole\Tests\Mocks\Category as MocksCategory;
use StarfolkSoftware\Pigeonhole\Tests\Mocks\TestUser;

beforeAll(function () {
Expand Down
3 changes: 1 addition & 2 deletions tests/Feature/Actions/UpdateCategoryTest.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<?php

use StarfolkSoftware\Pigeonhole\Tests\Mocks\Category as MocksCategory;
use StarfolkSoftware\Pigeonhole\Category;
use StarfolkSoftware\Pigeonhole\Contracts\UpdatesCategories;
use StarfolkSoftware\Pigeonhole\Pigeonhole;
use StarfolkSoftware\Pigeonhole\Tests\Mocks\Category as MocksCategory;
use StarfolkSoftware\Pigeonhole\Tests\Mocks\TestUser;

beforeAll(function () {
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/CategoriesTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use StarfolkSoftware\Pigeonhole\Tests\Mocks\Category as MocksCategory;
use StarfolkSoftware\Pigeonhole\Pigeonhole;
use StarfolkSoftware\Pigeonhole\Tests\Mocks\Category as MocksCategory;
use StarfolkSoftware\Pigeonhole\Tests\Mocks\TestUser;

beforeAll(function () {
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/CategorizableTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use StarfolkSoftware\Pigeonhole\Tests\Mocks\Category as MocksCategory;
use StarfolkSoftware\Pigeonhole\Pigeonhole;
use StarfolkSoftware\Pigeonhole\Tests\Mocks\Category as MocksCategory;
use StarfolkSoftware\Pigeonhole\Tests\Mocks\TestProduct;

beforeAll(function () {
Expand Down
2 changes: 1 addition & 1 deletion tests/Mocks/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ protected static function newFactory()
'updated' => CategoryUpdated::class,
'deleted' => CategoryDeleted::class,
];
}
}
2 changes: 1 addition & 1 deletion tests/Mocks/CategoryFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ public function definition()

return $defs;
}
}
}

0 comments on commit a399d7d

Please sign in to comment.