@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | throw new FileNotFound("could not find pdf {$source}"); |
46 | 46 | } |
47 | 47 | |
48 | - $this->target = pathinfo($this->source, PATHINFO_DIRNAME).'/'.pathinfo($this->source, PATHINFO_FILENAME);; |
|
48 | + $this->target = pathinfo($this->source, PATHINFO_DIRNAME).'/'.pathinfo($this->source, PATHINFO_FILENAME); ; |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | public static function create(string $source = null, string $target = null, string $executable = null) |
@@ -73,19 +73,19 @@ discard block |
||
73 | 73 | |
74 | 74 | public function scaleTo(int $scaleTo) |
75 | 75 | { |
76 | - $this->options['scale-to'] = '-scale-to '. (string) $scaleTo; |
|
76 | + $this->options['scale-to'] = '-scale-to '.(string) $scaleTo; |
|
77 | 77 | return $this; |
78 | 78 | } |
79 | 79 | |
80 | 80 | public function firstPage(int $firstPage) |
81 | 81 | { |
82 | - $this->options['firstPage'] = '-f '. (string) $firstPage; |
|
82 | + $this->options['firstPage'] = '-f '.(string) $firstPage; |
|
83 | 83 | return $this; |
84 | 84 | } |
85 | 85 | |
86 | 86 | public function lastPage(int $lastPage) |
87 | 87 | { |
88 | - $this->options['lastPage'] = '-l '. (string) $lastPage; |
|
88 | + $this->options['lastPage'] = '-l '.(string) $lastPage; |
|
89 | 89 | return $this; |
90 | 90 | } |
91 | 91 | |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | throw new FileFormatNotAllowed("fileformat not allowed {$format}"); |
109 | 109 | } |
110 | 110 | |
111 | - $this->options['format'] = '-' . $format; |
|
111 | + $this->options['format'] = '-'.$format; |
|
112 | 112 | |
113 | 113 | if ($format == 'jpeg') { |
114 | 114 | $this->extension('jpg'); |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | |
138 | 138 | public function setOptions(string $options) |
139 | 139 | { |
140 | - $this->options = [ $options ]; |
|
140 | + $this->options = [$options]; |
|
141 | 141 | return $this; |
142 | 142 | } |
143 | 143 |