@@ -91,7 +91,7 @@ |
||
| 91 | 91 | } |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | - $transaction = RecordHelper::beginTransaction();; |
|
| 94 | + $transaction = RecordHelper::beginTransaction(); ; |
|
| 95 | 95 | |
| 96 | 96 | try { |
| 97 | 97 | |
@@ -155,10 +155,8 @@ discard block |
||
| 155 | 155 | if (empty($existingStatus)) { |
| 156 | 156 | |
| 157 | 157 | $existingStatus = (!empty($query['archived']) ? |
| 158 | - Element::STATUS_ARCHIVED : |
|
| 159 | - ($query['enabled'] ? |
|
| 160 | - Element::STATUS_ENABLED : |
|
| 161 | - ELEMENT::STATUS_DISABLED |
|
| 158 | + Element::STATUS_ARCHIVED : ($query['enabled'] ? |
|
| 159 | + Element::STATUS_ENABLED : ELEMENT::STATUS_DISABLED |
|
| 162 | 160 | ) |
| 163 | 161 | ); |
| 164 | 162 | |
@@ -433,7 +431,7 @@ discard block |
||
| 433 | 431 | $organization->slug = $request->getBodyParam('slug', $organization->slug); |
| 434 | 432 | $organization->dateJoined = (($dateJoined = $request->getBodyParam('dateJoined')) !== false ? (DateTimeHelper::toDateTime($dateJoined) ?: null) : $organization->dateJoined); |
| 435 | 433 | $organization->status = $request->getBodyParam('status', $organization->getStatus()); |
| 436 | - $organization->enabledForSite = (bool)$request->getBodyParam('enabledForSite', $organization->enabledForSite); |
|
| 434 | + $organization->enabledForSite = (bool) $request->getBodyParam('enabledForSite', $organization->enabledForSite); |
|
| 437 | 435 | $organization->title = $request->getBodyParam('title', $organization->title); |
| 438 | 436 | |
| 439 | 437 | // Active Type |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | Event::on( |
| 77 | 77 | Elements::className(), |
| 78 | 78 | Elements::EVENT_REGISTER_ELEMENT_TYPES, |
| 79 | - function (RegisterComponentTypesEvent $event) { |
|
| 79 | + function(RegisterComponentTypesEvent $event) { |
|
| 80 | 80 | $event->types[] = Organization::class; |
| 81 | 81 | } |
| 82 | 82 | ); |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | Event::on( |
| 26 | 26 | User::className(), |
| 27 | 27 | User::EVENT_REGISTER_ACTIONS, |
| 28 | - function (RegisterElementActionsEvent $event) { |
|
| 28 | + function(RegisterElementActionsEvent $event) { |
|
| 29 | 29 | if ($event->source == '*') { |
| 30 | 30 | $event->actions = [ |
| 31 | 31 | [ |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | Event::on( |
| 45 | 45 | User::className(), |
| 46 | 46 | User::EVENT_REGISTER_SOURCES, |
| 47 | - function (RegisterElementSourcesEvent $event) { |
|
| 47 | + function(RegisterElementSourcesEvent $event) { |
|
| 48 | 48 | if ($event->context == 'index') { |
| 49 | 49 | $event->sources = [ |
| 50 | 50 | [ |