@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | sort($data); |
115 | 115 | |
116 | 116 | $ranges = [ |
117 | - [ $data[0] ] |
|
117 | + [$data[0]] |
|
118 | 118 | ]; |
119 | 119 | $rangesIndex = 0; |
120 | 120 | $lastRangeIndex = 0; |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | $bytesPattern = ''; |
157 | 157 | |
158 | 158 | foreach ($bytes as $byte) { |
159 | - $bytesPattern .= '\x{' . $byte .'}'; |
|
159 | + $bytesPattern .= '\x{' . $byte . '}'; |
|
160 | 160 | } |
161 | 161 | |
162 | 162 | $patternString .= '|' . $bytesPattern; |
@@ -204,9 +204,9 @@ discard block |
||
204 | 204 | $output = $this->config->get('storage.output.ranges'); |
205 | 205 | $fileTitle = $this->config->get('storage.output.rangesFileTitle', 'Undefined Title'); |
206 | 206 | |
207 | - $content = '\''. $this->_pattern .'\''; |
|
207 | + $content = '\'' . $this->_pattern . '\''; |
|
208 | 208 | |
209 | - return File::toText($base.$output, $fileTitle, $content); |
|
209 | + return File::toText($base . $output, $fileTitle, $content); |
|
210 | 210 | } |
211 | 211 | |
212 | 212 | /** |
@@ -219,11 +219,11 @@ discard block |
||
219 | 219 | { |
220 | 220 | $file = new File($this->config); |
221 | 221 | |
222 | - $pattern = '('. $this->_pattern .').*\n'; |
|
222 | + $pattern = '(' . $this->_pattern . ').*\n'; |
|
223 | 223 | $count = 0; |
224 | 224 | |
225 | - $file->replaceContent(function ($content) use ($pattern, $replacement, &$count) { |
|
226 | - $newContent = preg_replace('/' . $pattern . '/mu', $replacement."\n", $content, -1, $count); |
|
225 | + $file->replaceContent(function($content) use ($pattern, $replacement, &$count) { |
|
226 | + $newContent = preg_replace('/' . $pattern . '/mu', $replacement . "\n", $content, -1, $count); |
|
227 | 227 | return iconv(mb_detect_encoding($newContent), 'UTF-16', $newContent); |
228 | 228 | }); |
229 | 229 | |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | $fileTitle = $this->config->get('storage.output.testFileTitle', 'Undefined Title'); |
232 | 232 | $output = $this->config->get('storage.output.test'); |
233 | 233 | |
234 | - $export = File::toText($base.$output, $fileTitle, $file->content); |
|
234 | + $export = File::toText($base . $output, $fileTitle, $file->content); |
|
235 | 235 | |
236 | 236 | if (!is_array($export)) { |
237 | 237 | return false; |
@@ -103,6 +103,6 @@ |
||
103 | 103 | $base = $this->config->get('storage.base'); |
104 | 104 | $output = $this->config->get('storage.output.json'); |
105 | 105 | $fileTitle = $this->config->get('storage.output.jsonFileTitle', 'Undefined Title'); |
106 | - return File::toJSON($base.$output, $fileTitle, $this->_unicodes); |
|
106 | + return File::toJSON($base . $output, $fileTitle, $this->_unicodes); |
|
107 | 107 | } |
108 | 108 | } |