Passed
Push — master ( c502af...d8afe7 )
by Nate
04:17
created
src/modules/configuration/services/Type.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
             }
92 92
         }
93 93
 
94
-        $transaction = RecordHelper::beginTransaction();;
94
+        $transaction = RecordHelper::beginTransaction(); ;
95 95
 
96 96
         try {
97 97
 
Please login to merge, or discard this patch.
src/services/Organization.php 1 patch
Spacing   +3 added lines, -5 removed lines patch added patch discarded remove patch
@@ -155,10 +155,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Plugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
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
         );
Please login to merge, or discard this patch.
src/controllers/UserIndexesController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
                         [
Please login to merge, or discard this patch.