Passed
Push — main ( f4e9d2...4a4379 )
by Jesse
01:41
created
sample/puzzle.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,8 +41,7 @@  discard block
 block discarded – undo
41 41
         isset($puzzle['heuristic']) ? new $puzzle['heuristic']() : null
42 42
     );
43 43
     $renderer = ($puzzle['display'] ?? 'states') === 'states' ?
44
-        PuzzleStatesToFileRenderer::fromFilenameAndSeparator(OUT, $sep, $time) :
45
-        MovesToFileRenderer::fromFilenameAndSeparator(OUT, $sep, $time);
44
+        PuzzleStatesToFileRenderer::fromFilenameAndSeparator(OUT, $sep, $time) : MovesToFileRenderer::fromFilenameAndSeparator(OUT, $sep, $time);
46 45
 
47 46
     $puzzleInfo[$puzzle['name']] = [];
48 47
     foreach (scandir($dir) as $file) {
@@ -54,7 +53,7 @@  discard block
 block discarded – undo
54 53
             'factory' => $factories[$puzzle['type']],
55 54
             'description' => $description,
56 55
             'renderer' => $renderer,
57
-            'isDefault' => (($puzzle['default'] ?? '') . '.txt') ===  $file,
56
+            'isDefault' => (($puzzle['default'] ?? '') . '.txt') === $file,
58 57
             'isTheOnlyOne' => (bool) ($puzzle['level'] ?? false),
59 58
         ];
60 59
     }
Please login to merge, or discard this patch.