@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | $sentences, |
214 | 214 | $checksentence |
215 | 215 | ); |
216 | - $htmlcode = $this->convertToHtml($file->getFilename(), $sentences); |
|
216 | + $htmlcode = $this->convertToHtml($file->getFilename(), $sentences); |
|
217 | 217 | |
218 | 218 | $checkerfile = sys_get_temp_dir() . "/" . uniqid("spellcheck") . ".html"; |
219 | 219 | file_put_contents($checkerfile, $htmlcode); |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | $sentences, |
262 | 262 | $checksentence |
263 | 263 | ); |
264 | - $htmlcode = $this->convertToHtml($title, $sentences); |
|
264 | + $htmlcode = $this->convertToHtml($title, $sentences); |
|
265 | 265 | |
266 | 266 | $checkerfile = sys_get_temp_dir() . "/" . uniqid("spellcheck") . ".html"; |
267 | 267 | file_put_contents($checkerfile, $htmlcode); |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | $url = "http://localhost:{$this->languageToolServerPort}"; |
289 | 289 | $sentencesChecked = []; |
290 | 290 | foreach ($sentences as $sentence) { |
291 | - $response = $this->languagetoolClientHttp->get( |
|
291 | + $response = $this->languagetoolClientHttp->get( |
|
292 | 292 | $url, |
293 | 293 | [ |
294 | 294 | 'query' => [ |
@@ -304,8 +304,8 @@ discard block |
||
304 | 304 | if (count($errors) > 0) { |
305 | 305 | foreach ($errors as $error) { |
306 | 306 | $msg = $error->getAttribute('msg'); |
307 | - $offset = (int)$error->getAttribute('offset'); |
|
308 | - $length = (int)$error->getAttribute('errorlength'); |
|
307 | + $offset = (int) $error->getAttribute('offset'); |
|
308 | + $length = (int) $error->getAttribute('errorlength'); |
|
309 | 309 | $suggs = []; |
310 | 310 | $word = null; |
311 | 311 | if ($error->getAttribute('locqualityissuetype') == 'misspelling') { |
@@ -74,7 +74,7 @@ |
||
74 | 74 | |
75 | 75 | if (isset($mergeerror->suggs)) { |
76 | 76 | if (isset($this->suggs)) { |
77 | - $this->suggs = array_merge($this->suggs,$mergeerror->suggs); |
|
77 | + $this->suggs = array_merge($this->suggs, $mergeerror->suggs); |
|
78 | 78 | } else { |
79 | 79 | $this->suggs = $mergeerror->suggs; |
80 | 80 | } |
@@ -103,7 +103,7 @@ |
||
103 | 103 | private function sortedErrorsByOffset() { |
104 | 104 | usort( |
105 | 105 | $this->errors, |
106 | - function (GlSpellCheckerError $a, GlSpellCheckerError $b) { |
|
106 | + function(GlSpellCheckerError $a, GlSpellCheckerError $b) { |
|
107 | 107 | if ($a->getOffset() == $b->getOffset()) { |
108 | 108 | return 0; |
109 | 109 | } |