Passed
Branch master (93b6ae)
by refat
12:48
created
core/helpers.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@
 block discarded – undo
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()) {
Please login to merge, or discard this patch.
core/System/Email.php 1 patch
Braces   +15 added lines, -5 removed lines patch added patch discarded remove patch
@@ -63,7 +63,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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)) {
Please login to merge, or discard this patch.
core/System/Error.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,9 @@
 block discarded – undo
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'];
Please login to merge, or discard this patch.