Completed
Push — master ( 8941f1...3ba15a )
by Albin
11s
created
src/Knp/Snappy/AbstractGenerator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
             throw new \RuntimeException(sprintf("Unable to write in directory: %s\n", $dir));
365 365
         }
366 366
 
367
-        $filename = $dir . DIRECTORY_SEPARATOR . uniqid('knp_snappy', true);
367
+        $filename = $dir.DIRECTORY_SEPARATOR.uniqid('knp_snappy', true);
368 368
 
369 369
         if (null !== $extension) {
370 370
             $filename .= '.'.$extension;
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
                     if (in_array($key, array('toc', 'cover'))) {
435 435
                         $command .= ' '.$key.' '.escapeshellarg($option);
436 436
                     } elseif (in_array($key, ['image-dpi', 'image-quality'])) {
437
-                        $command .= ' --'.$key.' '. (int) $option;
437
+                        $command .= ' --'.$key.' '.(int)$option;
438 438
                     } else {
439 439
                         $command .= ' --'.$key.' '.escapeshellarg($option);
440 440
                     }
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
      */
465 465
     protected function isAssociativeArray(array $array)
466 466
     {
467
-        return (bool) count(array_filter(array_keys($array), 'is_string'));
467
+        return (bool)count(array_filter(array_keys($array), 'is_string'));
468 468
     }
469 469
 
470 470
     /**
Please login to merge, or discard this patch.