Passed
Push — develop ( a502d1...3b05d1 )
by Mykola
08:37
created
application/language/en-gb/common/cart.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 $_['text_items']     = 'item(s)';
25 25
 
26 26
 $_['text_empty']     = 'Your shopping cart is empty!';
27
-$_['text_empty_info']     = 'To buy something in our store, check out our catalog of goods.';
27
+$_['text_empty_info'] = 'To buy something in our store, check out our catalog of goods.';
28 28
 $_['text_cart']      = 'View Cart';
29 29
 $_['text_checkout']  = 'Checkout';
30 30
 $_['text_header_cart'] = 'Shopping cart';
Please login to merge, or discard this patch.
engine/adaptor/db/mysqli.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
                 return true;
70 70
             }
71 71
         } else {
72
-            throw new \Exception('Error: ' . $this->connection->error  . '<br />Error No: ' . $this->connection->errno . '<br />' . $sql);
72
+            throw new \Exception('Error: ' . $this->connection->error . '<br />Error No: ' . $this->connection->errno . '<br />' . $sql);
73 73
         }
74 74
     }
75 75
 
Please login to merge, or discard this patch.
engine/adaptor/session/db.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
             SELECT `data` 
66 66
             FROM `session` 
67 67
             WHERE session_id = '" . $this->db->escape($session_id) . "' 
68
-                AND expire > '" . $this->db->escape(date('Y-m-d H:i:s'))  . "'
68
+                AND expire > '" . $this->db->escape(date('Y-m-d H:i:s')) . "'
69 69
         ");
70 70
 
71 71
         if ($query->num_rows) {
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
                 expire = '" . $this->db->escape(date('Y-m-d H:i:s', time() + $this->expire)) . "' 
84 84
             FROM `session` 
85 85
             WHERE session_id = '" . $this->db->escape($session_id) . "' 
86
-                AND expire > '" . $this->db->escape(date('Y-m-d H:i:s'))  . "'
86
+                AND expire > '" . $this->db->escape(date('Y-m-d H:i:s')) . "'
87 87
         ");
88 88
 
89 89
         return true;
Please login to merge, or discard this patch.
engine/core/Loader.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     public function model($route)
37 37
     {
38 38
         // Sanitize the call
39
-        $route = preg_replace('/[^a-zA-Z0-9_\/]/', '', (string) $route);
39
+        $route = preg_replace('/[^a-zA-Z0-9_\/]/', '', (string)$route);
40 40
 
41 41
         if (!$this->registry->has('model_' . str_replace(array('/', '-', '.'), array('_', '', ''), $route))) {
42 42
             $file  = SR_APPLICATION . 'model/' . $route . '.php';
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
                 }
53 53
 
54 54
                 $this->registry->set(
55
-                    'model_' . str_replace(array('/', '-', '.'), array('_', '', ''), (string) $route),
55
+                    'model_' . str_replace(array('/', '-', '.'), array('_', '', ''), (string)$route),
56 56
                     $proxy
57 57
                 );
58 58
             } else {
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     public function controller($route, $data = array())
65 65
     {
66 66
         // Sanitize the call
67
-        $route = preg_replace('/[^a-zA-Z0-9_\/]/', '', (string) $route);
67
+        $route = preg_replace('/[^a-zA-Z0-9_\/]/', '', (string)$route);
68 68
 
69 69
         $output = null;
70 70
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         $output = null;
82 82
 
83 83
         // Sanitize the call
84
-        $route = preg_replace('/[^a-zA-Z0-9_\/]/', '', (string) $route);
84
+        $route = preg_replace('/[^a-zA-Z0-9_\/]/', '', (string)$route);
85 85
 
86 86
         if (!$output) {
87 87
             $template = new \Sunrise\Engine\Library\Template(
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     public function library($route)
119 119
     {
120 120
         // Sanitize the call
121
-        $route = preg_replace('/[^a-zA-Z0-9_\/]/', '', (string) $route);
121
+        $route = preg_replace('/[^a-zA-Z0-9_\/]/', '', (string)$route);
122 122
 
123 123
         $file = $_SERVER['DOCUMENT_ROOT'] . '/engine/library/' . $route . '.php';
124 124
         $class = str_replace('/', '\\', $route);
@@ -151,14 +151,14 @@  discard block
 block discarded – undo
151 151
 
152 152
     protected function callback($registry, $route)
153 153
     {
154
-        return function ($args) use ($registry, &$route) {
154
+        return function($args) use ($registry, &$route) {
155 155
             static $model = array();
156 156
 
157 157
             $output = null;
158 158
 
159 159
             // Store the model object
160 160
             if (!isset($model[$route])) {
161
-                $file = SR_APPLICATION . 'model/' .  substr($route, 0, strrpos($route, '/')) . '.php';
161
+                $file = SR_APPLICATION . 'model/' . substr($route, 0, strrpos($route, '/')) . '.php';
162 162
                 $class = 'Model' . preg_replace('/[^a-zA-Z0-9]/', '', substr($route, 0, strrpos($route, '/')));
163 163
 
164 164
                 if (is_file($file)) {
Please login to merge, or discard this patch.
engine/config/administration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     along with this program. If not, see <http://www.gnu.org/licenses/>. */
22 22
 
23 23
 // Site
24
-$_['app_url']        = '/administration/';
24
+$_['app_url'] = '/administration/';
25 25
 
26 26
 // Cache (file or redis)
27 27
 $_['cache_type']       = 'file';
Please login to merge, or discard this patch.
engine/config/application.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     along with this program. If not, see <http://www.gnu.org/licenses/>. */
22 22
 
23 23
 // Site
24
-$_['app_url']        = '/application/';
24
+$_['app_url'] = '/application/';
25 25
 
26 26
 // Cache ( file or redis)
27 27
 $_['cache_type']       = 'redis';
Please login to merge, or discard this patch.
engine/config/common.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     along with this program. If not, see <http://www.gnu.org/licenses/>. */
22 22
 
23 23
 // Language (then transferred to /engine/instance.php - Language section)
24
-$_['language_default']     = 'en-gb';
24
+$_['language_default'] = 'en-gb';
25 25
 
26 26
 // Database (mysqli or pdo)
27 27
 $_['db_autostart']     = true;
Please login to merge, or discard this patch.
engine/library/Mail.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -272,7 +272,7 @@
 block discarded – undo
272 272
                     stream_socket_enable_crypto($handle, true, STREAM_CRYPTO_METHOD_TLS_CLIENT);
273 273
                 }
274 274
 
275
-                if (!empty($this->smtp_username)  && !empty($this->smtp_password)) {
275
+                if (!empty($this->smtp_username) && !empty($this->smtp_password)) {
276 276
                     fputs($handle, 'EHLO ' . getenv('SERVER_NAME') . "\r\n");
277 277
 
278 278
                     $reply = '';
Please login to merge, or discard this patch.
administration/controller/extension/payment/bank_transfer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@
 block discarded – undo
167 167
 
168 168
         foreach ($languages as $language) {
169 169
             if (empty($this->request->post['bank_transfer_bank' . $language['language_id']])) {
170
-                $this->error['bank' .  $language['language_id']] = $this->language->get('error_bank');
170
+                $this->error['bank' . $language['language_id']] = $this->language->get('error_bank');
171 171
             }
172 172
         }
173 173
 
Please login to merge, or discard this patch.