Completed
Push — master ( 7cff6d...6aeed9 )
by Emmanuel
02:48
created
src/GlSpellChecker.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -210,8 +210,8 @@  discard block
 block discarded – undo
210 210
             }
211 211
             $checkfilestart($file, count($sentences));
212 212
             $sentences = $this->checkSentences(
213
-                              $sentences,
214
-                                  $checksentence
213
+                                $sentences,
214
+                                    $checksentence
215 215
             );
216 216
             $htmlcode  = $this->convertToHtml($file->getFilename(), $sentences);
217 217
 
@@ -258,8 +258,8 @@  discard block
 block discarded – undo
258 258
             $sentences = $html->getSentences();
259 259
             $checkfilestart($file, count($sentences));
260 260
             $sentences = $this->checkSentences(
261
-                              $sentences,
262
-                                  $checksentence
261
+                                $sentences,
262
+                                    $checksentence
263 263
             );
264 264
             $htmlcode  = $this->convertToHtml($title, $sentences);
265 265
 
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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') {
Please login to merge, or discard this patch.
src/GlSpellCheckerError.php 2 patches
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,21 +1,21 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Main Class
4
- *
5
- * PHP version 5.4
6
- *
7
- * @category  GLICER
8
- * @package   GlSpellChecker
9
- * @author    Emmanuel ROECKER
10
- * @author    Rym BOUCHAGOUR
11
- * @copyright 2015 GLICER
12
- * @license   MIT
13
- * @link      http://dev.glicer.com/
14
- *
15
- * Created : 04/05/15
16
- * File : GlSpellCheckerError.php
17
- *
18
- */
3
+     * Main Class
4
+     *
5
+     * PHP version 5.4
6
+     *
7
+     * @category  GLICER
8
+     * @package   GlSpellChecker
9
+     * @author    Emmanuel ROECKER
10
+     * @author    Rym BOUCHAGOUR
11
+     * @copyright 2015 GLICER
12
+     * @license   MIT
13
+     * @link      http://dev.glicer.com/
14
+     *
15
+     * Created : 04/05/15
16
+     * File : GlSpellCheckerError.php
17
+     *
18
+     */
19 19
 
20 20
 
21 21
 namespace GlSpellChecker;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/GlSpellCheckerSentence.php 2 patches
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,21 +1,21 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Spell check a sentence
4
- *
5
- * PHP version 5.4
6
- *
7
- * @category  GLICER
8
- * @package   GlSpellChecker
9
- * @author    Emmanuel ROECKER
10
- * @author    Rym BOUCHAGOUR
11
- * @copyright 2015 GLICER
12
- * @license   MIT
13
- * @link      http://dev.glicer.com/
14
- *
15
- * Created : 04/05/15
16
- * File : GlSpellCheckerSentence.php
17
- *
18
- */
3
+     * Spell check a sentence
4
+     *
5
+     * PHP version 5.4
6
+     *
7
+     * @category  GLICER
8
+     * @package   GlSpellChecker
9
+     * @author    Emmanuel ROECKER
10
+     * @author    Rym BOUCHAGOUR
11
+     * @copyright 2015 GLICER
12
+     * @license   MIT
13
+     * @link      http://dev.glicer.com/
14
+     *
15
+     * Created : 04/05/15
16
+     * File : GlSpellCheckerSentence.php
17
+     *
18
+     */
19 19
 
20 20
 namespace GlSpellChecker;
21 21
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.