@@ -105,7 +105,9 @@ discard block |
||
105 | 105 | return Attribute::make( |
106 | 106 | get: function () { |
107 | 107 | // Check for error indicators in input data |
108 | - if (!$this->input) return true; |
|
108 | + if (!$this->input) { |
|
109 | + return true; |
|
110 | + } |
|
109 | 111 | |
110 | 112 | $input = is_array($this->input) ? $this->input : $this->input->toArray(); |
111 | 113 | return !isset($input['error']) && !isset($input['exception']); |
@@ -122,7 +124,9 @@ discard block |
||
122 | 124 | { |
123 | 125 | return Attribute::make( |
124 | 126 | get: function () { |
125 | - if (!$this->input) return []; |
|
127 | + if (!$this->input) { |
|
128 | + return []; |
|
129 | + } |
|
126 | 130 | |
127 | 131 | $input = is_array($this->input) ? $this->input : $this->input->toArray(); |
128 | 132 |
@@ -147,7 +147,9 @@ |
||
147 | 147 | |
148 | 148 | foreach ($lines as $index => $line) { |
149 | 149 | $line = trim($line); |
150 | - if (empty($line)) continue; |
|
150 | + if (empty($line)) { |
|
151 | + continue; |
|
152 | + } |
|
151 | 153 | |
152 | 154 | $row = str_getcsv($line); |
153 | 155 |