@@ -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 | { |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace NerdsAndCompany\Schematic\Models; |
4 | 4 | |
5 | -use Craft; |
|
6 | 5 | use craft\base\Model; |
7 | 6 | use Symfony\Component\Yaml\Yaml; |
8 | 7 |
@@ -26,7 +26,7 @@ |
||
26 | 26 | /** |
27 | 27 | * Load fieldlayout and sources behaviors. |
28 | 28 | * |
29 | - * @return array |
|
29 | + * @return string[] |
|
30 | 30 | */ |
31 | 31 | public function behaviors() |
32 | 32 | { |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | /** |
196 | 196 | * @param int $groupId |
197 | 197 | * |
198 | - * @return Mock|CategoryGroup |
|
198 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
199 | 199 | */ |
200 | 200 | private function getMockCategoryGroup(int $groupId) |
201 | 201 | { |
@@ -228,9 +228,8 @@ discard block |
||
228 | 228 | /** |
229 | 229 | * Get mock siteSettings. |
230 | 230 | * |
231 | - * @param string $class |
|
232 | 231 | * |
233 | - * @return Mock|CategoryGroup_SiteSettings |
|
232 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
234 | 233 | */ |
235 | 234 | private function getMockSiteSettings() |
236 | 235 | { |
@@ -248,7 +247,7 @@ discard block |
||
248 | 247 | /** |
249 | 248 | * Get a mock site. |
250 | 249 | * |
251 | - * @return Mock|Site |
|
250 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
252 | 251 | */ |
253 | 252 | private function getMockSite() |
254 | 253 | { |
@@ -7,7 +7,6 @@ |
||
7 | 7 | use craft\models\CategoryGroup_SiteSettings; |
8 | 8 | use craft\models\FieldLayout; |
9 | 9 | use craft\models\Site; |
10 | -use craft\services\Fields; |
|
11 | 10 | use Codeception\Test\Unit; |
12 | 11 | use NerdsAndCompany\Schematic\Schematic; |
13 | 12 |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | /** |
191 | 191 | * @param int $siteId |
192 | 192 | * |
193 | - * @return Mock|Site |
|
193 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
194 | 194 | */ |
195 | 195 | private function getMockSite(int $siteId, int $groupId) |
196 | 196 | { |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | * |
223 | 223 | * @param int $groupId |
224 | 224 | * |
225 | - * @return Mock|SiteGroup |
|
225 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
226 | 226 | */ |
227 | 227 | private function getMockSiteGroup(int $groupId) |
228 | 228 | { |
@@ -24,7 +24,7 @@ |
||
24 | 24 | /** |
25 | 25 | * Load sources behaviors. |
26 | 26 | * |
27 | - * @return array |
|
27 | + * @return string[] |
|
28 | 28 | */ |
29 | 29 | public function behaviors() |
30 | 30 | { |
@@ -25,7 +25,7 @@ |
||
25 | 25 | /** |
26 | 26 | * Load fieldlayout behavior. |
27 | 27 | * |
28 | - * @return array |
|
28 | + * @return string[] |
|
29 | 29 | */ |
30 | 30 | public function behaviors() |
31 | 31 | { |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | /** |
44 | 44 | * @dataProvider provideGlobalSets |
45 | 45 | * |
46 | - * @param GlobalSetModel $set |
|
46 | + * @param GlobalSetElement $set |
|
47 | 47 | * @param array $definition |
48 | 48 | */ |
49 | 49 | public function testGetRecordDefinition(GlobalSetElement $set, array $definition) |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | /** |
57 | 57 | * @dataProvider provideGlobalSets |
58 | 58 | * |
59 | - * @param GlobalSetModel $set |
|
59 | + * @param GlobalSetElement $set |
|
60 | 60 | * @param array $definition |
61 | 61 | * @param bool $valid |
62 | 62 | */ |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | /** |
83 | 83 | * @dataProvider provideGlobalSets |
84 | 84 | * |
85 | - * @param GlobalSetModel $set |
|
85 | + * @param GlobalSetElement $set |
|
86 | 86 | */ |
87 | 87 | public function testDeleteRecord(GlobalSetElement $set) |
88 | 88 | { |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | //============================================================================================================== |
122 | 122 | |
123 | 123 | /** |
124 | - * @param GlobalSet $mockGlobalSet |
|
124 | + * @param GlobalSetElement $mockGlobalSet |
|
125 | 125 | * |
126 | 126 | * @return array |
127 | 127 | */ |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | * @param int $setId |
156 | 156 | * @param string $siteHandle |
157 | 157 | * |
158 | - * @return Mock|GlobalSet |
|
158 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
159 | 159 | */ |
160 | 160 | private function getMockGlobalSet(int $setId, string $siteHandle = 'default') |
161 | 161 | { |
@@ -7,7 +7,6 @@ |
||
7 | 7 | use craft\base\Field; |
8 | 8 | use craft\models\FieldLayout; |
9 | 9 | use craft\models\Site; |
10 | -use craft\services\Fields; |
|
11 | 10 | use Codeception\Test\Unit; |
12 | 11 | |
13 | 12 | /** |