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