@@ -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 |
@@ -112,7 +112,7 @@ |
||
112 | 112 | /** |
113 | 113 | * Return count of new notifications |
114 | 114 | * @param $current |
115 | - * @return mixed |
|
115 | + * @return boolean|string |
|
116 | 116 | */ |
117 | 117 | public function actionOnlyNewNotifications($current) |
118 | 118 | { |
@@ -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 | /** |
@@ -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 | { |
@@ -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,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; |