@@ -118,7 +118,7 @@ |
||
| 118 | 118 | * |
| 119 | 119 | * @param array $data |
| 120 | 120 | * |
| 121 | - * @return Data |
|
| 121 | + * @return string |
|
| 122 | 122 | */ |
| 123 | 123 | public static function toYaml(array $data) |
| 124 | 124 | { |
@@ -2,9 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace NerdsAndCompany\Schematic\Models; |
| 4 | 4 | |
| 5 | -use Craft; |
|
| 6 | 5 | use craft\base\Model; |
| 7 | -use Craft\AttributeType; |
|
| 8 | 6 | use Craft\Exception; |
| 9 | 7 | use Symfony\Component\Yaml\Yaml; |
| 10 | 8 | |
@@ -298,7 +298,7 @@ |
||
| 298 | 298 | } |
| 299 | 299 | |
| 300 | 300 | /** |
| 301 | - * @param array $permissions |
|
| 301 | + * @param string[] $permissions |
|
| 302 | 302 | * @param bool $success |
| 303 | 303 | * |
| 304 | 304 | * @return UserPermissionsService|Mock |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | /** |
| 25 | 25 | * Load fieldlayout and sources behaviors |
| 26 | 26 | * |
| 27 | - * @return array |
|
| 27 | + * @return string[] |
|
| 28 | 28 | */ |
| 29 | 29 | public function behaviors() |
| 30 | 30 | { |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | use NerdsAndCompany\Schematic\Behaviors\SourcesBehavior; |
| 9 | 9 | use NerdsAndCompany\Schematic\Interfaces\MappingInterface; |
| 10 | 10 | use NerdsAndCompany\Schematic\Schematic; |
| 11 | -use LogicException; |
|
| 12 | 11 | |
| 13 | 12 | /** |
| 14 | 13 | * Schematic Base Service. |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | /** |
| 25 | 25 | * Load fieldlayout behavior |
| 26 | 26 | * |
| 27 | - * @return array |
|
| 27 | + * @return string[] |
|
| 28 | 28 | */ |
| 29 | 29 | public function behaviors() |
| 30 | 30 | { |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | /** |
| 24 | 24 | * Load sources behaviors |
| 25 | 25 | * |
| 26 | - * @return array |
|
| 26 | + * @return string[] |
|
| 27 | 27 | */ |
| 28 | 28 | public function behaviors() |
| 29 | 29 | { |
@@ -23,8 +23,6 @@ discard block |
||
| 23 | 23 | /** |
| 24 | 24 | * Exports the Craft datamodel. |
| 25 | 25 | * |
| 26 | - * @param string $file file to write the schema to |
|
| 27 | - * @param array $exclude Data to not export |
|
| 28 | 26 | * |
| 29 | 27 | * @return int |
| 30 | 28 | */ |
@@ -42,7 +40,6 @@ discard block |
||
| 42 | 40 | * Export to Yaml file. |
| 43 | 41 | * |
| 44 | 42 | * @param string $file |
| 45 | - * @param bool $autoCreate |
|
| 46 | 43 | * |
| 47 | 44 | * @return int |
| 48 | 45 | */ |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | /** |
| 27 | 27 | * {@inheritdoc} |
| 28 | 28 | * |
| 29 | - * @return array |
|
| 29 | + * @return string[] |
|
| 30 | 30 | */ |
| 31 | 31 | public function options($actionID) |
| 32 | 32 | { |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace NerdsAndCompany\Schematic\ConsoleCommands; |
| 4 | 4 | |
| 5 | 5 | use Craft; |
| 6 | -use craft\helpers\FileHelper; |
|
| 7 | 6 | use NerdsAndCompany\Schematic\Interfaces\MappingInterface; |
| 8 | 7 | use NerdsAndCompany\Schematic\Models\Data; |
| 9 | 8 | use NerdsAndCompany\Schematic\Schematic; |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | /** |
| 107 | - * @return Mock|GlobalsService |
|
| 107 | + * @return Mock |
|
| 108 | 108 | */ |
| 109 | 109 | public function getMockGlobalsService() |
| 110 | 110 | { |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | } |
| 119 | 119 | |
| 120 | 120 | /** |
| 121 | - * @return Mock|SectionsService |
|
| 121 | + * @return Mock |
|
| 122 | 122 | */ |
| 123 | 123 | public function getMockSectionsService() |
| 124 | 124 | { |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | } |
| 176 | 176 | |
| 177 | 177 | /** |
| 178 | - * @return PluginsService|Mock |
|
| 178 | + * @return Mock |
|
| 179 | 179 | */ |
| 180 | 180 | public function getMockPluginsService() |
| 181 | 181 | { |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | } |
| 194 | 194 | |
| 195 | 195 | /** |
| 196 | - * @return Mock|AssetSourcesService |
|
| 196 | + * @return Mock |
|
| 197 | 197 | */ |
| 198 | 198 | public function getMockAssetSourcesService() |
| 199 | 199 | { |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | } |
| 208 | 208 | |
| 209 | 209 | /** |
| 210 | - * @return Mock|AssetTransformsService |
|
| 210 | + * @return Mock |
|
| 211 | 211 | */ |
| 212 | 212 | public function getMockAssetTransformsService() |
| 213 | 213 | { |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | } |
| 222 | 222 | |
| 223 | 223 | /** |
| 224 | - * @return Mock|CategoriesService |
|
| 224 | + * @return Mock |
|
| 225 | 225 | */ |
| 226 | 226 | public function getMockCategoriesService() |
| 227 | 227 | { |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | } |
| 236 | 236 | |
| 237 | 237 | /** |
| 238 | - * @return Mock|TagsService |
|
| 238 | + * @return Mock |
|
| 239 | 239 | */ |
| 240 | 240 | public function getMockTagsService() |
| 241 | 241 | { |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace NerdsAndCompany\Schematic\Services; |
| 4 | 4 | |
| 5 | 5 | use Craft; |
| 6 | -use Craft\Exception; |
|
| 7 | 6 | use craft\base\Plugin; |
| 8 | 7 | use yii\base\Component as BaseComponent; |
| 9 | 8 | use NerdsAndCompany\Schematic\Interfaces\MappingInterface; |
@@ -27,7 +27,6 @@ discard block |
||
| 27 | 27 | //============================================================================================================== |
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | - * @param array $data |
|
| 31 | 30 | * |
| 32 | 31 | * @return array |
| 33 | 32 | */ |
@@ -65,7 +64,7 @@ discard block |
||
| 65 | 64 | /** |
| 66 | 65 | * @param array $pluginDefinitions |
| 67 | 66 | * |
| 68 | - * @return Result |
|
| 67 | + * @return boolean |
|
| 69 | 68 | */ |
| 70 | 69 | public function import(array $pluginDefinitions) |
| 71 | 70 | { |