@@ -26,9 +26,9 @@ |
||
26 | 26 | { |
27 | 27 | $owner = $this->getOwner(); |
28 | 28 | $excludedModelAdmins = Config::inst()->get(ModelAdmin::class, 'excluded_modeladmins_from_ssu_extension'); |
29 | - if (! in_array(get_class($owner), $excludedModelAdmins, true)) { |
|
29 | + if (!in_array(get_class($owner), $excludedModelAdmins, true)) { |
|
30 | 30 | $excludedModels = Config::inst()->get(ModelAdmin::class, 'excluded_models_from_ssu_extension'); |
31 | - if (! in_array($owner->modelClass, $excludedModels, true)) { |
|
31 | + if (!in_array($owner->modelClass, $excludedModels, true)) { |
|
32 | 32 | // This check is simply to ensure you are on the managed model you want adjust accordingly |
33 | 33 | $obj = Injector::inst()->get($owner->modelClass); |
34 | 34 | if ($obj) { |
@@ -12,7 +12,7 @@ |
||
12 | 12 | if (is_array($rightFieldDescriptions) && count($rightFieldDescriptions)) { |
13 | 13 | foreach ($rightFieldDescriptions as $field => $desc) { |
14 | 14 | $formField = $fields->DataFieldByName($field); |
15 | - if (! $formField) { |
|
15 | + if (!$formField) { |
|
16 | 16 | $formField = $fields->DataFieldByName($field . 'ID'); |
17 | 17 | } |
18 | 18 |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | { |
11 | 11 | public function canCreate($member = null, $context = []) |
12 | 12 | { |
13 | - if (! $member) { |
|
13 | + if (!$member) { |
|
14 | 14 | $member = Security::getCurrentUser(); |
15 | 15 | } |
16 | 16 | |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | if ($obj instanceof ArrayList) { |
20 | 20 | $outcome = true; |
21 | 21 | foreach ($obj as $item) { |
22 | - if (! $item->canCreate($member, $context)) { |
|
22 | + if (!$item->canCreate($member, $context)) { |
|
23 | 23 | $outcome = false; |
24 | 24 | |
25 | 25 | break; |
@@ -386,7 +386,7 @@ discard block |
||
386 | 386 | $this->getGridFieldConfig->removeComponentsByType(GridFieldAddNewButton::class); |
387 | 387 | } |
388 | 388 | |
389 | - if (! $this->hasAddExisting) { |
|
389 | + if (!$this->hasAddExisting) { |
|
390 | 390 | $this->getGridFieldConfig->removeComponentsByType(GridFieldAddExistingAutocompleter::class); |
391 | 391 | } |
392 | 392 | |
@@ -493,7 +493,7 @@ discard block |
||
493 | 493 | |
494 | 494 | protected function listIsEmpty(): bool |
495 | 495 | { |
496 | - return ! $this->children || ($this->children instanceof FieldList && ! $this->children->exists()); |
|
496 | + return !$this->children || ($this->children instanceof FieldList && !$this->children->exists()); |
|
497 | 497 | } |
498 | 498 | |
499 | 499 | protected function checkIfFieldsHaveBeenBuilt() |
@@ -575,7 +575,7 @@ discard block |
||
575 | 575 | |
576 | 576 | // do we need it because we do not have a checkboxset? |
577 | 577 | //we can go without! |
578 | - return ! $this->hasCheckboxSet(); |
|
578 | + return !$this->hasCheckboxSet(); |
|
579 | 579 | } |
580 | 580 | |
581 | 581 | private function getSortField(): string |
@@ -9,8 +9,8 @@ |
||
9 | 9 | { |
10 | 10 | public static function flush() |
11 | 11 | { |
12 | - if(Security::database_is_ready() && self::table_exists('Member')) { |
|
13 | - if(DB::get_schema()->hasTable('Member') && ! Environment::getEnv('SS_EK_SPREEK_AFRIKAANS')) { |
|
12 | + if (Security::database_is_ready() && self::table_exists('Member')) { |
|
13 | + if (DB::get_schema()->hasTable('Member') && !Environment::getEnv('SS_EK_SPREEK_AFRIKAANS')) { |
|
14 | 14 | DB::query('UPDATE Member SET Member.Locale = \'en_US\' WHERE Member.Locale = \'af_ZA\''); |
15 | 15 | } |
16 | 16 | } |
@@ -2,6 +2,6 @@ |
||
2 | 2 | |
3 | 3 | use SilverStripe\Control\Director; |
4 | 4 | |
5 | -if(!Director::isDev()) { |
|
5 | +if (!Director::isDev()) { |
|
6 | 6 | Director::forceSSL(); |
7 | 7 | } |
@@ -37,7 +37,7 @@ |
||
37 | 37 | |
38 | 38 | public function editLink($controller = null): string |
39 | 39 | { |
40 | - if(! $controller) { |
|
40 | + if (!$controller) { |
|
41 | 41 | $controller = $this->myModelAdminController(); |
42 | 42 | } |
43 | 43 | return '/' . |