@@ -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,14 +2,14 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace bedezign\yii2\audit\panels; |
| 4 | 4 | |
| 5 | -use bedezign\yii2\audit\Audit; |
|
| 6 | -use bedezign\yii2\audit\components\panels\Panel; |
|
| 7 | -use bedezign\yii2\audit\models\AuditMail; |
|
| 8 | -use bedezign\yii2\audit\models\AuditMailSearch; |
|
| 9 | 5 | use Swift_Message; |
| 10 | 6 | use Swift_Mime_Attachment; |
| 11 | 7 | use Swift_Mime_MimePart; |
| 12 | 8 | use Yii; |
| 9 | +use bedezign\yii2\audit\Audit; |
|
| 10 | +use bedezign\yii2\audit\components\panels\Panel; |
|
| 11 | +use bedezign\yii2\audit\models\AuditMail; |
|
| 12 | +use bedezign\yii2\audit\models\AuditMailSearch; |
|
| 13 | 13 | use yii\base\Event; |
| 14 | 14 | use yii\grid\GridViewAsset; |
| 15 | 15 | 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 | |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /* @var $panel bedezign\yii2\audit\panels\SoapPanel */ |
| 3 | 3 | |
| 4 | -use yii\bootstrap\Tabs; |
|
| 5 | -use yii\helpers\Html; |
|
| 6 | 4 | use bedezign\yii2\audit\components\Helper; |
| 5 | +use yii\bootstrap\Tabs; |
|
| 7 | 6 | use yii\helpers\ArrayHelper; |
| 7 | +use yii\helpers\Html; |
|
| 8 | 8 | use yii\helpers\VarDumper; |
| 9 | 9 | |
| 10 | 10 | $preformatted = ['class' => 'well', 'style' => 'overflow: auto; white-space: pre']; |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | use yii\helpers\Html; |
| 4 | 4 | use yii\helpers\VarDumper; |
| 5 | -use yii\helpers\Url; |
|
| 6 | 5 | |
| 7 | 6 | |
| 8 | 7 | |
@@ -373,12 +373,12 @@ |
||
| 373 | 373 | |
| 374 | 374 | // We now need one more iteration to add core classes to the panels added via the merge, if needed |
| 375 | 375 | array_walk($this->panels, function(&$value, $key) { |
| 376 | - if (!isset($value['class'])) { |
|
| 377 | - if (isset($this->_corePanels[$key])) |
|
| 378 | - $value = ArrayHelper::merge($value, $this->_corePanels[$key]); |
|
| 379 | - else |
|
| 380 | - throw new InvalidConfigException("Invalid configuration for '$key'. No 'class' specified."); |
|
| 381 | - } |
|
| 376 | + if (!isset($value['class'])) { |
|
| 377 | + if (isset($this->_corePanels[$key])) |
|
| 378 | + $value = ArrayHelper::merge($value, $this->_corePanels[$key]); |
|
| 379 | + else |
|
| 380 | + throw new InvalidConfigException("Invalid configuration for '$key'. No 'class' specified."); |
|
| 381 | + } |
|
| 382 | 382 | }); |
| 383 | 383 | } |
| 384 | 384 | |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | // and the '.svn' will match all files and directories named exactly '.svn'. |
| 27 | 27 | // Note, the '/' characters in a pattern matches both '/' and '\'. |
| 28 | 28 | // See helpers/FileHelper::findFiles() description for more details on pattern matching rules. |
| 29 | - 'only' => ['*.php', '*.js'], |
|
| 29 | + 'only' => ['*.php', '*.js'], |
|
| 30 | 30 | // array, list of patterns that specify which files (not directories) should be processed. |
| 31 | 31 | // If empty or not set, all files will be processed. |
| 32 | 32 | // Please refer to "except" for details about the patterns. |
@@ -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 | |