Passed
Push — master ( 6e5664...7771a4 )
by Nicolaas
11:30
created
src/Extensions/ModelAdminExtension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@  discard block
 block discarded – undo
28 28
     {
29 29
         $owner = $this->getOwner();
30 30
         $excludedModelAdmins = Config::inst()->get(ModelAdmin::class, 'excluded_modeladmins_from_ssu_extension');
31
-        if (! in_array(get_class($owner), $excludedModelAdmins, true)) {
31
+        if (!in_array(get_class($owner), $excludedModelAdmins, true)) {
32 32
             $excludedModels = Config::inst()->get(ModelAdmin::class, 'excluded_models_from_ssu_extension');
33
-            if (! in_array($owner->modelClass, $excludedModels, true)) {
33
+            if (!in_array($owner->modelClass, $excludedModels, true)) {
34 34
                 // This check is simply to ensure you are on the managed model you want adjust accordingly
35 35
                 $obj = Injector::inst()->get($owner->modelClass);
36 36
                 if ($obj) {
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
                             // This is just a precaution to ensure we got a GridField from dataFieldByName() which you should have
43 43
                             if ($gridField instanceof GridField) {
44 44
                                 $config = $gridField->getConfig();
45
-                                if($config->getComponentByType(GridFieldSortableRows::class) === null) {
45
+                                if ($config->getComponentByType(GridFieldSortableRows::class) === null) {
46 46
                                     $config->addComponent(new GridFieldSortableRows($sortField));
47 47
                                 }
48 48
                             }
Please login to merge, or discard this patch.