Skip to content

Commit 34d05d9

Browse files
binarykgithub-actions[bot]
authored andcommitted
Fix styling
1 parent 85c0a5a commit 34d05d9

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

config/restify.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595

9696
'middleware' => [
9797
'api',
98-
//'auth:sanctum',
98+
// 'auth:sanctum',
9999
DispatchRestifyStartingEvent::class,
100100
AuthorizeRestify::class,
101101
],

src/Filters/HasMode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function getLikeOperator(): string
4444
return '=';
4545
}
4646

47-
return 'LIKE'; //TODO: ilike support
47+
return 'LIKE'; // TODO: ilike support
4848
}
4949

5050
public function getLikeValue(string $value): string

src/Generators/DatabaseGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function string(string $column): string
6767
public function integer(Column $columnDefinition, $column): ?int
6868
{
6969
if ($columnDefinition->getAutoincrement() === true) {
70-
//primary key
70+
// primary key
7171
return null;
7272
}
7373

src/Http/Controllers/RestResponse.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ public function respond($response = null): JsonResponse
261261
}
262262
}
263263

264-
//according with https://jsonapi.org/format/#document-top-level these fields should be in data:
264+
// according with https://jsonapi.org/format/#document-top-level these fields should be in data:
265265
foreach (['attributes', 'relationships', 'type', 'id'] as $item) {
266266
if (isset($this->{$item})) {
267267
$response->data->{$item} = $this->{$item};
@@ -414,7 +414,7 @@ public function forRepository(Repository $repository, $withRelations = false): s
414414

415415
public static function beforeRespond($response)
416416
{
417-
//The members data and errors MUST NOT coexist in the same document. - https://jsonapi.org/format/#introduction
417+
// The members data and errors MUST NOT coexist in the same document. - https://jsonapi.org/format/#introduction
418418
if (isset($response->errors)) {
419419
unset($response->data);
420420

src/Http/Requests/Concerns/InteractWithRepositories.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function isViaRepository(): bool
110110
$parentRepository = $this->route('parentRepository');
111111
$parentRepositoryId = $this->route('parentRepositoryId');
112112

113-
//TODO: Find another implementation for prefixes:
113+
// TODO: Find another implementation for prefixes:
114114
$matchSomePrefixes = collect(Restify::$repositories)->some(fn (
115115
$repository
116116
) => $repository::prefix() === "$parentRepository/$parentRepositoryId");

tests/Fields/HasManyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ public function test_it_validates_fields_when_storing_related(): void
320320
{
321321
$userId = $this->mockUsers()->first()->id;
322322
$this->postJson(UserWithPosts::route("/{$userId}/posts"), [
323-
/*'title' => 'Wew',*/
323+
/* 'title' => 'Wew', */
324324
])->assertStatus(422);
325325
}
326326
}

0 commit comments

Comments
 (0)