@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | $csvWriter->setOutputBOM(Writer::BOM_UTF8); |
92 | 92 | |
93 | 93 | if (!Config::inst()->get(static::class, 'xls_export_disabled')) { |
94 | - $csvWriter->addFormatter(function (array $row) { |
|
94 | + $csvWriter->addFormatter(function(array $row) { |
|
95 | 95 | foreach ($row as &$item) { |
96 | 96 | // [SS-2017-007] Sanitise XLS executable column values with a leading tab |
97 | 97 | if (preg_match('/^[-@=+].*/', $item ?? '')) { |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | return $csvWriter->toString(); |
122 | 122 | } |
123 | 123 | |
124 | - return (string)$csvWriter; |
|
124 | + return (string) $csvWriter; |
|
125 | 125 | } |
126 | 126 | |
127 | 127 | |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | $limit = Config::inst()->get(static::class, 'limit_to_join_tables'); |
206 | 206 | $list = DB::query('SELECT "' . $localIDField . '", "' . $foreignIDField . '" FROM "' . $joinTable . '" LIMIT ' . $limit); |
207 | 207 | foreach ($list as $row) { |
208 | - if (! isset($this->lookupTableCache[$joinTable][$row[$localIDField]])) { |
|
208 | + if (!isset($this->lookupTableCache[$joinTable][$row[$localIDField]])) { |
|
209 | 209 | $this->lookupTableCache[$joinTable][$row[$localIDField]] = []; |
210 | 210 | } |
211 | 211 | $this->lookupTableCache[$joinTable][$row[$localIDField]][] = $row[$foreignIDField]; |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | $joinTable = $this->joinTableCache[$className]['table']; |
215 | 215 | $foreignIDField = $this->joinTableCache[$className]['foreign']; |
216 | 216 | } |
217 | - if (! empty($this->lookupTableCache[$joinTable][$item->ID])) { |
|
217 | + if (!empty($this->lookupTableCache[$joinTable][$item->ID])) { |
|
218 | 218 | foreach ($this->lookupTableCache[$joinTable][$item->ID] as $foreignID) { |
219 | 219 | $result[] = $this->lookupTableCache[$className][$foreignID] ?? ''; |
220 | 220 | } |