@@ -37,6 +37,7 @@ discard block |
||
| 37 | 37 | * @param string subject |
| 38 | 38 | * @param string message |
| 39 | 39 | * @param array bcc |
| 40 | + * @param string $body |
|
| 40 | 41 | * @return bool true | false (log the exception) |
| 41 | 42 | */ |
| 42 | 43 | public function sendMail($recipients, $subject, $body, array $bccMail = NULL) |
@@ -97,7 +98,8 @@ discard block |
||
| 97 | 98 | * @param array recipient mail and name |
| 98 | 99 | * @param string guid |
| 99 | 100 | * @param string program | block |
| 100 | - * @return mixed true | error information |
|
| 101 | + * @param string $type |
|
| 102 | + * @return boolean true | error information |
|
| 101 | 103 | */ |
| 102 | 104 | public function tutor($recipients, $guid, $type) |
| 103 | 105 | { |
@@ -126,7 +128,8 @@ discard block |
||
| 126 | 128 | * @param array recipient mail |
| 127 | 129 | * @param int check hash code |
| 128 | 130 | * @param string code for recognition of bank transaction |
| 129 | - * @return mixed true | error information |
|
| 131 | + * @param string $code4bank |
|
| 132 | + * @return boolean true | error information |
|
| 130 | 133 | */ |
| 131 | 134 | public function sendRegistrationSummary(array $recipientMail, $hash, $code4bank) |
| 132 | 135 | { |
@@ -148,7 +151,8 @@ discard block |
||
| 148 | 151 | * |
| 149 | 152 | * @param mixed id numbers in row |
| 150 | 153 | * @param string type of template |
| 151 | - * @return array subject and message |
|
| 154 | + * @param string $type |
|
| 155 | + * @return boolean subject and message |
|
| 152 | 156 | */ |
| 153 | 157 | public function sendPaymentInfo($recipients, $type) |
| 154 | 158 | { |
@@ -46,9 +46,9 @@ |
||
| 46 | 46 | |
| 47 | 47 | foreach($recipients as $recipient) { |
| 48 | 48 | $message->addTo( |
| 49 | - $recipient->email, |
|
| 50 | - trim($recipient->name . ' ' . $recipient->surname) |
|
| 51 | - ); |
|
| 49 | + $recipient->email, |
|
| 50 | + trim($recipient->name . ' ' . $recipient->surname) |
|
| 51 | + ); |
|
| 52 | 52 | } |
| 53 | 53 | // add bcc |
| 54 | 54 | if(!empty($bccMail)) { |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | * @param array bcc |
| 40 | 40 | * @return bool true | false (log the exception) |
| 41 | 41 | */ |
| 42 | - public function sendMail($recipients, $subject, $body, array $bccMail = NULL) |
|
| 42 | + public function sendMail($recipients, $subject, $body, array $bccMail = null) |
|
| 43 | 43 | { |
| 44 | 44 | $message = new Message; |
| 45 | 45 | $message->setFrom('[email protected]', 'Srazy VS'); |
@@ -10,9 +10,9 @@ |
||
| 10 | 10 | interface IVisitorFormFactory |
| 11 | 11 | { |
| 12 | 12 | |
| 13 | - /** |
|
| 14 | - * @return \App\Components\Forms\VisitorForm |
|
| 15 | - */ |
|
| 16 | - public function create(): VisitorForm; |
|
| 13 | + /** |
|
| 14 | + * @return \App\Components\Forms\VisitorForm |
|
| 15 | + */ |
|
| 16 | + public function create(): VisitorForm; |
|
| 17 | 17 | |
| 18 | 18 | } |
@@ -88,22 +88,22 @@ discard block |
||
| 88 | 88 | ->update($data); |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | - /** |
|
| 92 | - * @param int $visitorId |
|
| 93 | - * @param array $values |
|
| 94 | - * @return ActiveRow|bool |
|
| 95 | - */ |
|
| 91 | + /** |
|
| 92 | + * @param int $visitorId |
|
| 93 | + * @param array $values |
|
| 94 | + * @return ActiveRow|bool |
|
| 95 | + */ |
|
| 96 | 96 | public function updateOrCreate(int $visitorId, array $values) |
| 97 | - { |
|
| 98 | - $result = $this->updateByVisitor($visitorId, $values); |
|
| 97 | + { |
|
| 98 | + $result = $this->updateByVisitor($visitorId, $values); |
|
| 99 | 99 | |
| 100 | - if(!$result) { |
|
| 101 | - $values['visitor'] = $visitorId; |
|
| 102 | - $result = $this->create($values); |
|
| 103 | - } |
|
| 100 | + if(!$result) { |
|
| 101 | + $values['visitor'] = $visitorId; |
|
| 102 | + $result = $this->create($values); |
|
| 103 | + } |
|
| 104 | 104 | |
| 105 | - return $result; |
|
| 106 | - } |
|
| 105 | + return $result; |
|
| 106 | + } |
|
| 107 | 107 | |
| 108 | 108 | /** |
| 109 | 109 | * Get meals data by visitor id |
@@ -120,12 +120,12 @@ discard block |
||
| 120 | 120 | ->fetch(); |
| 121 | 121 | |
| 122 | 122 | if(!$meals) { |
| 123 | - $meals = []; |
|
| 124 | - } else { |
|
| 125 | - $meals = $meals->toArray(); |
|
| 126 | - } |
|
| 123 | + $meals = []; |
|
| 124 | + } else { |
|
| 125 | + $meals = $meals->toArray(); |
|
| 126 | + } |
|
| 127 | 127 | |
| 128 | - return $meals; |
|
| 128 | + return $meals; |
|
| 129 | 129 | |
| 130 | 130 | } |
| 131 | 131 | |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | * @return ActiveRow|bool |
| 95 | 95 | */ |
| 96 | 96 | public function updateOrCreate(int $visitorId, array $values) |
| 97 | - { |
|
| 97 | + { |
|
| 98 | 98 | $result = $this->updateByVisitor($visitorId, $values); |
| 99 | 99 | |
| 100 | 100 | if(!$result) { |