Skip to content

Commit 4d2c78f

Browse files
committed
Fix php-cs fixer errors
1 parent e01f7c1 commit 4d2c78f

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

tests/php/Http/Controllers/Api/ImageAnnotationControllerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,14 +362,14 @@ public function testUpdateInvalidPoints()
362362
$this->annotation->shape_id = Shape::rectangleId();
363363
$this->annotation->save();
364364

365-
$response = $this->json('PUT',"api/v1/image-annotations/{$this->annotation->id}", ['points' => [844.69, 1028.44, 844.69, 1028.44, 844.69, 1028.44, 844.69, 1028.44]]);
365+
$response = $this->json('PUT', "api/v1/image-annotations/{$this->annotation->id}", ['points' => [844.69, 1028.44, 844.69, 1028.44, 844.69, 1028.44, 844.69, 1028.44]]);
366366
$response->assertStatus(422);
367367

368368
$this->annotation->points = [0, 1, 2, 3, 4, 5, 6, 7];
369369
$this->annotation->shape_id = Shape::lineId();
370370
$this->annotation->save();
371371

372-
$response = $this->json('PUT',"api/v1/image-annotations/{$this->annotation->id}", ['points' => [844.69, 1028.44, 844.69, 1028.44, 844.69, 1028.44, 844.69, 1028.44]]);
372+
$response = $this->json('PUT', "api/v1/image-annotations/{$this->annotation->id}", ['points' => [844.69, 1028.44, 844.69, 1028.44, 844.69, 1028.44, 844.69, 1028.44]]);
373373
$response->assertStatus(422);
374374
}
375375

tests/php/Http/Controllers/Api/VideoAnnotationControllerTest.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ public function testStore()
263263
'points' => [[844.69, 1028.44, 844.69, 1028.44, 844.69, 1028.44, 844.69, 1028.44]],
264264
])->assertStatus(422);
265265

266-
// shape is invalid
266+
// shape is invalid
267267
$this
268268
->json('POST', "/api/v1/videos/{$this->video->id}/annotations", [
269269
'shape_id' => Shape::lineId(),
@@ -715,25 +715,26 @@ public function testUpdateValidatePoints()
715715
->assertStatus(422);
716716
}
717717

718-
public function testUpdateInvalidPoints(){
718+
public function testUpdateInvalidPoints()
719+
{
719720
$annotation = VideoAnnotationTest::create([
720721
'shape_id' => Shape::rectangleId(),
721722
'video_id' => $this->video->id,
722723
'frames' => [0],
723-
'points' => [[0,1,2,3,4,5,6,7]],
724+
'points' => [[0, 1, 2, 3, 4, 5, 6, 7]],
724725
]);
725726

726727
$this->beAdmin();
727728

728729
$this->putJson("api/v1/video-annotations/{$annotation->id}", ['points' => [[844.69, 1028.44, 844.69, 1028.44, 844.69, 1028.44, 844.69, 1028.44]]])
729-
->assertStatus(422);
730+
->assertStatus(422);
730731

731-
$annotation->points = [[0,1,2,3,4,5,6,7]];
732+
$annotation->points = [[0, 1, 2, 3, 4, 5, 6, 7]];
732733
$annotation->shape_id = Shape::lineId();
733734
$annotation->save();
734735

735736
$this->putJson("api/v1/video-annotations/{$annotation->id}", ['points' => [[844.69, 1028.44, 844.69, 1028.44, 844.69, 1028.44, 844.69, 1028.44]]])
736-
->assertStatus(422);
737+
->assertStatus(422);
737738

738739
}
739740

tests/php/ImageAnnotationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public function testValidatePointsLine()
119119
public function testValidatePointsPolygon()
120120
{
121121
$this->model->shape_id = Shape::polygonId();
122-
$this->model->validatePoints([10, 10, 20, 20, 30, 30, 10 ,10]);
122+
$this->model->validatePoints([10, 10, 20, 20, 30, 30, 10, 10]);
123123
$this->expectException(Exception::class);
124124
$this->model->validatePoints([10, 10]);
125125
}

0 commit comments

Comments
 (0)