@@ -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) { |
@@ -37,11 +37,11 @@ discard block |
||
| 37 | 37 | |
| 38 | 38 | // fixd existing existing tab |
| 39 | 39 | $tab = $fields->fieldByName('Root.' . $tabName); |
| 40 | - if (! $tab) { |
|
| 40 | + if (!$tab) { |
|
| 41 | 41 | $tab = $fields->fieldByName('Root.' . $tabNamePlus); |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | - if (! $tab) { |
|
| 44 | + if (!$tab) { |
|
| 45 | 45 | $tab = new Tab($tabNamePlus, $tabName); |
| 46 | 46 | } |
| 47 | 47 | |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | public function addTab(FieldList $fields, string $name, ?string $after = 'Main', ?string $title = '') |
| 69 | 69 | { |
| 70 | 70 | // add spaces between capitals |
| 71 | - if (! $title) { |
|
| 71 | + if (!$title) { |
|
| 72 | 72 | $items = preg_split('#(?=[A-Z])#', $name); |
| 73 | 73 | $title = is_array($items) ? trim(implode(' ', $items)) : $name; |
| 74 | 74 | } |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | 'Root', |
| 83 | 83 | $name |
| 84 | 84 | ); |
| 85 | - if (! $tab) { |
|
| 85 | + if (!$tab) { |
|
| 86 | 86 | $tab = Tab::create($name, $title); |
| 87 | 87 | } |
| 88 | 88 | |
@@ -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 | } |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | { |
| 10 | 10 | public static function flush() |
| 11 | 11 | { |
| 12 | - if (Security::database_is_ready() && self::table_exists('Member') && (DB::get_schema()->hasTable('Member') && ! Environment::getEnv('SS_EK_SPREEK_AFRIKAANS'))) { |
|
| 12 | + if (Security::database_is_ready() && self::table_exists('Member') && (DB::get_schema()->hasTable('Member') && !Environment::getEnv('SS_EK_SPREEK_AFRIKAANS'))) { |
|
| 13 | 13 | DB::query('UPDATE Member SET Member.Locale = \'en_US\' WHERE Member.Locale = \'af_ZA\''); |
| 14 | 14 | } |
| 15 | 15 | } |