Passed
Push — 1.0.0-dev ( cf37bc...0aa539 )
by nguereza
02:20
created
core/classes/database/DatabaseCache.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
         public function getCacheContent() {
155 155
             //set some attributes values
156 156
             $this->setPropertiesValues();
157
-            if(! $this->isSqlSELECTQuery || ! $this->dbCacheStatus){
157
+            if (!$this->isSqlSELECTQuery || !$this->dbCacheStatus) {
158 158
                 $this->logger->info('The cache is not enabled for this query or is not a SELECT query'); 
159 159
                 return null;
160 160
             }
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
         public function saveCacheContent($result) {
182 182
             //set some attributes values
183 183
             $this->setPropertiesValues();
184
-            if(! $this->isSqlSELECTQuery || ! $this->dbCacheStatus){
184
+            if (!$this->isSqlSELECTQuery || !$this->dbCacheStatus) {
185 185
                 //just return true
186 186
                 return true;
187 187
             }
Please login to merge, or discard this patch.
core/classes/database/DatabaseQueryBuilder.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -724,7 +724,7 @@  discard block
 block discarded – undo
724 724
          * 
725 725
          * @return string|null
726 726
          */
727
-         protected function buildQueryPart($property, $command = ''){
727
+         protected function buildQueryPart($property, $command = '') {
728 728
             if (!empty($this->{$property})) {
729 729
                 return $command . ' ' . $this->{$property};
730 730
             }
@@ -809,7 +809,7 @@  discard block
 block discarded – undo
809 809
          *
810 810
          * @return object the current instance
811 811
          */
812
-        protected function setSelectStr($newSelect){
812
+        protected function setSelectStr($newSelect) {
813 813
             $this->select = (($this->select == '*' || empty($this->select)) 
814 814
                                     ? $newSelect 
815 815
                                     : $this->select . ', ' . $newSelect);
@@ -823,8 +823,8 @@  discard block
 block discarded – undo
823 823
          * @return string        the empty string if the value is null
824 824
          * otherwise the same value will be returned
825 825
          */
826
-        protected function checkForNullValue($value){
827
-            if(is_null($value)){
826
+        protected function checkForNullValue($value) {
827
+            if (is_null($value)) {
828 828
                 return '';
829 829
             }
830 830
             return $value;
Please login to merge, or discard this patch.
core/common.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
148 148
         static $cfg;
149 149
         if (empty($cfg)) {
150 150
             $cfg[0] = & load_configurations();
151
-            if(! is_array($cfg[0])){
151
+            if (!is_array($cfg[0])) {
152 152
                 $cfg[0] = array();
153 153
             }
154 154
         }
Please login to merge, or discard this patch.
core/classes/DBSessionHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -343,7 +343,7 @@
 block discarded – undo
343 343
          * Get some parameters data need like ip address, hostname, browser info, etc.
344 344
          * @return array
345 345
          */
346
-        protected function getSessionDataParams(){
346
+        protected function getSessionDataParams() {
347 347
             $this->getLoader()->functions('user_agent'); 
348 348
             $this->getLoader()->library('Browser'); 
349 349
             
Please login to merge, or discard this patch.
core/classes/EventDispatcher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -174,7 +174,7 @@
 block discarded – undo
174 174
             }
175 175
             //only test for original event may be during the flow some listeners change this parameter
176 176
             if ($eBackup->returnBack) {
177
-                if(! $error) {
177
+                if (!$error) {
178 178
                     return $event;
179 179
                 }
180 180
                 return null;
Please login to merge, or discard this patch.
core/libraries/Browser.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
          */
298 298
 		protected function checkPlatform() { 
299 299
 			foreach ($this->_platforms as $regex => $value) { 
300
-				if (preg_match($regex, $this->_agent) ) {
300
+				if (preg_match($regex, $this->_agent)) {
301 301
 					$this->setPlatform($value);
302 302
 					break;
303 303
 				}
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
          */
310 310
 		protected function checkBrowser() {
311 311
 			foreach ($this->_browsers as $regex => $value) { 
312
-				if (preg_match($regex, $this->_agent ) ) {
312
+				if (preg_match($regex, $this->_agent)) {
313 313
 					$this->setBrowser($value);
314 314
 					break;
315 315
 				}
@@ -319,10 +319,10 @@  discard block
 block discarded – undo
319 319
 		/**
320 320
          * Routine to determine the browser version
321 321
          */
322
-		protected function checkBrowserVersion(){
322
+		protected function checkBrowserVersion() {
323 323
 			$detected = $this->getBrowser();
324 324
 			$d = array_search($detected, $this->_browsers);
325
-			$browser = str_replace(array("/i","/"), "", $d);
325
+			$browser = str_replace(array("/i", "/"), "", $d);
326 326
 			$regex = "/(?<browser>version|{$browser})[\/]+(?<version>[0-9.|a-zA-Z.]*)/i";
327 327
 			if (preg_match_all($regex, $this->_agent, $matches)) {
328 328
 				$found = array_search($browser, $matches["browser"]);
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
          * Determine if the browser is Mobile or not
335 335
          */
336 336
 		protected function checkMobile() {
337
-			if (preg_match('/mobile|phone|ipod/i', $this->_agent) ) {
337
+			if (preg_match('/mobile|phone|ipod/i', $this->_agent)) {
338 338
 				$this->setMobile(true);
339 339
 			}
340 340
 		}
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
          * Determine if the browser is Tablet or not
344 344
          */
345 345
 		protected function checkTablet() {
346
-			if (preg_match('/tablet|ipad/i', $this->_agent) ) {
346
+			if (preg_match('/tablet|ipad/i', $this->_agent)) {
347 347
 				$this->setTablet(true);
348 348
 			}
349 349
 		}
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
          * Determine if the browser is Robot or not
353 353
          */
354 354
 		protected function checkBot() {
355
-			if (preg_match('/bot/i', $this->_agent) ) {
355
+			if (preg_match('/bot/i', $this->_agent)) {
356 356
 				$this->setTablet(true);
357 357
 			}
358 358
 		}
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
             if (stristr($this->_agent, 'FacebookExternalHit')) {
365 365
                 $this->setRobot(true);
366 366
                 $this->setFacebook(true);
367
-            }  else if (stristr($this->_agent, 'FBIOS')) {
367
+            } else if (stristr($this->_agent, 'FBIOS')) {
368 368
                 $this->setFacebook(true);
369 369
             }
370 370
         }
Please login to merge, or discard this patch.