@@ -58,6 +58,6 @@ |
||
| 58 | 58 | if (!$model) { |
| 59 | 59 | throw new NotFoundHttpException('The requested mail does not exist.'); |
| 60 | 60 | } |
| 61 | - Yii::$app->response->sendContentAsFile(Helper::uncompress($model->data), $model->id . '.eml'); |
|
| 61 | + Yii::$app->response->sendContentAsFile(Helper::uncompress($model->data), $model->id.'.eml'); |
|
| 62 | 62 | } |
| 63 | 63 | } |
@@ -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,7 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | return [ |
| 4 | 4 | // string, required, root directory of all source files |
| 5 | - 'sourcePath' => __DIR__ . '/..', |
|
| 5 | + 'sourcePath' => __DIR__.'/..', |
|
| 6 | 6 | // array, required, list of language codes that the extracted messages |
| 7 | 7 | // should be translated to. For example, ['zh-CN', 'de']. |
| 8 | 8 | 'languages' => ['en', 'nl'], |
@@ -1,21 +1,21 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Message translations. |
|
| 4 | - * |
|
| 5 | - * This file is automatically generated by 'yii message' command. |
|
| 6 | - * It contains the localizable messages extracted from source code. |
|
| 7 | - * You may modify this file by translating the extracted messages. |
|
| 8 | - * |
|
| 9 | - * Each array element represents the translation (value) of a message (key). |
|
| 10 | - * If the value is empty, the message is considered as not translated. |
|
| 11 | - * Messages that no longer need translation will have their translations |
|
| 12 | - * enclosed between a pair of '@@' marks. |
|
| 13 | - * |
|
| 14 | - * Message string can be used with plural forms format. Check i18n section |
|
| 15 | - * of the guide for details. |
|
| 16 | - * |
|
| 17 | - * NOTE: this file must be saved in UTF-8 encoding. |
|
| 18 | - */ |
|
| 3 | + * Message translations. |
|
| 4 | + * |
|
| 5 | + * This file is automatically generated by 'yii message' command. |
|
| 6 | + * It contains the localizable messages extracted from source code. |
|
| 7 | + * You may modify this file by translating the extracted messages. |
|
| 8 | + * |
|
| 9 | + * Each array element represents the translation (value) of a message (key). |
|
| 10 | + * If the value is empty, the message is considered as not translated. |
|
| 11 | + * Messages that no longer need translation will have their translations |
|
| 12 | + * enclosed between a pair of '@@' marks. |
|
| 13 | + * |
|
| 14 | + * Message string can be used with plural forms format. Check i18n section |
|
| 15 | + * of the guide for details. |
|
| 16 | + * |
|
| 17 | + * NOTE: this file must be saved in UTF-8 encoding. |
|
| 18 | + */ |
|
| 19 | 19 | return [ |
| 20 | 20 | '<b>{message}</b><br />in <i>{file}</i> on line <i>{line}</i>.<br/>-- {link}' => '', |
| 21 | 21 | 'Args' => '', |
@@ -15,19 +15,19 @@ |
||
| 15 | 15 | |
| 16 | 16 | $this->createTable(self::TABLE, [ |
| 17 | 17 | 'id' => Schema::TYPE_PK, |
| 18 | - 'created' => Schema::TYPE_DATETIME . ' NOT NULL', |
|
| 19 | - 'start_time' => Schema::TYPE_FLOAT . ' NULL', |
|
| 20 | - 'end_time' => Schema::TYPE_FLOAT . ' NULL', |
|
| 21 | - 'duration' => Schema::TYPE_FLOAT . ' NULL', |
|
| 22 | - 'user_id' => Schema::TYPE_INTEGER . " DEFAULT '0'", |
|
| 23 | - 'ip' => Schema::TYPE_STRING . '(45) NULL', |
|
| 24 | - 'referrer' => Schema::TYPE_STRING . '(512) NULL', |
|
| 25 | - 'origin' => Schema::TYPE_STRING . '(512) NULL', |
|
| 26 | - 'url' => Schema::TYPE_STRING . '(512) NULL', |
|
| 27 | - 'route' => Schema::TYPE_STRING . '(255) NULL', |
|
| 18 | + 'created' => Schema::TYPE_DATETIME.' NOT NULL', |
|
| 19 | + 'start_time' => Schema::TYPE_FLOAT.' NULL', |
|
| 20 | + 'end_time' => Schema::TYPE_FLOAT.' NULL', |
|
| 21 | + 'duration' => Schema::TYPE_FLOAT.' NULL', |
|
| 22 | + 'user_id' => Schema::TYPE_INTEGER." DEFAULT '0'", |
|
| 23 | + 'ip' => Schema::TYPE_STRING.'(45) NULL', |
|
| 24 | + 'referrer' => Schema::TYPE_STRING.'(512) NULL', |
|
| 25 | + 'origin' => Schema::TYPE_STRING.'(512) NULL', |
|
| 26 | + 'url' => Schema::TYPE_STRING.'(512) NULL', |
|
| 27 | + 'route' => Schema::TYPE_STRING.'(255) NULL', |
|
| 28 | 28 | 'data' => 'BLOB NULL', |
| 29 | - 'memory' => Schema::TYPE_INTEGER . " NULL", |
|
| 30 | - 'memory_max' => Schema::TYPE_INTEGER . " NULL", |
|
| 29 | + 'memory' => Schema::TYPE_INTEGER." NULL", |
|
| 30 | + 'memory_max' => Schema::TYPE_INTEGER." NULL", |
|
| 31 | 31 | |
| 32 | 32 | ], $tableOptions); |
| 33 | 33 | |
@@ -15,9 +15,9 @@ |
||
| 15 | 15 | |
| 16 | 16 | $this->createTable(self::TABLE, [ |
| 17 | 17 | 'id' => Schema::TYPE_PK, |
| 18 | - 'audit_id' => Schema::TYPE_INTEGER . ' NOT NULL', |
|
| 19 | - 'name' => Schema::TYPE_STRING . '(255) NOT NULL', |
|
| 20 | - 'type' => Schema::TYPE_STRING . '(255) NULL', |
|
| 18 | + 'audit_id' => Schema::TYPE_INTEGER.' NOT NULL', |
|
| 19 | + 'name' => Schema::TYPE_STRING.'(255) NOT NULL', |
|
| 20 | + 'type' => Schema::TYPE_STRING.'(255) NULL', |
|
| 21 | 21 | 'packed' => "TINYINT(1) UNSIGNED NOT NULL DEFAULT '0'", |
| 22 | 22 | 'data' => 'BLOB NOT NULL', |
| 23 | 23 | ], $tableOptions); |
@@ -15,12 +15,12 @@ |
||
| 15 | 15 | |
| 16 | 16 | $this->createTable(self::TABLE, [ |
| 17 | 17 | 'id' => Schema::TYPE_PK, |
| 18 | - 'audit_id' => Schema::TYPE_INTEGER . ' NOT NULL', |
|
| 19 | - 'created' => Schema::TYPE_DATETIME . ' NOT NULL', |
|
| 20 | - 'message' => Schema::TYPE_STRING . '(512) NOT NULL', |
|
| 21 | - 'code' => Schema::TYPE_INTEGER . " DEFAULT '0'", |
|
| 22 | - 'file' => Schema::TYPE_STRING . '(512)', |
|
| 23 | - 'line' => Schema::TYPE_INTEGER , |
|
| 18 | + 'audit_id' => Schema::TYPE_INTEGER.' NOT NULL', |
|
| 19 | + 'created' => Schema::TYPE_DATETIME.' NOT NULL', |
|
| 20 | + 'message' => Schema::TYPE_STRING.'(512) NOT NULL', |
|
| 21 | + 'code' => Schema::TYPE_INTEGER." DEFAULT '0'", |
|
| 22 | + 'file' => Schema::TYPE_STRING.'(512)', |
|
| 23 | + 'line' => Schema::TYPE_INTEGER, |
|
| 24 | 24 | 'trace' => 'BLOB', |
| 25 | 25 | ], $tableOptions); |
| 26 | 26 | |
@@ -20,11 +20,11 @@ |
||
| 20 | 20 | 'audit_id' => Schema::TYPE_INTEGER, |
| 21 | 21 | 'old_value' => Schema::TYPE_TEXT, |
| 22 | 22 | 'new_value' => Schema::TYPE_TEXT, |
| 23 | - 'action' => Schema::TYPE_STRING . ' NOT NULL', |
|
| 24 | - 'model' => Schema::TYPE_STRING . ' NOT NULL', |
|
| 23 | + 'action' => Schema::TYPE_STRING.' NOT NULL', |
|
| 24 | + 'model' => Schema::TYPE_STRING.' NOT NULL', |
|
| 25 | 25 | 'field' => Schema::TYPE_STRING, |
| 26 | - 'stamp' => Schema::TYPE_DATETIME . ' NOT NULL', |
|
| 27 | - 'model_id' => Schema::TYPE_STRING . ' NOT NULL', |
|
| 26 | + 'stamp' => Schema::TYPE_DATETIME.' NOT NULL', |
|
| 27 | + 'model_id' => Schema::TYPE_STRING.' NOT NULL', |
|
| 28 | 28 | ] |
| 29 | 29 | ); |
| 30 | 30 | |
@@ -10,11 +10,11 @@ |
||
| 10 | 10 | { |
| 11 | 11 | $this->createTable(self::TABLE, [ |
| 12 | 12 | 'id' => Schema::TYPE_PK, |
| 13 | - 'audit_id' => Schema::TYPE_INTEGER . ' NOT NULL', |
|
| 14 | - 'created' => Schema::TYPE_DATETIME . ' NOT NULL', |
|
| 15 | - 'type' => Schema::TYPE_STRING . '(20) NOT NULL', |
|
| 16 | - 'message' => Schema::TYPE_TEXT . ' NOT NULL', |
|
| 17 | - 'origin' => Schema::TYPE_STRING . '(512)', |
|
| 13 | + 'audit_id' => Schema::TYPE_INTEGER.' NOT NULL', |
|
| 14 | + 'created' => Schema::TYPE_DATETIME.' NOT NULL', |
|
| 15 | + 'type' => Schema::TYPE_STRING.'(20) NOT NULL', |
|
| 16 | + 'message' => Schema::TYPE_TEXT.' NOT NULL', |
|
| 17 | + 'origin' => Schema::TYPE_STRING.'(512)', |
|
| 18 | 18 | 'data' => 'BLOB NULL', |
| 19 | 19 | ], $this->db->driverName === 'mysql' ? 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB' : null); |
| 20 | 20 | |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | $auditEntry->save(false, ['request_method']); |
| 23 | 23 | } |
| 24 | 24 | } |
| 25 | - echo " done (time: " . sprintf('%.3f', microtime(true) - $time) . "s)\n"; |
|
| 25 | + echo " done (time: ".sprintf('%.3f', microtime(true) - $time)."s)\n"; |
|
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | public function down() |