Passed
Push — master ( ea02dd...cb0392 )
by Andreas
09:18
created
lib/midcom/baseclasses/components/handler/dataexport.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         foreach ($this->_datamanagers as $type => $datamanager) {
109 109
             foreach ($datamanager->get_schema($this->schemas[$type])->get('fields') as $name => $config) {
110 110
                 $title = $config['title'];
111
-                if (   $this->include_totals
111
+                if ($this->include_totals
112 112
                     && $config['type'] == 'number') {
113 113
                     $this->_totals[$type . '-' . $name] = 0;
114 114
                 }
@@ -172,18 +172,18 @@  discard block
 block discarded – undo
172 172
                     $data = array_pad($data, $target_size, '');
173 173
                     continue;
174 174
                 }
175
-                $object =& $row[$type];
175
+                $object = & $row[$type];
176 176
 
177 177
                 $datamanager->set_storage($object, $this->schemas[$type]);
178 178
 
179
-                if (   $this->include_guid
179
+                if ($this->include_guid
180 180
                     && $type == $first_type) {
181 181
                     $data[] = $object->guid;
182 182
                 }
183 183
 
184 184
                 $csvdata = $datamanager->get_content_csv();
185 185
                 foreach ($datamanager->get_schema()->get('fields') as $fieldname => $config) {
186
-                    if (   $this->include_totals
186
+                    if ($this->include_totals
187 187
                         && $config['type'] == 'number') {
188 188
                         $this->_totals[$type . '-' . $fieldname] += $csvdata[$fieldname];
189 189
                     }
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
         if (empty($this->csv['charset'])) {
212 212
             // Default to ISO-LATIN-15 (Latin-1 with EURO sign etc)
213 213
             $this->csv['charset'] = 'ISO-8859-15';
214
-            if (   $request->server->has('HTTP_USER_AGENT')
214
+            if ($request->server->has('HTTP_USER_AGENT')
215 215
                 && !preg_match('/Windows/i', $request->server->get('HTTP_USER_AGENT'))) {
216 216
                 // Except when not on windows, then default to UTF-8
217 217
                 $this->csv['charset'] = 'UTF-8';
Please login to merge, or discard this patch.