Completed
Pull Request — master (#114)
by Bart
06:52
created
tests/Services/UserGroupsTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -298,7 +298,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Services/Base.php 2 patches
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 fieldlayout and 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.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
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.
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
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     /**
25 25
      * Load fieldlayout behavior
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/ElementIndexSettings.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     /**
24 24
      * Load sources behaviors
25 25
      *
26
-     * @return array
26
+     * @return string[]
27 27
      */
28 28
     public function behaviors()
29 29
     {
Please login to merge, or discard this patch.
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 2 patches
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.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Models/Data.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,9 +2,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
tests/Services/SchematicTest.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
235 235
     }
236 236
 
237 237
     /**
238
-     * @return Mock|TagsService
238
+     * @return Mock
239 239
      */
240 240
     public function getMockTagsService()
241 241
     {
Please login to merge, or discard this patch.
src/Services/Plugins.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,6 @@  discard block
 block discarded – undo
27 27
     //==============================================================================================================
28 28
 
29 29
     /**
30
-    * @param array $data
31 30
     *
32 31
     * @return array
33 32
     */
@@ -65,7 +64,7 @@  discard block
 block discarded – undo
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
     {
Please login to merge, or discard this patch.