|
@@ 86-88 (lines=3) @@
|
| 83 |
|
/** @var \yii\web\Response $Response */ |
| 84 |
|
$Response = $Event->sender; |
| 85 |
|
if ($Response->format === \yii\web\Response::FORMAT_HTML) { |
| 86 |
|
if (!empty($Response->data)) { |
| 87 |
|
$Response->data = HtmlCompressor::compress($Response->data, ['extra' => true]); |
| 88 |
|
} |
| 89 |
|
|
| 90 |
|
if (!empty($Response->content)) { |
| 91 |
|
$Response->content = HtmlCompressor::compress($Response->content, ['extra' => true]); |
|
@@ 90-92 (lines=3) @@
|
| 87 |
|
$Response->data = HtmlCompressor::compress($Response->data, ['extra' => true]); |
| 88 |
|
} |
| 89 |
|
|
| 90 |
|
if (!empty($Response->content)) { |
| 91 |
|
$Response->content = HtmlCompressor::compress($Response->content, ['extra' => true]); |
| 92 |
|
} |
| 93 |
|
} |
| 94 |
|
}); |
| 95 |
|
} |