Completed
Push — master ( 5f5641...036391 )
by Xu
136:34 queued 96:36
created
src/notifications/rest/controllers/NotificationController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
      */
71 71
     public function actionUnreadNotifications()
72 72
     {
73
-        $total = Notification::getDb()->cache(function ($db) {
73
+        $total = Notification::getDb()->cache(function($db) {
74 74
             return Notification::find()->where(['user_id' => Yii::$app->user->id])->pending()->count();
75 75
         }, 60);
76 76
         return ['total' => $total];
Please login to merge, or discard this patch.