Completed
Pull Request — master (#114)
by Bart
05:40
created
src/Services/UserGroups.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
     /**
52 52
      * Get group permissions.
53 53
      *
54
-     * @param $group
54
+     * @param Model $group
55 55
      *
56 56
      * @return array|string
57 57
      */
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/Services/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/CategoryGroupsTest.php 2 patches
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.
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 string $groupId
197 197
      *
198
-     * @return Mock|CategoryGroup
198
+     * @return \PHPUnit\Framework\MockObject\MockObject
199 199
      */
200 200
     private function getMockCategoryGroup($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.
tests/unit/Services/GlobalSetsTest.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
     /**
197 197
      * @param int $setId
198 198
      *
199
-     * @return Mock|GlobalSet
199
+     * @return \PHPUnit\Framework\MockObject\MockObject
200 200
      */
201 201
     private function getMockGlobalSet(int $setId)
202 202
     {
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
     /**
272 272
      * Expect a list of global sets.
273 273
      *
274
-     * @param GlobalSet[] $GlobalSets
274
+     * @param GlobalSet[] $globalSets
275 275
      */
276 276
     private function expectList(array $globalSets)
277 277
     {
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.