Skip to content

Commit 8c03ad6

Browse files
committed
Fix code standard
1 parent 4e43d56 commit 8c03ad6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Framework/Dumper.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ public static function dumpException($e)
311311
return $s;
312312
}
313313

314+
314315
/**
315316
* @param AssertException $assertException
316317
* @param string $testFile
@@ -337,7 +338,7 @@ public static function storeAssertDiff(AssertException $assertException, $testFi
337338
for ($i = 0; $i < strlen($actual) && isset($expected[$i]) && $actual[$i] === $expected[$i]; $i++) ;
338339
for (; $i && $i < strlen($actual) && $actual[$i - 1] >= "\x80" && $actual[$i] >= "\x80" && $actual[$i] < "\xC0"; $i--) ;
339340
$i = max(0, min(
340-
$i - (int)(self::$maxLength / 3), // try to display 1/3 of shorter string
341+
$i - (int) (self::$maxLength / 3), // try to display 1/3 of shorter string
341342
max(strlen($actual), strlen($expected)) - self::$maxLength + 3 // 3 = length of ...
342343
));
343344
if ($i) {
@@ -352,8 +353,7 @@ public static function storeAssertDiff(AssertException $assertException, $testFi
352353
) {
353354
if (($delta = strlen($m[1]) - strlen($m[3])) >= 3) {
354355
$message = "$m[1]$m[2]\n" . str_repeat(' ', $delta - 3) . "...$m[3]$m[4]";
355-
}
356-
else {
356+
} else {
357357
$message = "$m[1]$m[2]$m[3]\n" . str_repeat(' ', strlen($m[1]) - 4) . "... $m[4]";
358358
}
359359
}
@@ -364,6 +364,7 @@ public static function storeAssertDiff(AssertException $assertException, $testFi
364364
]);
365365
}
366366

367+
367368
/**
368369
* Dumps data to folder 'output'.
369370
* @return string

src/Runner/OutputHandler.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
namespace Tester\Runner;
99

10-
use Tester;
1110

1211

1312
/**

0 commit comments

Comments
 (0)