Passed
Push — master ( 27cae7...769d04 )
by Josh
03:01
created
src/services/Loader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
                     $entryType = reset($sectionEntryTypes);
103 103
                 } else
104 104
                 {
105
-                    $entryId = (integer) explode('-', $segments[2])[0];
105
+                    $entryId = (integer)explode('-', $segments[2])[0];
106 106
                     $entry = Craft::$app->entries->getEntryById($entryId);
107 107
 
108 108
                     if ($entry)
Please login to merge, or discard this patch.
src/controllers/BlockTypesController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,8 +60,8 @@
 block discarded – undo
60 60
         // delete the rows matching that context before proceeding with the save.
61 61
         $blockTypesPostData = Craft::$app->getRequest()->getParam('spoonedBlockTypes');
62 62
 
63
-        $context = (string) Craft::$app->getRequest()->getParam('context');
64
-        $fieldId = (integer) Craft::$app->getRequest()->getParam('fieldId');
63
+        $context = (string)Craft::$app->getRequest()->getParam('context');
64
+        $fieldId = (integer)Craft::$app->getRequest()->getParam('fieldId');
65 65
 
66 66
         // Get any existing field layouts so we don’t lose them
67 67
         $fieldLayoutIds = Spoon::$plugin->blockTypes->getFieldLayoutIds($context, $fieldId);
Please login to merge, or discard this patch.
src/Spoon.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@
 block discarded – undo
145 145
                             if (isset($nestedParts[1])) {
146 146
 
147 147
                                 /** @var craft\models\MatrixBlockType $matrixBlockType */
148
-                                $matrixBlockType = \Craft::$app->matrix->getBlockTypeById((integer) $nestedParts[1]);
148
+                                $matrixBlockType = \Craft::$app->matrix->getBlockTypeById((integer)$nestedParts[1]);
149 149
 
150 150
                                 /** @var craft\fields\Matrix $globalField */
151 151
                                 $globalField = \Craft::$app->fields->getFieldById($matrixBlockType->fieldId);
Please login to merge, or discard this patch.