@@ -118,7 +118,7 @@ |
||
118 | 118 | |
119 | 119 | if (!function_exists('notFoundPage')) { |
120 | 120 | |
121 | - function notFoundPage() |
|
121 | + function notFoundPage() |
|
122 | 122 | { |
123 | 123 | $notfound = 'Website\Notfound'; |
124 | 124 |
@@ -119,7 +119,7 @@ |
||
119 | 119 | if (!function_exists('notFoundPage')) { |
120 | 120 | |
121 | 121 | function notFoundPage() |
122 | - { |
|
122 | + { |
|
123 | 123 | $notfound = 'Website\Notfound'; |
124 | 124 | |
125 | 125 | if (app()->request->isRequestToAdminManagement()) { |
@@ -159,7 +159,7 @@ |
||
159 | 159 | |
160 | 160 | private function fullMatch($pattern, $methods) |
161 | 161 | { |
162 | - return $this->isMatchingPattern($pattern) && $this->app->request->isMatchingRequestMethod($methods); |
|
162 | + return $this->isMatchingPattern($pattern) && $this->app->request->isMatchingRequestMethod($methods); |
|
163 | 163 | } |
164 | 164 | |
165 | 165 | private function isMatchingPattern($pattern) |
@@ -20,7 +20,7 @@ |
||
20 | 20 | * PHPMailer Object |
21 | 21 | * |
22 | 22 | * @var PHPMailer |
23 | - */ |
|
23 | + */ |
|
24 | 24 | private $mail; |
25 | 25 | |
26 | 26 | /** |
@@ -63,7 +63,9 @@ discard block |
||
63 | 63 | { |
64 | 64 | $this->mail->setFrom($_ENV['EMAIL_ADMIN'], $_ENV['EMAIL_NAME']); |
65 | 65 | |
66 | - if (!is_array($addresses)) $addresses = [$addresses]; |
|
66 | + if (!is_array($addresses)) { |
|
67 | + $addresses = [$addresses]; |
|
68 | + } |
|
67 | 69 | |
68 | 70 | foreach ($addresses as $key => $value) { |
69 | 71 | if (is_numeric($key)) { |
@@ -75,11 +77,17 @@ discard block |
||
75 | 77 | } |
76 | 78 | } |
77 | 79 | |
78 | - if (!empty($replayTo)) $this->mail->addReplyTo(array_values($replayTo)[0], array_keys($replayTo)[0]); |
|
80 | + if (!empty($replayTo)) { |
|
81 | + $this->mail->addReplyTo(array_values($replayTo)[0], array_keys($replayTo)[0]); |
|
82 | + } |
|
79 | 83 | |
80 | - if ($cc) $this->mail->addCC($cc); |
|
84 | + if ($cc) { |
|
85 | + $this->mail->addCC($cc); |
|
86 | + } |
|
81 | 87 | |
82 | - if ($bcc) $this->mail->addBCC($bcc); |
|
88 | + if ($bcc) { |
|
89 | + $this->mail->addBCC($bcc); |
|
90 | + } |
|
83 | 91 | |
84 | 92 | return $this; |
85 | 93 | } |
@@ -91,7 +99,9 @@ discard block |
||
91 | 99 | */ |
92 | 100 | public function attachments($attachments) |
93 | 101 | { |
94 | - if (!is_array($attachments)) $attachments = [$attachments]; |
|
102 | + if (!is_array($attachments)) { |
|
103 | + $attachments = [$attachments]; |
|
104 | + } |
|
95 | 105 | |
96 | 106 | foreach ($attachments as $key => $value) { |
97 | 107 | if (is_numeric($key)) { |
@@ -137,7 +137,9 @@ |
||
137 | 137 | { |
138 | 138 | $error = error_get_last(); |
139 | 139 | |
140 | - if (!$error) return; |
|
140 | + if (!$error) { |
|
141 | + return; |
|
142 | + } |
|
141 | 143 | |
142 | 144 | $type = $error['type']; |
143 | 145 | $message = $error['message']; |
@@ -40,11 +40,11 @@ |
||
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
43 | - * Call the methods from Database Object |
|
44 | - * |
|
45 | - * @param $method |
|
46 | - * @param $atgs |
|
47 | - */ |
|
43 | + * Call the methods from Database Object |
|
44 | + * |
|
45 | + * @param $method |
|
46 | + * @param $atgs |
|
47 | + */ |
|
48 | 48 | public function __call($method, $args) |
49 | 49 | { |
50 | 50 | return call_user_func_array([$this->app->db, $method], $args); |
@@ -357,7 +357,7 @@ |
||
357 | 357 | $methods = ['GET']; |
358 | 358 | } |
359 | 359 | |
360 | - foreach($methods as $method) { |
|
360 | + foreach ($methods as $method) { |
|
361 | 361 | |
362 | 362 | if ($this->method() == strtoupper($method)) { |
363 | 363 |