Test Setup Failed
Push — master ( 98b58d...44d278 )
by Php Easy Api
03:28
created
src/resta/Console/Source/Track/Track.php 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -29,15 +29,15 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public function log()
31 31
     {
32
-        if(app()->has('track.path')){
32
+        if (app()->has('track.path')) {
33 33
             $trackPath = app()->get('track.path');
34 34
             $logger = $trackPath($this->argument);
35 35
         }
36
-        else{
36
+        else {
37 37
             $logger = app()->path()->appLog().''.DIRECTORY_SEPARATOR.''.date('Y').''.DIRECTORY_SEPARATOR.''.date('m').''.DIRECTORY_SEPARATOR.''.date('d').'-access.log';
38 38
         }
39 39
 
40
-        if(!file_exists($logger)){
40
+        if (!file_exists($logger)) {
41 41
             echo 'No requests for a log tracker have been detected yet.';
42 42
             echo PHP_EOL;
43 43
             exit();
@@ -53,18 +53,18 @@  discard block
 block discarded – undo
53 53
         while (!feof($proc))
54 54
         {
55 55
             $result = fread($proc, 4096);
56
-            if(preg_match('@\{(.*)\}@',$result,$output)){
57
-                $outputArray = json_decode($output[0],1);
56
+            if (preg_match('@\{(.*)\}@', $result, $output)) {
57
+                $outputArray = json_decode($output[0], 1);
58 58
 
59 59
                 $outputArray['trackNumber'] = ++$number;
60 60
 
61
-                if(app()->has('track.log')){
61
+                if (app()->has('track.log')) {
62 62
 
63 63
                     $track = app()->get('track.log');
64
-                    echo $track($outputArray,$this->argument);
64
+                    echo $track($outputArray, $this->argument);
65 65
                 }
66 66
             }
67
-            else{
67
+            else {
68 68
                 echo $result;
69 69
             }
70 70
             @ flush();
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,8 +32,7 @@  discard block
 block discarded – undo
32 32
         if(app()->has('track.path')){
33 33
             $trackPath = app()->get('track.path');
34 34
             $logger = $trackPath($this->argument);
35
-        }
36
-        else{
35
+        } else{
37 36
             $logger = app()->path()->appLog().''.DIRECTORY_SEPARATOR.''.date('Y').''.DIRECTORY_SEPARATOR.''.date('m').''.DIRECTORY_SEPARATOR.''.date('d').'-access.log';
38 37
         }
39 38
 
@@ -63,8 +62,7 @@  discard block
 block discarded – undo
63 62
                     $track = app()->get('track.log');
64 63
                     echo $track($outputArray,$this->argument);
65 64
                 }
66
-            }
67
-            else{
65
+            } else{
68 66
                 echo $result;
69 67
             }
70 68
             @ flush();
Please login to merge, or discard this patch.