@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | { |
69 | 69 | $dbs = Config::inst()->get($this->modelClass, 'db'); |
70 | 70 | foreach (array_keys($dbs) as $fieldName) { |
71 | - if (! in_array($fieldName, $this->exportFieldLabelsExclude, true)) { |
|
71 | + if (!in_array($fieldName, $this->exportFieldLabelsExclude, true)) { |
|
72 | 72 | $this->exportFields[$fieldName] = $this->exportFieldLabels[$fieldName] ?? $fieldName; |
73 | 73 | } |
74 | 74 | } |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | { |
79 | 79 | $casting = Config::inst()->get($this->modelClass, 'casting'); |
80 | 80 | foreach (array_keys($casting) as $fieldName) { |
81 | - if (! in_array($fieldName, $this->exportFieldLabelsExclude, true)) { |
|
81 | + if (!in_array($fieldName, $this->exportFieldLabelsExclude, true)) { |
|
82 | 82 | $this->exportFields[$fieldName] = $this->exportFieldLabels[$fieldName] ?? $fieldName; |
83 | 83 | } |
84 | 84 | } |
@@ -91,22 +91,22 @@ discard block |
||
91 | 91 | (Config::inst()->get($this->modelClass, 'belongs') ?: []) |
92 | 92 | ; |
93 | 93 | foreach ($hasOne as $fieldName => $type) { |
94 | - if (! in_array($fieldName, $this->exportFieldLabelsExclude, true)) { |
|
94 | + if (!in_array($fieldName, $this->exportFieldLabelsExclude, true)) { |
|
95 | 95 | switch ($type) { |
96 | 96 | case Image::class: |
97 | - $this->exportFields[$fieldName] = function ($rel) { |
|
97 | + $this->exportFields[$fieldName] = function($rel) { |
|
98 | 98 | return Director::absoluteURL($rel->Link()); |
99 | 99 | }; |
100 | 100 | |
101 | 101 | break; |
102 | 102 | case Member::class: |
103 | - $this->exportFields[$fieldName] = function ($rel) { |
|
103 | + $this->exportFields[$fieldName] = function($rel) { |
|
104 | 104 | return $rel->Email; |
105 | 105 | }; |
106 | 106 | |
107 | 107 | break; |
108 | 108 | default: |
109 | - $this->exportFields[$fieldName] = function ($rel) { |
|
109 | + $this->exportFields[$fieldName] = function($rel) { |
|
110 | 110 | return $rel->getTitle(); |
111 | 111 | }; |
112 | 112 | } |
@@ -122,8 +122,8 @@ discard block |
||
122 | 122 | (Config::inst()->get($this->modelClass, 'belongs_many_many') ?: []) |
123 | 123 | ; |
124 | 124 | foreach (array_keys($rels) as $fieldName) { |
125 | - if (! in_array($fieldName, $this->exportFieldLabelsExclude, true)) { |
|
126 | - $this->exportFields[$fieldName] = function ($rels) { |
|
125 | + if (!in_array($fieldName, $this->exportFieldLabelsExclude, true)) { |
|
126 | + $this->exportFields[$fieldName] = function($rels) { |
|
127 | 127 | $sep = Config::inst()->get(self::class, 'export_separator'); |
128 | 128 | $sepReplacer = Config::inst()->get(self::class, 'export_separator_replacer'); |
129 | 129 | $a = []; |