Completed
Branch develop (cd8f66)
by Nate
03:44
created
src/helpers/QueryHelper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
      * Standard param parsing.
56 56
      *
57 57
      * @param $value
58
-     * @param $join
58
+     * @param string $join
59 59
      * @return bool
60 60
      */
61 61
     public static function parseBaseParam(&$value, &$join): bool
Please login to merge, or discard this patch.
src/traits/SiteMutator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
     /**
55 55
      * Associate a site
56 56
      *
57
-     * @param $site
57
+     * @param SiteModel $site
58 58
      * @return $this
59 59
      */
60 60
     public function setSite($site)
Please login to merge, or discard this patch.
src/traits/ElementMutator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
     /**
56 56
      * Associate a element
57 57
      *
58
-     * @param mixed $element
58
+     * @param ElementInterface|null $element
59 59
      * @return $this
60 60
      */
61 61
     public function setElement($element = null)
Please login to merge, or discard this patch.
src/services/traits/records/AccessorByString.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
     /**
52 52
      * @param string $string
53
-     * @return Record|null
53
+     * @return null|\yii\base\BaseObject
54 54
      */
55 55
     public function findByString(string $string)
56 56
     {
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     /**
63 63
      * @param string $string
64 64
      * @throws RecordNotFoundException
65
-     * @return Record|null
65
+     * @return null|\yii\base\BaseObject
66 66
      */
67 67
     public function getByString(string $string)
68 68
     {
Please login to merge, or discard this patch.
src/services/traits/queries/BaseAccessor.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      *******************************************/
39 39
 
40 40
     /**
41
-     * @return int|null
41
+     * @return boolean
42 42
      */
43 43
     protected static function cacheDuration()
44 44
     {
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 
68 68
     /**
69 69
      * @param QueryInterface $query
70
-     * @return mixed|null
70
+     * @return null|\yii\base\BaseObject
71 71
      */
72 72
     public function findByQuery(QueryInterface $query)
73 73
     {
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 
77 77
     /**
78 78
      * @param QueryInterface $query
79
-     * @return mixed
79
+     * @return null|\yii\base\BaseObject
80 80
      * @throws NotFoundException
81 81
      */
82 82
     public function getByQuery(QueryInterface $query)
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 
124 124
     /**
125 125
      * @param QueryInterface $query
126
-     * @return mixed|null
126
+     * @return null|\yii\base\BaseObject
127 127
      */
128 128
     protected function queryOne(QueryInterface $query)
129 129
     {
Please login to merge, or discard this patch.
src/actions/element/traits/Manage.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 
11 11
 use craft\base\ElementInterface;
12 12
 use flipbox\ember\actions\traits\Manage as BaseManage;
13
-use yii\base\Model;
14 13
 
15 14
 /**
16 15
  * @author Flipbox Factory <[email protected]>
Please login to merge, or discard this patch.
src/db/traits/OrderBy.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
     /**
49 49
      * Applies the 'fixedOrder' and 'orderBy' params to the query being prepared.
50 50
      *
51
-     * @param Connection|null $db The database connection used to generate the SQL statement.
51
+     * @param Connection $db The database connection used to generate the SQL statement.
52 52
      * If this parameter is not given, the `db` application component will be used.
53 53
      */
54 54
     protected function applyOrderByParams(Connection $db)
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,6 @@
 block discarded – undo
8 8
 
9 9
 namespace flipbox\ember\db\traits;
10 10
 
11
-use craft\db\QueryAbortedException;
12
-use yii\base\Exception;
13 11
 use yii\db\Connection;
14 12
 use yii\db\Expression;
15 13
 
Please login to merge, or discard this patch.
src/db/traits/UserGroupAttribute.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,12 +8,12 @@
 block discarded – undo
8 8
 
9 9
 namespace flipbox\ember\db\traits;
10 10
 
11
-use craft\models\UserGroup;
12 11
 use craft\db\Query;
13 12
 use craft\helpers\Db;
13
+use craft\models\UserGroup;
14
+use craft\records\UserGroup as UserGroupRecord;
14 15
 use flipbox\ember\helpers\ArrayHelper;
15 16
 use flipbox\ember\helpers\QueryHelper;
16
-use craft\records\UserGroup as UserGroupRecord;
17 17
 
18 18
 /**
19 19
  * @author Flipbox Factory <[email protected]>
Please login to merge, or discard this patch.
src/services/traits/ElementAccessor.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@
 block discarded – undo
12 12
 use craft\base\ElementInterface;
13 13
 use craft\elements\db\ElementQuery;
14 14
 use craft\elements\db\ElementQueryInterface;
15
-use craft\helpers\ArrayHelper;
16 15
 use craft\errors\ElementNotFoundException;
16
+use craft\helpers\ArrayHelper;
17 17
 use flipbox\ember\helpers\ObjectHelper;
18 18
 use flipbox\ember\helpers\QueryHelper;
19 19
 use flipbox\ember\helpers\SiteHelper;
Please login to merge, or discard this patch.