Skip to content

Commit b0e489b

Browse files
committed
Indenting PSR-12.
1 parent f7eb875 commit b0e489b

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

src/Training/Easy/Defibrillators/Defibrillators.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ public function execute($stdin): void
1515
fscanf($stdin, "%s", $LON);
1616
fscanf($stdin, "%s", $LAT);
1717
fscanf($stdin, "%d", $N);
18-
for ($i = 0; $i < $N; $i++)
19-
{
18+
for ($i = 0; $i < $N; $i++) {
2019
$DEFIB = stream_get_line($stdin, 256 + 1, "\n");
2120
}
2221

src/Training/Easy/MIMEType/MIMEType.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,12 @@ public function execute($stdin): void
1616
fscanf($stdin, "%d", $N);
1717
// $Q: Number Q of file names to be analyzed.
1818
fscanf($stdin, "%d", $Q);
19-
for ($i = 0; $i < $N; $i++)
20-
{
19+
for ($i = 0; $i < $N; $i++) {
2120
// $EXT: file extension
2221
// $MT: MIME type.
2322
fscanf($stdin, "%s %s", $EXT, $MT);
2423
}
25-
for ($i = 0; $i < $Q; $i++)
26-
{
24+
for ($i = 0; $i < $Q; $i++) {
2725
$FNAME = stream_get_line($stdin, 256 + 1, "\n");// One file name per line.
2826
}
2927

src/Training/Easy/Temperatures/Temperatures.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ public function execute($stdin): void
1515
// $n: the number of temperatures to analyse
1616
fscanf($stdin, "%d", $n);
1717
$inputs = explode(" ", fgets($stdin));
18-
for ($i = 0; $i < $n; $i++)
19-
{
18+
for ($i = 0; $i < $n; $i++) {
2019
$t = intval($inputs[$i]); // a temperature expressed as an integer ranging from -273 to 5526
2120
}
2221

0 commit comments

Comments
 (0)