@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | |
| 102 | 102 | public function getAllDataObjects(): array |
| 103 | 103 | { |
| 104 | - if (! isset($this->cache['AllDataObjects'][$this->baseClass])) { |
|
| 104 | + if (!isset($this->cache['AllDataObjects'][$this->baseClass])) { |
|
| 105 | 105 | $this->cache['AllDataObjects'][$this->baseClass] = array_values( |
| 106 | 106 | ClassInfo::subclassesFor($this->baseClass, false) |
| 107 | 107 | ); |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | |
| 114 | 114 | public function getAllValidFields(string $className, ?bool $isQuickSearch = false, ?array $includedFields = [], ?array $includedClassFieldCombos = []): array |
| 115 | 115 | { |
| 116 | - if (! isset($this->cache['AllValidFields'][$className])) { |
|
| 116 | + if (!isset($this->cache['AllValidFields'][$className])) { |
|
| 117 | 117 | $this->cache['AllValidFields'][$className] = Config::inst()->get($className, 'db') ?? []; |
| 118 | 118 | $this->cache['AllValidFields'][$className] = array_merge( |
| 119 | 119 | $this->cache['AllValidFields'][$className], |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | |
| 149 | 149 | protected function getAllIndexedFields(string $className, array $dbFields): array |
| 150 | 150 | { |
| 151 | - if (! isset($this->cache['AllIndexedFields'][$className])) { |
|
| 151 | + if (!isset($this->cache['AllIndexedFields'][$className])) { |
|
| 152 | 152 | $this->cache['AllIndexedFields'][$className] = []; |
| 153 | 153 | $indexes = Config::inst()->get($className, 'indexes'); |
| 154 | 154 | if (is_array($indexes)) { |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | } |
| 172 | 172 | } |
| 173 | 173 | } |
| 174 | - } elseif(isset($dbFields[$key])) { |
|
| 174 | + } elseif (isset($dbFields[$key])) { |
|
| 175 | 175 | $this->cache['AllIndexedFields'][$className][$key] = $key; |
| 176 | 176 | } |
| 177 | 177 | } |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | */ |
| 187 | 187 | protected function isValidFieldType(string $type, string $className, string $fieldName): bool |
| 188 | 188 | { |
| 189 | - if (! isset($this->cache['AllValidFieldTypes'][$type])) { |
|
| 189 | + if (!isset($this->cache['AllValidFieldTypes'][$type])) { |
|
| 190 | 190 | $this->cache['AllValidFieldTypes'][$type] = false; |
| 191 | 191 | $singleton = Injector::inst()->get($className); |
| 192 | 192 | $field = $singleton->dbObject($fieldName); |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | 'limited' => 'Quick search (limited search)', |
| 71 | 71 | ]; |
| 72 | 72 | $availableSearchClasses = self::available_quick_searches(); |
| 73 | - if (! empty($availableSearchClasses) > 0) { |
|
| 73 | + if (!empty($availableSearchClasses) > 0) { |
|
| 74 | 74 | foreach ($availableSearchClasses as $availableSearchClass) { |
| 75 | 75 | $singleton = Injector::inst()->get($availableSearchClass); |
| 76 | 76 | if ($singleton->isEnabled()) { |