Skip to content

Commit 25213e5

Browse files
authored
Apply fixes from StyleCI (#190)
1 parent 65e0435 commit 25213e5

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

routes/api.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
// Global Search...
1818
Route::get('/search', '\\'.GlobalSearchController::class);
1919

20-
Route::get('/profile', '\\' . ProfileController::class);
21-
Route::put('/profile', '\\' . ProfileUpdateController::class);
22-
Route::post('/profile/avatar', '\\' . ProfileAvatarController::class);
20+
Route::get('/profile', '\\'.ProfileController::class);
21+
Route::put('/profile', '\\'.ProfileUpdateController::class);
22+
Route::post('/profile/avatar', '\\'.ProfileAvatarController::class);
2323

2424
// Filters
2525
Route::get('/{repository}/filters', '\\'.RepositoryFilterController::class);

src/Http/Requests/ProfileAvatarRequest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,4 @@ public static function usingPath(callable $pathCallback)
2525
{
2626
static::$pathCallback = $pathCallback;
2727
}
28-
2928
}

tests/Controllers/ProfileControllerTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use Binaryk\LaravelRestify\Tests\Fixtures\User\User;
66
use Binaryk\LaravelRestify\Tests\IntegrationTest;
77
use Illuminate\Http\UploadedFile;
8-
use Illuminate\Support\Facades\Storage;
98

109
class ProfileControllerTest extends IntegrationTest
1110
{
@@ -24,7 +23,7 @@ public function test_profile_returns_authenticated_user()
2423
$response = $this->getJson('/restify-api/profile')
2524
->assertStatus(200)
2625
->assertJsonStructure([
27-
'data'
26+
'data',
2827
]);
2928

3029
$response->assertJsonFragment([
@@ -63,7 +62,7 @@ public function test_profile_upload_avatar()
6362
$file = UploadedFile::fake()->image($this->getTestJpg())->size(100);
6463

6564
$this->postJson('restify-api/profile/avatar', [
66-
'avatar' => $file
65+
'avatar' => $file,
6766
])
6867
->assertStatus(200);
6968
}

tests/Fixtures/User/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class User extends Authenticatable implements Sanctumable, MustVerifyEmail, Rest
3636
* @var array
3737
*/
3838
protected $fillable = [
39-
'name', 'email', 'password', 'email_verified_at', 'avatar'
39+
'name', 'email', 'password', 'email_verified_at', 'avatar',
4040
];
4141

4242
/**

0 commit comments

Comments
 (0)