Apply fixes from StyleCI (#19)

This commit is contained in:
Pig Fang 2019-03-15 00:09:39 +08:00 committed by GitHub
parent d93a5410d9
commit f3bdc551cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -272,7 +272,7 @@ class SkinlibControllerTest extends TestCase
]) ])
->decodeResponseJson('items'); ->decodeResponseJson('items');
$this->assertTrue(collect($items)->every(function ($item) { $this->assertTrue(collect($items)->every(function ($item) {
return !$item['liked']; return ! $item['liked'];
})); }));
// A user has added a texture from skin library to his closet // A user has added a texture from skin library to his closet
@ -281,7 +281,7 @@ class SkinlibControllerTest extends TestCase
$this->getJson('/skinlib/data') $this->getJson('/skinlib/data')
->assertJson([ ->assertJson([
'items' => [ 'items' => [
['tid' => $texture->tid, 'liked' => true] ['tid' => $texture->tid, 'liked' => true],
], ],
'current_uid' => $otherUser->uid, 'current_uid' => $otherUser->uid,
'total_pages' => 2, 'total_pages' => 2,