Passed
Branch master (93b6ae)
by refat
12:48
created
core/helpers.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this 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/Route.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
core/System/Email.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
    * PHPMailer Object
21 21
    *
22 22
    * @var PHPMailer
23
-  */
23
+   */
24 24
   private $mail;
25 25
 
26 26
   /**
Please login to merge, or discard this 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.
core/System/Model.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -40,11 +40,11 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
core/System/Http/Request.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -357,7 +357,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.