@@ -337,7 +337,7 @@ discard block  | 
                                                    ||
| 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->ignoreContentNotFound && 1 == $status && preg_match('/contentnotfound/i', $stderr)) { | 
                                                        
@@ -373,7 +373,7 @@ discard block  | 
                                                    ||
| 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  | 
                                                    ||
| 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  | 
                                                    ||
| 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 | /**  |