Completed
Pull Request — master (#256)
by
unknown
02:31
created
src/Knp/Snappy/AbstractGenerator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
      */
338 338
     protected function checkProcessStatus($status, $stdout, $stderr, $command)
339 339
     {
340
-        if  (0 === $status || '' === $stderr){
340
+        if (0 === $status || '' === $stderr) {
341 341
             return;
342 342
         }
343 343
         if ($this->isIgnoreContentNotFound() && 1 === $status && preg_match('/contentnotfound/i', $stderr)) {
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
             throw new \RuntimeException(sprintf("Unable to write in directory: %s\n", $dir));
374 374
         }
375 375
 
376
-        $filename = $dir . DIRECTORY_SEPARATOR . uniqid('knp_snappy', true);
376
+        $filename = $dir.DIRECTORY_SEPARATOR.uniqid('knp_snappy', true);
377 377
 
378 378
         if (null !== $extension) {
379 379
             $filename .= '.'.$extension;
@@ -443,7 +443,7 @@  discard block
 block discarded – undo
443 443
                     if (in_array($key, ['toc', 'cover'])) {
444 444
                         $command .= ' '.$key.' '.escapeshellarg($option);
445 445
                     } elseif (in_array($key, ['image-dpi', 'image-quality'])) {
446
-                        $command .= ' --'.$key.' '. (int) $option;
446
+                        $command .= ' --'.$key.' '.(int)$option;
447 447
                     } else {
448 448
                         $command .= ' --'.$key.' '.escapeshellarg($option);
449 449
                     }
@@ -473,7 +473,7 @@  discard block
 block discarded – undo
473 473
      */
474 474
     protected function isAssociativeArray(array $array)
475 475
     {
476
-        return (bool) count(array_filter(array_keys($array), 'is_string'));
476
+        return (bool)count(array_filter(array_keys($array), 'is_string'));
477 477
     }
478 478
 
479 479
     /**
Please login to merge, or discard this patch.