Completed
Pull Request — master (#3)
by
unknown
03:50
created
src/ActiveRecord.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
      *
145 145
      * @throws InvalidConfigException
146 146
      *
147
-     * @return string|callable|array
147
+     * @return string
148 148
      *
149 149
      * @author SilverFire
150 150
      */
@@ -469,7 +469,7 @@  discard block
 block discarded – undo
469 469
 
470 470
     /**
471 471
      * {@inheritdoc}
472
-     * @return ActiveQuery the relational query object.
472
+     * @return \yii\db\ActiveQuery the relational query object.
473 473
      */
474 474
     public function hasOne($class, $link)
475 475
     {
@@ -478,7 +478,7 @@  discard block
 block discarded – undo
478 478
 
479 479
     /**
480 480
      * {@inheritdoc}
481
-     * @return ActiveQuery the relational query object.
481
+     * @return \yii\db\ActiveQuery the relational query object.
482 482
      */
483 483
     public function hasMany($class, $link)
484 484
     {
Please login to merge, or discard this patch.
src/Command.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,6 +76,9 @@  discard block
 block discarded – undo
76 76
         }
77 77
     }
78 78
 
79
+    /**
80
+     * @param string $modelName
81
+     */
79 82
     public function get($modelName, $primaryKey, $options)
80 83
     {
81 84
         return $this->db->post($modelName . 'GetInfo', ArrayHelper::merge(['id' => $primaryKey], $options));
@@ -106,7 +109,7 @@  discard block
 block discarded – undo
106 109
     }
107 110
 
108 111
     /**
109
-     * @param $action
112
+     * @param string $action
110 113
      * @param array $options
111 114
      *
112 115
      * @return mixed
Please login to merge, or discard this patch.
src/Connection.php 1 patch
Doc Comments   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -217,6 +217,7 @@  discard block
 block discarded – undo
217 217
      * @param array  $options URL options
218 218
      * @param string $body    request body
219 219
      * @param bool   $raw     if response body contains JSON and should be decoded
220
+     * @param string $method
220 221
      * @throws HiArtException
221 222
      * @throws \yii\base\InvalidConfigException
222 223
      * @return mixed response
@@ -229,9 +230,9 @@  discard block
 block discarded – undo
229 230
     }
230 231
     /**
231 232
      * Creates URL.
232
-     * @param mixed $path path
233
+     * @param string $path path
233 234
      * @param array $options URL options
234
-     * @return array
235
+     * @return string
235 236
      */
236 237
     private function createUrl($path, array $options = [])
237 238
     {
@@ -390,7 +391,7 @@  discard block
 block discarded – undo
390 391
 
391 392
     /**
392 393
      * Try to decode error information if it is valid json, return it if not.
393
-     * @param $body
394
+     * @param string $body
394 395
      * @return mixed
395 396
      */
396 397
     protected function decodeErrorBody($body)
Please login to merge, or discard this patch.
src/QueryBuilder.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -27,6 +27,9 @@  discard block
 block discarded – undo
27 27
 
28 28
     public $db;
29 29
 
30
+    /**
31
+     * @param Connection $connection
32
+     */
30 33
     public function __construct($connection, $config = [])
31 34
     {
32 35
         $this->db = $connection;
@@ -59,6 +62,9 @@  discard block
 block discarded – undo
59 62
         ];
60 63
     }
61 64
 
65
+    /**
66
+     * @param integer $limit
67
+     */
62 68
     public function buildLimit($limit, &$parts)
63 69
     {
64 70
         if (!empty($limit)) {
@@ -69,6 +75,10 @@  discard block
 block discarded – undo
69 75
         }
70 76
     }
71 77
 
78
+    /**
79
+     * @param integer $offset
80
+     * @param integer $limit
81
+     */
72 82
     public function buildPage($offset, $limit, &$parts)
73 83
     {
74 84
         if ($offset > 0) {
Please login to merge, or discard this patch.