Passed
Push — master ( d2190f...e6812d )
by Mihail
05:34
created
Apps/Model/Front/Feedback/FormAnswerAdd.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     public function __construct($recordPost, $userId = 0)
32 32
     {
33 33
         $this->_post = $recordPost;
34
-        $this->_userId = (int)$userId;
34
+        $this->_userId = (int) $userId;
35 35
         parent::__construct();
36 36
     }
37 37
 
@@ -98,9 +98,9 @@  discard block
 block discarded – undo
98 98
 
99 99
         // add notification msg
100 100
         $targetId = $this->_post->user_id;
101
-        if ($targetId !== null && (int)$targetId > 0 && $targetId !== $this->_userId) {
101
+        if ($targetId !== null && (int) $targetId > 0 && $targetId !== $this->_userId) {
102 102
             $notify = new EntityAddNotification($targetId);
103
-            $uri = '/feedback/read/' . $this->_post->id . '/' . $this->_post->hash . '#feedback-answer-' . $record->id;
103
+            $uri = '/feedback/read/'.$this->_post->id.'/'.$this->_post->hash.'#feedback-answer-'.$record->id;
104 104
             $notify->add($uri, EntityAddNotification::MSG_ADD_FEEDBACKANSWER, [
105 105
                 'snippet' => Text::snippet(App::$Security->strip_tags($this->message), 50),
106 106
                 'post' => Text::snippet(App::$Security->strip_tags($this->_post->message), 50)
Please login to merge, or discard this patch.
Apps/Model/Front/User/FormLogin.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
         $password = App::$Security->password_hash($this->password);
72 72
 
73
-        $search = App::$User->where('password', '=', $password)->where(function ($query) {
73
+        $search = App::$User->where('password', '=', $password)->where(function($query) {
74 74
             $query->where('login', '=', $this->login)
75 75
                 ->orWhere('email', '=', $this->login);
76 76
         });
Please login to merge, or discard this patch.