@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | |
21 | 21 | public function __construct(?callable $uniquenessFunction = null) |
22 | 22 | { |
23 | - $this->uniquenessFunction = $uniquenessFunction ?? function (string $nonUniqueThing) : string { |
|
23 | + $this->uniquenessFunction = $uniquenessFunction ?? function(string $nonUniqueThing) : string { |
|
24 | 24 | return uniqid($nonUniqueThing, true); |
25 | 25 | }; |
26 | 26 | } |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | private function generateTemporaryPathFor(Revision $revision) : string |
55 | 55 | { |
56 | 56 | $uniquePathGenerator = $this->uniquenessFunction; |
57 | - $checkoutDirectory = sys_get_temp_dir() . '/api-compare-' . $uniquePathGenerator((string) $revision . '_'); |
|
57 | + $checkoutDirectory = sys_get_temp_dir().'/api-compare-'.$uniquePathGenerator((string) $revision.'_'); |
|
58 | 58 | |
59 | 59 | if (file_exists($checkoutDirectory) || is_dir($checkoutDirectory)) { |
60 | 60 | throw new RuntimeException(sprintf( |