@@ -102,7 +102,7 @@ |
||
| 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) |
@@ -60,8 +60,8 @@ |
||
| 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); |
@@ -145,7 +145,7 @@ |
||
| 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); |