@@ -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; |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | $defaults = []; |
| 38 | 38 | $startDate = strtotime('-6 days'); |
| 39 | 39 | foreach (range(-6, 0) as $day) { |
| 40 | - $defaults[date('D: Y-m-d', strtotime($day . 'days'))] = 0; |
|
| 40 | + $defaults[date('D: Y-m-d', strtotime($day.'days'))] = 0; |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | $panelModel = $this->getChartModel(); |