Passed
Pull Request — master (#103)
by Marco
05:16 queued 02:38
created
src/Git/GitCheckoutRevisionToTemporaryPath.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
     private function generateTemporaryPathFor(Revision $revision) : string
52 52
     {
53 53
         $uniquePathGenerator = $this->uniquenessFunction;
54
-        $checkoutDirectory   = sys_get_temp_dir() . '/api-compare-' . $uniquePathGenerator($revision . '_');
54
+        $checkoutDirectory   = sys_get_temp_dir().'/api-compare-'.$uniquePathGenerator($revision.'_');
55 55
 
56 56
         if (file_exists($checkoutDirectory)) {
57 57
             throw new RuntimeException(sprintf(
Please login to merge, or discard this patch.
src/Formatter/MarkdownPipedToSymfonyConsoleFormatter.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,21 +30,21 @@  discard block
 block discarded – undo
30 30
         $this->output->writeln(
31 31
             "# Added\n"
32 32
             . implode('', $this->convertFilteredChangesToMarkdownBulletList(
33
-                function (Change $change) : bool {
33
+                function(Change $change) : bool {
34 34
                     return $change->isAdded();
35 35
                 },
36 36
                 ...$arrayOfChanges
37 37
             ))
38 38
             . "\n# Changed\n"
39 39
             . implode('', $this->convertFilteredChangesToMarkdownBulletList(
40
-                function (Change $change) : bool {
40
+                function(Change $change) : bool {
41 41
                     return $change->isChanged();
42 42
                 },
43 43
                 ...$arrayOfChanges
44 44
             ))
45 45
             . "\n# Removed\n"
46 46
             . implode('', $this->convertFilteredChangesToMarkdownBulletList(
47
-                function (Change $change) : bool {
47
+                function(Change $change) : bool {
48 48
                     return $change->isRemoved();
49 49
                 },
50 50
                 ...$arrayOfChanges
@@ -56,8 +56,8 @@  discard block
 block discarded – undo
56 56
     private function convertFilteredChangesToMarkdownBulletList(callable $filterFunction, Change ...$changes) : array
57 57
     {
58 58
         return array_map(
59
-            function (Change $change) : string {
60
-                return ' - ' . str_replace(['ADDED: ', 'CHANGED: ', 'REMOVED: '], '', trim($change->__toString())) . "\n";
59
+            function(Change $change) : string {
60
+                return ' - '.str_replace(['ADDED: ', 'CHANGED: ', 'REMOVED: '], '', trim($change->__toString()))."\n";
61 61
             },
62 62
             array_filter($changes, $filterFunction)
63 63
         );
Please login to merge, or discard this patch.