Skip to content
This repository was archived by the owner on Feb 14, 2023. It is now read-only.

Commit a5c57ba

Browse files
committed
Apply fixes from StyleCI
1 parent e24d6e0 commit a5c57ba

File tree

3 files changed

+16
-14
lines changed

3 files changed

+16
-14
lines changed

src/Testing/Concerns/HasRelationships.php

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,12 @@ public function hasNotRelationshipWith(Model $model, $withIncluded = false)
147147

148148
/**
149149
* Filter array of resources by a provided identifier.
150-
*
151-
* @param array $resources
152-
* @param string $type
153-
* @param mixed $id
154-
* @return array
150+
*
151+
* @param array $resources
152+
* @param string $type
153+
* @param mixed $id
154+
*
155+
* @return array
155156
*/
156157
protected function filterResources(array $resources, string $type, $id = null)
157158
{
@@ -162,15 +163,16 @@ protected function filterResources(array $resources, string $type, $id = null)
162163

163164
/**
164165
* Filter provided resource with given identifier.
165-
*
166-
* @param array $resource
167-
* @param string $type
168-
* @param mixed $id
169-
* @return bool
166+
*
167+
* @param array $resource
168+
* @param string $type
169+
* @param mixed $id
170+
*
171+
* @return bool
170172
*/
171173
protected function filterResourceWithIdentifier(array $resource, string $type, $id = null)
172174
{
173-
if (is_array($resource) && ! isset($resource['type'])) {
175+
if (is_array($resource) && !isset($resource['type'])) {
174176
return count($this->filterResources($resource, $type, $id)) > 0;
175177
}
176178

tests/JsonApiRelationshipsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function testCollectionHasAnyClientAuthorRelationship()
8181
$jsonApi->at(0)->hasNotRelationshipWith($this->lonelyPost, true);
8282
});
8383
}
84-
84+
8585
/**
8686
* @group requiresDatabase
8787
*/
@@ -122,7 +122,7 @@ public function testResourceHasTagsRelationships()
122122
'password' => '1234',
123123
])->id
124124
);
125-
125+
126126
$this->authoredPost->save();
127127

128128
return JsonApi::format($this->authoredPost->refresh()->loadMissing('author', 'tags'));

tests/database/migrations/0000_00_00_000002_create_tags_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function up()
1919
$table->string('slug')->unique();
2020
$table->timestamps();
2121
});
22-
22+
2323
Schema::create('post_tag', static function (Blueprint $table) {
2424
$table->bigInteger('id')->primary();
2525
$table->unsignedBigInteger('post_id')->nullable();

0 commit comments

Comments
 (0)