@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | |
159 | 159 | /** |
160 | 160 | * Users relation |
161 | - * @return mixed |
|
161 | + * @return \yii\db\ActiveQuery |
|
162 | 162 | */ |
163 | 163 | public function getUsers() |
164 | 164 | { |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | |
232 | 232 | /** |
233 | 233 | * Set status |
234 | - * @param $status |
|
234 | + * @param string $status |
|
235 | 235 | * @return bool |
236 | 236 | */ |
237 | 237 | public function setStatus($status) |
@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace app\backgroundtasks\traits; |
4 | 4 | |
5 | -use app\modules\page\models\Page; |
|
5 | +use Yii; |
|
6 | 6 | use app\models\SubscribeEmail; |
7 | +use app\modules\page\models\Page; |
|
7 | 8 | use app\properties\HasProperties; |
8 | -use Yii; |
|
9 | 9 | |
10 | 10 | trait NewsletterSenderTrait |
11 | 11 | { |
@@ -109,6 +109,10 @@ |
||
109 | 109 | } |
110 | 110 | |
111 | 111 | |
112 | + /** |
|
113 | + * @param string|boolean $path |
|
114 | + * @param string $themeName |
|
115 | + */ |
|
112 | 116 | protected function createStructure($path, $children, $themeName) |
113 | 117 | { |
114 | 118 | foreach ($children as $child) { |
@@ -3,11 +3,11 @@ |
||
3 | 3 | namespace app\commands; |
4 | 4 | |
5 | 5 | use Imagine\Image\ManipulatorInterface; |
6 | -use app\backend\actions\FlushCacheConsoleAction; |
|
7 | 6 | use Yii; |
8 | -use yii\console\Controller; |
|
9 | 7 | use app; |
8 | +use app\backend\actions\FlushCacheConsoleAction; |
|
10 | 9 | use app\modules\image\models\Image; |
10 | +use yii\console\Controller; |
|
11 | 11 | |
12 | 12 | /** |
13 | 13 | * Admin commands |
@@ -2,12 +2,12 @@ |
||
2 | 2 | |
3 | 3 | namespace app\widgets\navigation\models; |
4 | 4 | |
5 | +use Yii; |
|
5 | 6 | use app\backgroundtasks\traits\SearchModelTrait; |
6 | 7 | use app\behaviors\Tree; |
7 | 8 | use app\properties\HasProperties; |
8 | 9 | use app\traits\FindById; |
9 | 10 | use app\traits\GetImages; |
10 | -use Yii; |
|
11 | 11 | use yii\data\ActiveDataProvider; |
12 | 12 | |
13 | 13 | /** |
@@ -3,11 +3,8 @@ |
||
3 | 3 | namespace app\components\payment; |
4 | 4 | |
5 | 5 | use app\modules\shop\models\Currency; |
6 | -use app\modules\shop\models\Order; |
|
7 | 6 | use app\modules\shop\models\OrderItem; |
8 | 7 | use app\modules\shop\models\OrderTransaction; |
9 | -use yii\helpers\Json; |
|
10 | -use yii\helpers\Url; |
|
11 | 8 | use yii\web\BadRequestHttpException; |
12 | 9 | use yii\web\HttpException; |
13 | 10 | use yii\web\Response; |
@@ -103,9 +103,9 @@ discard block |
||
103 | 103 | } |
104 | 104 | |
105 | 105 | /** |
106 | - * @param $strScriptName |
|
106 | + * @param string $strScriptName |
|
107 | 107 | * @param array $arrParams |
108 | - * @param $strSecretKey |
|
108 | + * @param string $strSecretKey |
|
109 | 109 | * @return string |
110 | 110 | */ |
111 | 111 | private static function makeSigStr($strScriptName, array $arrParams, $strSecretKey) |
@@ -203,8 +203,9 @@ discard block |
||
203 | 203 | /** |
204 | 204 | * make the signature for XML |
205 | 205 | * |
206 | - * @param string|SimpleXMLElement $xml |
|
206 | + * @param SimpleXMLElement $xml |
|
207 | 207 | * @param string $strSecretKey |
208 | + * @param string $strScriptName |
|
208 | 209 | * @return string |
209 | 210 | */ |
210 | 211 | public static function makeXML($strScriptName, $xml, $strSecretKey) |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace app\components\payment; |
3 | 3 | |
4 | -use app\modules\shop\models\OrderTransaction; |
|
5 | 4 | use SimpleXMLElement; |
6 | 5 | use Yii; |
6 | +use app\modules\shop\models\OrderTransaction; |
|
7 | 7 | use yii\helpers\ArrayHelper; |
8 | 8 | use yii\helpers\Json; |
9 | 9 | use yii\web\HttpException; |
@@ -36,6 +36,9 @@ discard block |
||
36 | 36 | $this->elements[$cacheStackId][$elementType][] = $arguments; |
37 | 37 | } |
38 | 38 | |
39 | + /** |
|
40 | + * @param string $elementType |
|
41 | + */ |
|
39 | 42 | public function gather($elementType, $arguments) |
40 | 43 | { |
41 | 44 | if ($this->currentStackId===null) { |
@@ -45,6 +48,9 @@ discard block |
||
45 | 48 | $this->gatherToStack($this->currentStackId, $elementType, $arguments); |
46 | 49 | } |
47 | 50 | |
51 | + /** |
|
52 | + * @param string $cacheStackId |
|
53 | + */ |
|
48 | 54 | public function startGathering($cacheStackId, $dependency = null) |
49 | 55 | { |
50 | 56 | $this->currentStackId = $cacheStackId; |
@@ -89,6 +95,9 @@ discard block |
||
89 | 95 | } |
90 | 96 | } |
91 | 97 | |
98 | + /** |
|
99 | + * @param string $cacheStackId |
|
100 | + */ |
|
92 | 101 | public function getCachedData($cacheStackId) |
93 | 102 | { |
94 | 103 | Yii::trace('Get cached data: ' . $cacheStackId); |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | |
76 | 76 | /** |
77 | 77 | * Relation to ThemeWidgets |
78 | - * @return ThemeWidgets |
|
78 | + * @return \yii\db\ActiveQuery |
|
79 | 79 | */ |
80 | 80 | public function getWidget() |
81 | 81 | { |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | |
85 | 85 | /** |
86 | 86 | * Relation to ThemeWidgets |
87 | - * @return ThemeWidgets |
|
87 | + * @return \yii\db\ActiveQuery |
|
88 | 88 | */ |
89 | 89 | public function getPart() |
90 | 90 | { |
@@ -2,12 +2,12 @@ |
||
2 | 2 | |
3 | 3 | namespace app\widgets\navigation\models; |
4 | 4 | |
5 | +use Yii; |
|
5 | 6 | use app\backgroundtasks\traits\SearchModelTrait; |
6 | 7 | use app\behaviors\Tree; |
7 | 8 | use app\properties\HasProperties; |
8 | 9 | use app\traits\FindById; |
9 | 10 | use app\traits\GetImages; |
10 | -use Yii; |
|
11 | 11 | use yii\data\ActiveDataProvider; |
12 | 12 | |
13 | 13 | /** |
@@ -122,7 +122,7 @@ |
||
122 | 122 | * |
123 | 123 | * @todo rewrite all json_decode calls in that manner |
124 | 124 | * |
125 | - * @param null $json |
|
125 | + * @param string $json |
|
126 | 126 | * @return null|string |
127 | 127 | */ |
128 | 128 | private static function _php7JsonPatch($json = null) |
@@ -2,15 +2,15 @@ |
||
2 | 2 | |
3 | 3 | namespace app\extensions\DefaultTheme\models; |
4 | 4 | |
5 | +use Yii; |
|
5 | 6 | use app\components\ViewElementsGathener; |
6 | 7 | use app\extensions\DefaultTheme\components\BaseWidget; |
7 | 8 | use app\traits\IdentityMap; |
8 | -use Yii; |
|
9 | 9 | use yii\base\InvalidConfigException; |
10 | 10 | use yii\caching\TagDependency; |
11 | 11 | use \devgroup\TagDependencyHelper\ActiveRecordHelper; |
12 | -use yii\helpers\ArrayHelper; |
|
13 | 12 | use yii\data\ActiveDataProvider; |
13 | +use yii\helpers\ArrayHelper; |
|
14 | 14 | use yii\helpers\Json; |
15 | 15 | |
16 | 16 | /** |