@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | */ |
65 | 65 | public function prependCruft($content) |
66 | 66 | { |
67 | - return $this->cruft . trim($content); |
|
67 | + return $this->cruft.trim($content); |
|
68 | 68 | } |
69 | 69 | |
70 | 70 | /** |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | { |
75 | 75 | if (Yii::$app->response->format == Response::FORMAT_JSON && !in_array(Yii::$app->response->statusCode, $this->ignoreStatusCodes)) { |
76 | 76 | Yii::$app->response->headers->set(self::CRUFT_HEADER_NAME, $this->getCruftLength()); |
77 | - Yii::$app->response->on(Response::EVENT_AFTER_PREPARE, function ($event) { |
|
77 | + Yii::$app->response->on(Response::EVENT_AFTER_PREPARE, function($event) { |
|
78 | 78 | $event->sender->content = $this->prependCruft($event->sender->content); |
79 | 79 | }); |
80 | 80 | } |