Passed
Branch master (abd304)
by Pedro
03:27 queued 01:23
created
module/Application/src/Service/BotParser.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -151,8 +151,8 @@  discard block
 block discarded – undo
151 151
                 }
152 152
 
153 153
                 $record = [
154
-                    'x_pos' => (int)$data[0],
155
-                    'y_pos' => (int)$data[1],
154
+                    'x_pos' => (int) $data[0],
155
+                    'y_pos' => (int) $data[1],
156 156
                     'type' => $data[2],
157 157
                     'level' => $data[3],
158 158
                     'age' => $data[4]
@@ -413,11 +413,11 @@  discard block
 block discarded – undo
413 413
         if (($handle = fopen($this->config['bot_quest'], "r")) !== false) {
414 414
             while (($data = fgets($handle, 1024)) !== false) {
415 415
                 // T - title
416
-                if (! isset($data['title']) && $data[0] == "T") {
416
+                if (!isset($data['title']) && $data[0] == "T") {
417 417
                     $quest['title'] = substr($data, 2);
418 418
                 }
419 419
                 // Y - type. 1 for time based, 2 for stages
420
-                if (! isset($data['type']) && $data[0] == "Y") {
420
+                if (!isset($data['type']) && $data[0] == "Y") {
421 421
                     $quest['type'] = (int) substr($data, 2);
422 422
                 }
423 423
                 // S - objective
Please login to merge, or discard this patch.