Completed
Branch master (d2c6e4)
by Vuong
13:07
created
src/expression/ConditionBuilder.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
     use ExpressionBuilderTrait;
24 24
 
25 25
     /**
26
-     * @param ExpressionInterface|ConditionExpression $expression
26
+     * @param ExpressionInterface $expression
27 27
      * @inheritDoc
28 28
      */
29 29
     public function build(ExpressionInterface $expression, array &$params = [])
Please login to merge, or discard this patch.
src/queue/Job.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
      * Solve models job.
57 57
      *
58
-     * @param array|\yii\db\ActiveRecord[] $models need to be execute searchable index job.
58
+     * @param \yii\db\BaseActiveRecord[] $models need to be execute searchable index job.
59 59
      */
60 60
     abstract protected function resolve(array $models): void;
61 61
 }
Please login to merge, or discard this patch.
src/Searchable.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -284,7 +284,7 @@
 block discarded – undo
284 284
      *
285 285
      * @param Connection|null $db use to get database info.
286 286
      * @param array $config of [[\vxm\searchable\TNTSearch]].
287
-     * @return object|TNTSearch
287
+     * @return TNTSearch
288 288
      * @throws \yii\base\InvalidConfigException
289 289
      */
290 290
     public function createTNTSearch(?Connection $db = null, array $config = []): TNTSearch
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -8,12 +8,10 @@
 block discarded – undo
8 8
 namespace vxm\searchable;
9 9
 
10 10
 use Yii;
11
-
12 11
 use yii\base\Component;
13 12
 use yii\db\Connection;
14 13
 use yii\di\Instance;
15 14
 use yii\queue\Queue;
16
-
17 15
 use vxm\searchable\queue\DeleteSearchable;
18 16
 use vxm\searchable\queue\MakeSearchable;
19 17
 
Please login to merge, or discard this patch.
src/SearchableTrait.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
     /**
60 60
      * Get searchable support full-text search for this model class.
61 61
      *
62
-     * @return object|Searchable
62
+     * @return Searchable
63 63
      * @throws \yii\base\InvalidConfigException
64 64
      */
65 65
     public static function getSearchable(): Searchable
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -8,10 +8,8 @@
 block discarded – undo
8 8
 namespace vxm\searchable;
9 9
 
10 10
 use Yii;
11
-
12 11
 use yii\db\ActiveQueryInterface;
13 12
 use yii\db\Exception;
14
-
15 13
 use vxm\searchable\expression\Condition;
16 14
 use vxm\searchable\expression\ConditionBuilder;
17 15
 use vxm\searchable\expression\OrderBy;
Please login to merge, or discard this patch.