Passed
Push — master ( b9e7ef...63bcbe )
by Nassif
03:01
created
src/Trace/Trace.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
     public function get($from = null, $truncate = true)
40 40
     {
41
-        if (! $file = $this->getFile()) {
41
+        if (!$file = $this->getFile()) {
42 42
             throw new TraceException('Cannot find file to trace.');
43 43
         }
44 44
 
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 
48 48
     public function getFile()
49 49
     {
50
-        if (! file_exists($file = $this->uidToFile($this->uid))) {
50
+        if (!file_exists($file = $this->uidToFile($this->uid))) {
51 51
             return;
52 52
         }
53 53
 
@@ -70,13 +70,13 @@  discard block
 block discarded – undo
70 70
         // If there is new content
71 71
         if ($len > $last_position) {
72 72
             $f = fopen($file, 'rb');
73
-            if (! $f) {
73
+            if (!$f) {
74 74
                 throw new \LogicException("Cannot read file. [$file]");
75 75
             }
76 76
 
77 77
             $lines = [];
78 78
             fseek($f, $last_position);
79
-            while (! feof($f)) {
79
+            while (!feof($f)) {
80 80
                 $lines = array_merge(
81 81
                     $lines,
82 82
                     explode("\n", fread($f, 4096))
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 
123 123
     public function addCommandLine($command)
124 124
     {
125
-        file_put_contents($this->getFile(), "[{$command}]".PHP_EOL, FILE_APPEND);
125
+        file_put_contents($this->getFile(), "[{$command}]" . PHP_EOL, FILE_APPEND);
126 126
     }
127 127
 
128 128
     /**
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
     public function fileToUid($fullPath)
158 158
     {
159 159
         return $this->relativeFileToUid(
160
-            str_replace($this->basePath.'/', '', $fullPath)
160
+            str_replace($this->basePath . '/', '', $fullPath)
161 161
         );
162 162
     }
163 163
 
Please login to merge, or discard this patch.