@@ 96-98 (lines=3) @@ | ||
93 | /** @var \yii\web\Response $Response */ |
|
94 | $Response = $Event->sender; |
|
95 | if ($Response->format === \yii\web\Response::FORMAT_HTML) { |
|
96 | if (!empty($Response->data)) { |
|
97 | $Response->data = HtmlCompressor::compress($Response->data, ['extra' => true]); |
|
98 | } |
|
99 | ||
100 | if (!empty($Response->content)) { |
|
101 | $Response->content = HtmlCompressor::compress($Response->content, ['extra' => true]); |
|
@@ 100-102 (lines=3) @@ | ||
97 | $Response->data = HtmlCompressor::compress($Response->data, ['extra' => true]); |
|
98 | } |
|
99 | ||
100 | if (!empty($Response->content)) { |
|
101 | $Response->content = HtmlCompressor::compress($Response->content, ['extra' => true]); |
|
102 | } |
|
103 | } |
|
104 | }); |
|
105 | } |