Completed
Push — master ( 309e74...095771 )
by Basil
02:09
created
core/web/filters/JsonCruftFilter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.