8000 [Cleanup] Reformat code · josh-taylor/laravel-json-api@7f95078 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7f95078

Browse files
committed
[Cleanup] Reformat code
1 parent 439f0fb commit 7f95078

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/Http/Controllers/EloquentController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function read($resourceId)
133133
public function update($resourceId)
134134
{
135135
$model = $this->hydrate($this->getResource(), $this->getRecord());
136-
$result = ($model instanceof Response ) ? $model : $this->doCommit($model);
136+
$result = ($model instanceof Response) ? $model : $this->doCommit($model);
137137

138138
if ($result instanceof Response) {
139139
return $result;

src/Schema/EloquentSchema.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ protected function getModelAttributes(Model $model)
166166

167167
/**
168168
* Convert a model key into a resource attribute key.
169-
*
169+
*
170170
* @param $modelKey
171171
* @return string
172172
*/

src/Testing/MakesJsonApiRequests.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ protected function seeDataCollection($resourceType, $allowEmpty = true)
259259

260260
if (!$allowEmpty) {
261261
PHPUnit::assertNotEmpty($collection, 'Data collection is empty');
262-
} elseif (empty($collection)){
262+
} elseif (empty($collection)) {
263263
return $this;
264264
}
265265

test/Routing/ResourceRegistrarTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ private function willSee(
9999
}
100100

101101
$this->mock
102-
->expects($this->at($this->index))
103-
->method(strtolower($httpMethod))
104-
->with($uri, $options);
102+
->expects($this->at($this->index))
103+
->method(strtolower($httpMethod))
104+
->with($uri, $options);
105105

106106
$this->index++;
107107
}

0 commit comments

Comments
 (0)
0