@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace app\backend\actions; |
4 | 4 | |
5 | -use yii\web\Application; |
|
6 | 5 | use Yii; |
6 | +use yii\web\Application; |
|
7 | 7 | |
8 | 8 | class FlushCacheConsoleAction extends FlushCacheAction |
9 | 9 | { |
@@ -2,13 +2,13 @@ |
||
2 | 2 | |
3 | 3 | namespace app\backgroundtasks\controllers; |
4 | 4 | |
5 | -use app\backgroundtasks\models\Task; |
|
6 | 5 | use Yii; |
6 | +use app\backgroundtasks\models\Task; |
|
7 | 7 | use yii\filters\AccessControl; |
8 | 8 | use yii\filters\VerbFilter; |
9 | +use yii\helpers\Url; |
|
9 | 10 | use yii\web\Controller; |
10 | 11 | use yii\web\NotFoundHttpException; |
11 | -use yii\helpers\Url; |
|
12 | 12 | |
13 | 13 | /** |
14 | 14 | * Class ManageController |
@@ -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,12 +2,12 @@ |
||
2 | 2 | |
3 | 3 | namespace app\behaviors; |
4 | 4 | |
5 | -use app\modules\shop\models\Category; |
|
6 | 5 | use Yii; |
7 | -use yii\helpers\ArrayHelper; |
|
6 | +use app\modules\shop\models\Category; |
|
8 | 7 | use yii\base\Behavior; |
9 | 8 | use yii\caching\TagDependency; |
10 | 9 | use yii\db\ActiveRecord; |
10 | +use yii\helpers\ArrayHelper; |
|
11 | 11 | |
12 | 12 | /** |
13 | 13 | * Class Tree |
@@ -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,13 +2,13 @@ |
||
2 | 2 | |
3 | 3 | namespace app\components\swap\provider; |
4 | 4 | |
5 | -use app\modules\shop\models\CurrencyRateProvider; |
|
6 | 5 | use Ivory\HttpAdapter\HttpAdapterInterface; |
7 | 6 | use Swap\Exception\Exception; |
8 | 7 | use Swap\Model\CurrencyPair; |
9 | 8 | use Swap\Model\Rate; |
10 | 9 | use Swap\Provider\AbstractProvider; |
11 | 10 | use Swap\Swap; |
11 | +use app\modules\shop\models\CurrencyRateProvider; |
|
12 | 12 | |
13 | 13 | /** |
14 | 14 | * Class MultiProvider |
@@ -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,9 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace app\extensions\DefaultTheme\models; |
4 | 4 | |
5 | +use Yii; |
|
5 | 6 | use app\traits\IdentityMap; |
6 | 7 | use app\traits\SortModels; |
7 | -use Yii; |
|
8 | 8 | use \devgroup\TagDependencyHelper\ActiveRecordHelper; |
9 | 9 | use yii\caching\TagDependency; |
10 | 10 | use yii\helpers\ArrayHelper; |
@@ -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 | /** |