Completed
Push — master ( ab1e03...083a59 )
by Kirill
13s
created
src/models/SimpleOffer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -225,7 +225,7 @@
 block discarded – undo
225 225
     /**
226 226
      * Добавляет теги ддля опций доставки
227 227
      *
228
-     * @param $string
228
+     * @param string $string
229 229
      *
230 230
      * @throws Exception
231 231
      */
Please login to merge, or discard this patch.
src/models/BaseModel.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
 
70 70
     /**
71 71
      * @param $valuesModel
72
-     * @param null $onValidationError
72
+     * @param null|callable $onValidationError
73 73
      *
74 74
      * @return bool
75 75
      * @throws Exception
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 namespace pastuhov\ymlcatalog\models;
3 3
 
4 4
 use pastuhov\ymlcatalog\EscapedAttributes;
5
-use yii\base\Model;
6 5
 use yii\base\Exception;
6
+use yii\base\Model;
7 7
 
8 8
 /**
9 9
  * Base model.
Please login to merge, or discard this patch.
src/YmlCatalog.php 2 patches
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace pastuhov\ymlcatalog;
3 3
 
4
+use Yii;
5
+use pastuhov\FileStream\BaseFileStream;
4 6
 use pastuhov\ymlcatalog\models\BaseModel;
5 7
 use pastuhov\ymlcatalog\models\Category;
6 8
 use pastuhov\ymlcatalog\models\Currency;
9
+use pastuhov\ymlcatalog\models\DeliveryOption;
7 10
 use pastuhov\ymlcatalog\models\LocalDeliveryCost;
8 11
 use pastuhov\ymlcatalog\models\Shop;
9 12
 use pastuhov\ymlcatalog\models\SimpleOffer;
10
-use pastuhov\ymlcatalog\models\DeliveryOption;
11
-use Yii;
12
-use pastuhov\FileStream\BaseFileStream;
13 13
 use yii\base\Exception;
14 14
 use yii\data\ActiveDataProvider;
15 15
 use yii\db\ActiveQuery;
Please login to merge, or discard this patch.
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,11 +76,12 @@  discard block
 block discarded – undo
76 76
      * @param string $currencyClass class name
77 77
      * @param string $categoryClass class name
78 78
      * @param string $localDeliveryCostClass class name
79
-     * @param array $offerClasses
79
+     * @param string[] $offerClasses
80 80
      * @param null|string $date
81 81
      * @param null|callable $onValidationError
82 82
      * @param null|string $customOfferClass
83 83
      * @param null|string $customCategoryClass
84
+     * @param string $deliveryOptionClass
84 85
      */
85 86
     public function __construct(
86 87
         BaseFileStream $handle,
@@ -259,7 +260,7 @@  discard block
 block discarded – undo
259 260
     }
260 261
 
261 262
     /**
262
-     * @param $modelClass
263
+     * @param BaseFindYmlInterface $modelClass
263 264
      * @return Category|Currency|SimpleOffer
264 265
      * @throws Exception
265 266
      */
Please login to merge, or discard this patch.