@@ -82,7 +82,7 @@ |
||
82 | 82 | * @param $id |
83 | 83 | * @param $attribute |
84 | 84 | * @param $version |
85 | - * @return null|integer|float|string |
|
85 | + * @return string|null |
|
86 | 86 | */ |
87 | 87 | public static function findAttribute($class, $id, $attribute, $version) |
88 | 88 | { |
@@ -8,8 +8,8 @@ |
||
8 | 8 | |
9 | 9 | use Yii; |
10 | 10 | use bedezign\yii2\audit\components\panels\DataStoragePanel; |
11 | -use yii\grid\GridViewAsset; |
|
12 | 11 | use yii\data\ArrayDataProvider; |
12 | +use yii\grid\GridViewAsset; |
|
13 | 13 | |
14 | 14 | /** |
15 | 15 | * Class CurlPanel |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace bedezign\yii2\audit\panels; |
4 | 4 | |
5 | -use bedezign\yii2\audit\components\panels\DataStoragePanelTrait; |
|
6 | 5 | use Yii; |
6 | +use bedezign\yii2\audit\components\panels\DataStoragePanelTrait; |
|
7 | 7 | use yii\debug\models\search\Db; |
8 | 8 | use yii\grid\GridViewAsset; |
9 | 9 |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace bedezign\yii2\audit\panels; |
4 | 4 | |
5 | -use bedezign\yii2\audit\components\panels\DataStoragePanelTrait; |
|
6 | 5 | use Yii; |
6 | +use bedezign\yii2\audit\components\panels\DataStoragePanelTrait; |
|
7 | 7 | use yii\debug\models\search\Log; |
8 | 8 | use yii\grid\GridViewAsset; |
9 | 9 |
@@ -36,7 +36,7 @@ |
||
36 | 36 | |
37 | 37 | /** |
38 | 38 | * @param Event $event |
39 | - * @return null|static |
|
39 | + * @return AuditMail|null |
|
40 | 40 | */ |
41 | 41 | public function record($event) |
42 | 42 | { |
@@ -2,15 +2,15 @@ |
||
2 | 2 | |
3 | 3 | namespace bedezign\yii2\audit\panels; |
4 | 4 | |
5 | +use Swift_Message; |
|
6 | +use Swift_Mime_Attachment; |
|
7 | +use Swift_Mime_MimePart; |
|
8 | +use Yii; |
|
5 | 9 | use bedezign\yii2\audit\Audit; |
6 | 10 | use bedezign\yii2\audit\components\panels\Panel; |
7 | 11 | use bedezign\yii2\audit\components\panels\RendersSummaryChartTrait; |
8 | 12 | use bedezign\yii2\audit\models\AuditMail; |
9 | 13 | use bedezign\yii2\audit\models\AuditMailSearch; |
10 | -use Swift_Message; |
|
11 | -use Swift_Mime_Attachment; |
|
12 | -use Swift_Mime_MimePart; |
|
13 | -use Yii; |
|
14 | 14 | use yii\base\Event; |
15 | 15 | use yii\grid\GridViewAsset; |
16 | 16 | use yii\mail\BaseMailer; |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace bedezign\yii2\audit\panels; |
4 | 4 | |
5 | -use bedezign\yii2\audit\components\panels\DataStoragePanelTrait; |
|
6 | 5 | use Yii; |
6 | +use bedezign\yii2\audit\components\panels\DataStoragePanelTrait; |
|
7 | 7 | use yii\debug\models\search\Profile; |
8 | 8 | use yii\grid\GridViewAsset; |
9 | 9 |
@@ -2,7 +2,6 @@ |
||
2 | 2 | namespace bedezign\yii2\audit\panels; |
3 | 3 | |
4 | 4 | use Yii; |
5 | -use bedezign\yii2\audit\models\AuditError; |
|
6 | 5 | use bedezign\yii2\audit\components\panels\DataStoragePanel; |
7 | 6 | use yii\data\ArrayDataProvider; |
8 | 7 |
@@ -3,7 +3,6 @@ |
||
3 | 3 | /** @var View $this */ |
4 | 4 | /** @var AuditMail $model */ |
5 | 5 | |
6 | -use bedezign\yii2\audit\components\Helper; |
|
7 | 6 | use bedezign\yii2\audit\models\AuditMail; |
8 | 7 | use yii\helpers\Html; |
9 | 8 | use yii\helpers\Url; |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | /** |
133 | 133 | * Cleans the AuditEntry data |
134 | 134 | * |
135 | - * @param $maxAge |
|
135 | + * @param integer|null $maxAge |
|
136 | 136 | * @return bool |
137 | 137 | */ |
138 | 138 | protected function cleanupEntry($maxAge) |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | * Cleans the Panel data |
161 | 161 | * |
162 | 162 | * @param $id |
163 | - * @param $maxAge |
|
163 | + * @param integer|null $maxAge |
|
164 | 164 | * @return bool |
165 | 165 | */ |
166 | 166 | protected function cleanupPanel($id, $maxAge) |
@@ -2,11 +2,11 @@ |
||
2 | 2 | |
3 | 3 | namespace bedezign\yii2\audit\commands; |
4 | 4 | |
5 | +use Yii; |
|
5 | 6 | use bedezign\yii2\audit\Audit; |
6 | 7 | use bedezign\yii2\audit\components\panels\Panel; |
7 | 8 | use bedezign\yii2\audit\models\AuditEntry; |
8 | 9 | use bedezign\yii2\audit\models\AuditError; |
9 | -use Yii; |
|
10 | 10 | use yii\base\Exception; |
11 | 11 | use yii\console\Controller; |
12 | 12 | use yii\console\ExitCode; |