Completed
Pull Request — master (#114)
by Bart
07:15
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/GlobalSetsTest.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -192,7 +192,7 @@
 block discarded – undo
192 192
     /**
193 193
      * @param int $setId
194 194
      *
195
-     * @return Mock|GlobalSet
195
+     * @return \PHPUnit\Framework\MockObject\MockObject
196 196
      */
197 197
     private function getMockGlobalSet(int $setId)
198 198
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use craft\elements\GlobalSet;
7 7
 use craft\models\FieldLayout;
8 8
 use craft\models\Site;
9
-use craft\services\Fields;
10 9
 use Codeception\Test\Unit;
11 10
 use NerdsAndCompany\Schematic\Schematic;
12 11
 
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.