Completed
Pull Request — master (#114)
by Bart
07:38
created
src/ConsoleCommands/ExportCommand.php 1 patch
Doc Comments   -3 removed lines patch added patch discarded remove patch
@@ -23,8 +23,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
src/ConsoleCommands/ImportCommand.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     /**
27 27
      * {@inheritdoc}
28 28
      *
29
-     * @return array
29
+     * @return string[]
30 30
      */
31 31
     public function options($actionID)
32 32
     {
Please login to merge, or discard this patch.
src/Models/Data.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Converters/Models/Base.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
tests/unit/Services/ModelProcessor/CategoryGroupsTest.php 2 patches
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
tests/unit/Services/ModelProcessor/SitesTest.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Services/ElementIndexSettings.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     /**
25 25
      * Load sources behaviors.
26 26
      *
27
-     * @return array
27
+     * @return string[]
28 28
      */
29 29
     public function behaviors()
30 30
     {
Please login to merge, or discard this patch.
src/Services/Users.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     /**
26 26
      * Load fieldlayout behavior.
27 27
      *
28
-     * @return array
28
+     * @return string[]
29 29
      */
30 30
     public function behaviors()
31 31
     {
Please login to merge, or discard this patch.
tests/unit/Converters/Elements/GlobalSetTest.php 2 patches
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
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
 /**
Please login to merge, or discard this patch.