@@ -11,6 +11,9 @@ |
||
11 | 11 | |
12 | 12 | trait DynamicContentTrait |
13 | 13 | { |
14 | + /** |
|
15 | + * @param string $route |
|
16 | + */ |
|
14 | 17 | public function loadDynamicContent($object_id, $route, $selections) |
15 | 18 | { |
16 | 19 | /** @var \app\components\Response $response */ |
@@ -2,11 +2,11 @@ |
||
2 | 2 | |
3 | 3 | namespace app\traits; |
4 | 4 | |
5 | +use Yii; |
|
5 | 6 | use app\models\BaseObject; |
6 | 7 | use app\models\DynamicContent; |
7 | 8 | use app\modules\core\helpers\ContentBlockHelper; |
8 | 9 | use devgroup\TagDependencyHelper\ActiveRecordHelper; |
9 | -use Yii; |
|
10 | 10 | use yii\caching\TagDependency; |
11 | 11 | use yii\helpers\Json; |
12 | 12 |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace app\traits; |
4 | 4 | |
5 | -use devgroup\TagDependencyHelper\ActiveRecordHelper; |
|
6 | 5 | use Yii; |
6 | +use devgroup\TagDependencyHelper\ActiveRecordHelper; |
|
7 | 7 | use yii\caching\TagDependency; |
8 | 8 | use yii\db\ActiveRecord; |
9 | 9 | use yii\web\NotFoundHttpException; |
@@ -11,7 +11,7 @@ |
||
11 | 11 | trait LoadModel |
12 | 12 | { |
13 | 13 | /** |
14 | - * @param $modelName |
|
14 | + * @param string $modelName |
|
15 | 15 | * @param $id |
16 | 16 | * @param bool $createIfEmptyId |
17 | 17 | * @param bool $useCache |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace app\widgets; |
4 | 4 | |
5 | -use app\modules\image\models\Image; |
|
6 | 5 | use Yii; |
6 | +use app\modules\image\models\Image; |
|
7 | 7 | use yii\base\Widget; |
8 | 8 | |
9 | 9 | class ImgSearch extends Widget |
@@ -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 | /** |
@@ -2,14 +2,14 @@ |
||
2 | 2 | |
3 | 3 | namespace app\widgets\navigation; |
4 | 4 | |
5 | -use app\widgets\navigation\models\Navigation; |
|
6 | 5 | use Yii; |
6 | +use app\components\Menu; |
|
7 | +use app\widgets\navigation\models\Navigation; |
|
7 | 8 | use yii\base\Widget; |
8 | 9 | use yii\caching\TagDependency; |
9 | 10 | use yii\helpers\ArrayHelper; |
10 | 11 | use yii\helpers\Html; |
11 | 12 | use yii\helpers\Json; |
12 | -use app\components\Menu; |
|
13 | 13 | |
14 | 14 | class NavigationWidget extends Widget |
15 | 15 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace app\widgets\options; |
4 | 4 | |
5 | 5 | use app\models\Property; |
6 | -use Yii; |
|
7 | 6 | use yii\base\Widget; |
8 | 7 | use yii\helpers\ArrayHelper; |
9 | 8 | use yii\helpers\Json; |
@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace app\backend\widgets; |
4 | 4 | |
5 | +use kartik\icons\Icon; |
|
5 | 6 | use yii\base\InvalidParamException; |
6 | 7 | use yii\base\Widget; |
7 | 8 | use yii\helpers\Html; |
8 | -use kartik\icons\Icon; |
|
9 | 9 | |
10 | 10 | class RemoveAllButton extends Widget |
11 | 11 | { |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace app\components; |
3 | 3 | |
4 | -use yii\base\Application; |
|
5 | -use yii\base\Module; |
|
6 | 4 | use app\backend\BackendModule; |
7 | 5 | use app\backend\components\BackendController; |
6 | +use yii\base\Application; |
|
7 | +use yii\base\Module; |
|
8 | 8 | |
9 | 9 | /** |
10 | 10 | * BaseModule is the base module for core DotPlant2 modules. |
@@ -1,13 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | namespace app\components\payment; |
3 | 3 | |
4 | -use app\modules\shop\helpers\CurrencyHelper; |
|
5 | -use app\modules\shop\helpers\PriceHelper; |
|
6 | -use app\modules\shop\models\Currency; |
|
7 | -use app\modules\shop\models\Order; |
|
8 | -use app\modules\shop\models\OrderItem; |
|
9 | -use app\modules\shop\models\OrderTransaction; |
|
10 | -use app\modules\shop\models\Product; |
|
11 | 4 | use PayPal\Api\Amount; |
12 | 5 | use PayPal\Api\Details; |
13 | 6 | use PayPal\Api\Item; |
@@ -19,6 +12,12 @@ discard block |
||
19 | 12 | use PayPal\Api\Transaction; |
20 | 13 | use PayPal\Auth\OAuthTokenCredential; |
21 | 14 | use PayPal\Rest\ApiContext; |
15 | +use app\modules\shop\helpers\CurrencyHelper; |
|
16 | +use app\modules\shop\models\Currency; |
|
17 | +use app\modules\shop\models\Order; |
|
18 | +use app\modules\shop\models\OrderItem; |
|
19 | +use app\modules\shop\models\OrderTransaction; |
|
20 | +use app\modules\shop\models\Product; |
|
22 | 21 | use yii\helpers\Url; |
23 | 22 | use yii\web\BadRequestHttpException; |
24 | 23 |