@@ -31,7 +31,7 @@ discard block |
||
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 |
||
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) |
@@ -70,7 +70,7 @@ |
||
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 | }); |