Skip to content

Commit d8746b9

Browse files
aguingandgithub-actions[bot]
authored andcommitted
CS fix
1 parent db9fd1b commit d8746b9

10 files changed

Lines changed: 0 additions & 16 deletions

File tree

src/EntityList/Fields/EntityListField.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ public function setHtml(bool $html = true): self
3131
return $this;
3232
}
3333

34-
35-
3634
public function toArray(): array
3735
{
3836
return [

src/EntityList/SharpEntityList.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ final public function configureDefaultSort(string $sortBy, string $sortDir = 'as
189189
return $this;
190190
}
191191

192-
193192
final protected function configureEntityMap(string $attribute, EntityListEntities $entities): self
194193
{
195194
$this->entityAttribute = $attribute;

src/Form/Layout/HasFieldRows.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ trait HasFieldRows
1414

1515
protected array $rows = [];
1616

17-
1817
public function withField(string $fieldKey): static
1918
{
2019
$this->addRowLayout([

src/Form/SharpForm.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ public function notify(string $title): SharpNotification
150150
return new SharpNotification($title);
151151
}
152152

153-
154153
/**
155154
* Retrieve a Model for the form and pack all its data as JSON.
156155
*/

src/Utils/Testing/SharpAssertions.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ public function sharpDashboard(string $entityClassNameOrKey): PendingDashboard
4646
return new PendingDashboard($this, $entityClassNameOrKey);
4747
}
4848

49-
5049
/**
5150
* @param (\Closure(BreadcrumbBuilder): BreadcrumbBuilder) $callback
5251
* @return $this

tests/Http/Auth/AuthorizationsTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
<?php
22

3-
use Code16\Sharp\Auth\SharpAuthenticationCheckHandler;
43
use Code16\Sharp\Auth\SharpEntityPolicy;
54
use Code16\Sharp\Http\Context\SharpBreadcrumb;
65
use Code16\Sharp\Tests\Fixtures\Entities\PersonEntity;
76
use Code16\Sharp\Tests\Fixtures\Entities\SinglePersonEntity;
87
use Code16\Sharp\Tests\Fixtures\User;
98
use Code16\Sharp\Tests\Unit\EntityList\Fakes\FakeSharpEntityList;
10-
use Code16\Sharp\Tests\Unit\Form\Fakes\FakeSharpForm;
119
use Code16\Sharp\Tests\Unit\Show\Fakes\FakeSharpSingleShow;
1210
use Code16\Sharp\Utils\Entities\SharpEntityManager;
1311
use Illuminate\Contracts\Support\Arrayable;

tests/Http/Context/SharpContextTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@
44
use Code16\Sharp\Filters\SelectFilter;
55
use Code16\Sharp\Tests\Fixtures\Entities\PersonEntity;
66
use Code16\Sharp\Tests\Fixtures\Entities\SinglePersonEntity;
7-
use Code16\Sharp\Tests\Fixtures\Sharp\PersonForm;
87
use Code16\Sharp\Tests\Fixtures\Sharp\PersonList;
98
use Code16\Sharp\Tests\Unit\Utils\FakesBreadcrumb;
10-
use Code16\Sharp\Utils\Entities\SharpEntity;
11-
use Code16\Sharp\Utils\Entities\SharpEntityManager;
129

1310
uses(FakesBreadcrumb::class);
1411

@@ -97,7 +94,6 @@
9794
->previousShowSegment(PersonEntity::class)->instanceId()->toEqual(42);
9895
});
9996

100-
10197
it('allows to check entity of a segment', function () {
10298
app(SharpConfigBuilder::class)->declareEntity(PersonEntity::class);
10399
app(SharpConfigBuilder::class)->declareEntity(SinglePersonEntity::class);

tests/Http/EntityListControllerTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Code16\Sharp\Tests\Fixtures\Sharp\PersonForm;
1515
use Code16\Sharp\Tests\Fixtures\Sharp\PersonList;
1616
use Code16\Sharp\Tests\Fixtures\Sharp\PersonShow;
17-
use Code16\Sharp\Utils\Entities\SharpEntityManager;
1817
use Code16\Sharp\Utils\Links\LinkToEntityList;
1918
use Code16\Sharp\Utils\PageAlerts\PageAlert;
2019
use Illuminate\Contracts\Support\Arrayable;
@@ -416,7 +415,6 @@ public function delete($user, $instanceId): bool
416415
);
417416
});
418417

419-
420418
it('get entities if configured', function () {
421419
$this->withoutExceptionHandling();
422420

tests/Unit/Console/GeneratorTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?php
22

3-
use Code16\Sharp\Config\SharpConfigBuilder;
43
use Code16\Sharp\Tests\Fixtures\UnitTestModel;
54
use Illuminate\Database\Schema\Blueprint;
65
use Illuminate\Support\Facades\File;

tests/Unit/Show/SharpShowTestDefault.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ public function buildShowLayout(ShowLayout $showLayout): void
150150
expect($sharpShow->showLayout()['sections'][0]['key'])->toEqual('my-section');
151151
});
152152

153-
154153
it('allows to set an edit button label', function () {
155154
$sharpShow = new class() extends FakeSharpShow
156155
{

0 commit comments

Comments
 (0)