Passed
Push — master ( b0d82b...8f50d0 )
by Darío
01:40
created
src/Network/Rest/Basic.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@  discard block
 block discarded – undo
29 29
             $ht = $this->http;
30 30
 
31 31
             $this->http->writeStatus($ht::HTTP_UNAUTHORIZED);
32
-            header('WWW-Authenticate: Basic realm="'.$this->realm.'"');
33
-            die('Error ' . $ht::HTTP_UNAUTHORIZED .' (' . $this->http->getStatusText($ht::HTTP_UNAUTHORIZED) . ')!!');
32
+            header('WWW-Authenticate: Basic realm="' . $this->realm . '"');
33
+            die('Error ' . $ht::HTTP_UNAUTHORIZED . ' (' . $this->http->getStatusText($ht::HTTP_UNAUTHORIZED) . ')!!');
34 34
         }
35 35
     }
36 36
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     public function response()
77 77
     {
78 78
         $status = http_response_code();
79
-        $this->response = 'Error ' . $status .' (' . $this->http->getStatusText($status) . ')!!';
79
+        $this->response = 'Error ' . $status . ' (' . $this->http->getStatusText($status) . ')!!';
80 80
         echo $this->response;
81 81
     }
82 82
 }
83 83
\ No newline at end of file
Please login to merge, or discard this patch.
src/Network/Rest/Digest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@  discard block
 block discarded – undo
29 29
             $ht = $this->http;
30 30
 
31 31
             $this->http->writeStatus($ht::HTTP_UNAUTHORIZED);
32
-            header('WWW-Authenticate: Digest realm="'.$this->realm.'",qop="auth",nonce="'.uniqid().'",opaque="'.md5($this->realm).'"');
33
-            die('Error ' . $ht::HTTP_UNAUTHORIZED .' (' . $this->http->getStatusText($ht::HTTP_UNAUTHORIZED) . ')!!');
32
+            header('WWW-Authenticate: Digest realm="' . $this->realm . '",qop="auth",nonce="' . uniqid() . '",opaque="' . md5($this->realm) . '"');
33
+            die('Error ' . $ht::HTTP_UNAUTHORIZED . ' (' . $this->http->getStatusText($ht::HTTP_UNAUTHORIZED) . ')!!');
34 34
         }
35 35
     }
36 36
 
@@ -50,8 +50,8 @@  discard block
 block discarded – undo
50 50
         }
51 51
 
52 52
         $A1 = md5($data['username'] . ':' . $this->realm . ':' . $this->whiteList[$data['username']]);
53
-        $A2 = md5($_SERVER['REQUEST_METHOD'].':'.$data['uri']);
54
-        $valid_response = md5($A1.':'.$data['nonce'].':'.$data['nc'].':'.$data['cnonce'].':'.$data['qop'].':'.$A2);
53
+        $A2 = md5($_SERVER['REQUEST_METHOD'] . ':' . $data['uri']);
54
+        $valid_response = md5($A1 . ':' . $data['nonce'] . ':' . $data['nc'] . ':' . $data['cnonce'] . ':' . $data['qop'] . ':' . $A2);
55 55
 
56 56
         if ($data['response'] != $valid_response)
57 57
         {
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     public function response()
98 98
     {
99 99
         $status = http_response_code();
100
-        $this->response = 'Error ' . $status .' (' . $this->http->getStatusText($status) . ')!!';
100
+        $this->response = 'Error ' . $status . ' (' . $this->http->getStatusText($status) . ')!!';
101 101
         echo $this->response;
102 102
     }
103 103
 }
104 104
\ No newline at end of file
Please login to merge, or discard this patch.
src/Network/Rest/AbstractRest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -156,8 +156,8 @@
 block discarded – undo
156 156
     {
157 157
         foreach ($options as $option => $value)
158 158
         {
159
-            if (property_exists(__CLASS__, strtolower($option)) && method_exists($this, 'set'.$option))
160
-            $this->{'set'.$option}($value);
159
+            if (property_exists(__CLASS__, strtolower($option)) && method_exists($this, 'set' . $option))
160
+            $this->{'set' . $option}($value);
161 161
         }
162 162
 
163 163
         # HTTP instance
Please login to merge, or discard this patch.
src/Pear/Mail.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@
 block discarded – undo
131 131
         if (\PEAR::isError($mail))
132 132
         {
133 133
             $this->error(
134
-            	$mail->getCode(), $mail->getMessage()
134
+                $mail->getCode(), $mail->getMessage()
135 135
             );
136 136
 
137 137
             return false;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      */
115 115
     public function send($from, $to, $subject, $body)
116 116
     {
117
-        $headers = array (
117
+        $headers = array(
118 118
             'From'         => $from,
119 119
             'To'           => $to,
120 120
             'Subject'      => $subject,
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 
124 124
         $smtp = \Mail::factory(
125 125
             'smtp',
126
-            array ('host' => $this->host, 'auth' => false)
126
+            array('host' => $this->host, 'auth' => false)
127 127
         );
128 128
 
129 129
         $mail = $smtp->send($to, $headers, $body);
Please login to merge, or discard this patch.
src/Exception/Storage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 
61 61
             if (!empty($string))
62 62
             {
63
-                $data   = json_decode($string, true);
63
+                $data = json_decode($string, true);
64 64
 
65 65
                 # json_encode can return TRUE, FALSE or NULL (http://php.net/manual/en/function.json-decode.php)
66 66
                 if (is_null($data) || $data === false)
Please login to merge, or discard this patch.
src/Mvc/AbstractionController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@
 block discarded – undo
168 168
         if ($_SERVER['REQUEST_METHOD'] != 'JSON')
169 169
             throw new \LogicException("Request method is not JSON");
170 170
 
171
-        $input =  file_get_contents('php://input');
171
+        $input = file_get_contents('php://input');
172 172
         $array = explode("&", $input);
173 173
 
174 174
         $result = array();
Please login to merge, or discard this patch.
src/Mvc/Layout.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -164,8 +164,8 @@  discard block
 block discarded – undo
164 164
     {
165 165
         foreach ($params as $param => $value)
166 166
         {
167
-            if (property_exists(__CLASS__, strtolower($param)) && method_exists($this, 'set'.$param))
168
-                $this->{'set'.$param}($value);
167
+            if (property_exists(__CLASS__, strtolower($param)) && method_exists($this, 'set' . $param))
168
+                $this->{'set' . $param}($value);
169 169
         }
170 170
     }
171 171
 
@@ -185,9 +185,9 @@  discard block
 block discarded – undo
185 185
 
186 186
         if ($controller->getShowView())
187 187
         {
188
-            $view = 'module/'      . $controller->getModule()->getModuleName() .
189
-                    '/source/view/'. basename(str_replace('\\','/',get_class($controller))) .
190
-                    '/'            . $controller->getMethod() . '.phtml';
188
+            $view = 'module/' . $controller->getModule()->getModuleName() .
189
+                    '/source/view/' . basename(str_replace('\\', '/', get_class($controller))) .
190
+                    '/' . $controller->getMethod() . '.phtml';
191 191
 
192 192
             $this->view = $view;
193 193
         }
Please login to merge, or discard this patch.
src/Db/Driver/AbstractDriver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -298,8 +298,8 @@
 block discarded – undo
298 298
     {
299 299
         foreach ($options as $option => $value)
300 300
         {
301
-            if (property_exists(__CLASS__, strtolower($option)) && method_exists($this, 'set'.$option))
302
-                $this->{'set'.$option}($value);
301
+            if (property_exists(__CLASS__, strtolower($option)) && method_exists($this, 'set' . $option))
302
+                $this->{'set' . $option}($value);
303 303
         }
304 304
     }
305 305
 
Please login to merge, or discard this patch.
src/Db/TableGateway/TableGatewayInterface.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,14 +22,14 @@  discard block
 block discarded – undo
22 22
      *
23 23
      * @param array $where
24 24
      */
25
-	public function select(Array $where);
25
+    public function select(Array $where);
26 26
 
27 27
     /**
28 28
      * Insert statement
29 29
      *
30 30
      * @param array $data
31 31
      */
32
-	public function insert(Array $data);
32
+    public function insert(Array $data);
33 33
 
34 34
     /**
35 35
      * Update statement
@@ -37,12 +37,12 @@  discard block
 block discarded – undo
37 37
      * @param array $set
38 38
      * @param array $where
39 39
      */
40
-	public function update(Array $set, Array $where);
40
+    public function update(Array $set, Array $where);
41 41
 
42 42
     /**
43 43
      * Delete statement
44 44
      *
45 45
      * @param array $where
46 46
      */
47
-	public function delete(Array $where);
47
+    public function delete(Array $where);
48 48
 }
49 49
\ No newline at end of file
Please login to merge, or discard this patch.