Skip to content

Commit 9de18f3

Browse files
committed
Fixed more linting issues
1 parent 6623942 commit 9de18f3

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

vision/src/detect_crop_hints.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,12 @@ function detect_crop_hints($projectId, $path)
3939
$boundingPoly = $hint->boundingPoly();
4040
$vertices = $boundingPoly['vertices'];
4141
foreach ((array) $vertices as $vertice) {
42-
if (!isset($vertice['x'])) $vertice['x'] = 0;
43-
if (!isset($vertice['y'])) $vertice['y'] = 0;
42+
if (!isset($vertice['x'])) {
43+
$vertice['x'] = 0;
44+
}
45+
if (!isset($vertice['y'])) {
46+
$vertice['y'] = 0;
47+
}
4448
printf('X: %s Y: %s' . PHP_EOL, $vertice['x'], $vertice['y']);
4549
}
4650
}

vision/src/detect_crop_hints_gcs.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,12 @@ function detect_crop_hints_gcs($projectId, $bucketName, $objectName)
4545
$boundingPoly = $hint->boundingPoly();
4646
$vertices = $boundingPoly['vertices'];
4747
foreach ((array) $vertices as $vertice) {
48-
if (!isset($vertice['x'])) $vertice['x'] = 0;
49-
if (!isset($vertice['y'])) $vertice['y'] = 0;
48+
if (!isset($vertice['x'])) {
49+
$vertice['x'] = 0;
50+
}
51+
if (!isset($vertice['y'])) {
52+
$vertice['y'] = 0;
53+
}
5054
printf('X: %s Y: %s' . PHP_EOL, $vertice['x'], $vertice['y']);
5155
}
5256
}

vision/test/CommandTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,5 +303,4 @@ private function runCommand($commandName, $path, $output=null)
303303
);
304304
return ob_get_clean();
305305
}
306-
307306
}

0 commit comments

Comments
 (0)