Passed
Pull Request — 1.0.0-dev (#4)
by nguereza
13:14
created
core/libraries/Email.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
      */
46 46
 
47 47
     
48
-    class Email extends BaseClass{
48
+    class Email extends BaseClass {
49 49
         /**
50 50
          * @var int $_wrap
51 51
          */
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
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
          */
303 303
 		protected function checkPlatform() { 
304 304
 			foreach ($this->_platforms as $regex => $value) { 
305
-				if (preg_match($regex, $this->_agent) ) {
305
+				if (preg_match($regex, $this->_agent)) {
306 306
 					$this->setPlatform($value);
307 307
 					break;
308 308
 				}
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
          */
315 315
 		protected function checkBrowser() {
316 316
 			foreach ($this->_browsers as $regex => $value) { 
317
-				if (preg_match($regex, $this->_agent ) ) {
317
+				if (preg_match($regex, $this->_agent)) {
318 318
 					$this->setBrowser($value);
319 319
 					break;
320 320
 				}
@@ -324,10 +324,10 @@  discard block
 block discarded – undo
324 324
 		/**
325 325
          * Routine to determine the browser version
326 326
          */
327
-		protected function checkBrowserVersion(){
327
+		protected function checkBrowserVersion() {
328 328
 			$detected = $this->getBrowser();
329 329
 			$d = array_search($detected, $this->_browsers);
330
-			$browser = str_replace(array("/i","/"), "", $d);
330
+			$browser = str_replace(array("/i", "/"), "", $d);
331 331
 			$regex = "/(?<browser>version|{$browser})[\/]+(?<version>[0-9.|a-zA-Z.]*)/i";
332 332
 			if (preg_match_all($regex, $this->_agent, $matches)) {
333 333
 				$found = array_search($browser, $matches["browser"]);
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
          * Determine if the browser is Mobile or not
340 340
          */
341 341
 		protected function checkMobile() {
342
-			if (preg_match('/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i', $this->_agent) ) {
342
+			if (preg_match('/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i', $this->_agent)) {
343 343
 				$this->setMobile(true);
344 344
 			}
345 345
 		}
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
          * Determine if the browser is Tablet or not
349 349
          */
350 350
 		protected function checkTablet() {
351
-			if (preg_match('/tablet|ipad/i', $this->_agent) ) {
351
+			if (preg_match('/tablet|ipad/i', $this->_agent)) {
352 352
 				$this->setTablet(true);
353 353
 			}
354 354
 		}
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
          * Determine if the browser is Robot or not
358 358
          */
359 359
 		protected function checkBot() {
360
-			if (preg_match('/bot/i', $this->_agent) ) {
360
+			if (preg_match('/bot/i', $this->_agent)) {
361 361
 				$this->setRobot(true);
362 362
 			}
363 363
 		}
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
             if (stristr($this->_agent, 'FacebookExternalHit')) {
370 370
                 $this->setRobot(true);
371 371
                 $this->setFacebook(true);
372
-            }  else if (stristr($this->_agent, 'FBIOS')) {
372
+            } else if (stristr($this->_agent, 'FBIOS')) {
373 373
                 $this->setFacebook(true);
374 374
             }
375 375
         }
Please login to merge, or discard this patch.
core/libraries/Upload.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
          * Set the file array data generally in constructor this is already set using $_FILES
277 277
          * @param array $fileArray the new value
278 278
          */
279
-        public function setFileArray($fileArray){
279
+        public function setFileArray($fileArray) {
280 280
             $this->file_array = $fileArray;
281 281
         }
282 282
 
@@ -594,7 +594,7 @@  discard block
 block discarded – undo
594 594
          *    @return    string
595 595
          */
596 596
         public function getDestinationDirectory() {
597
-            return $this->destination_directory ;
597
+            return $this->destination_directory;
598 598
         }
599 599
 
600 600
         /**
@@ -602,7 +602,7 @@  discard block
 block discarded – undo
602 602
          *    @return    boolean
603 603
          */
604 604
         public function isAllowOverwriting() {
605
-            return $this->overwrite_file ;
605
+            return $this->overwrite_file;
606 606
         }
607 607
 
608 608
         /**
Please login to merge, or discard this patch.
core/classes/database/DatabaseQueryBuilder.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -420,7 +420,7 @@  discard block
 block discarded – undo
420 420
             $_keys = array();
421 421
             foreach ($keys as $k => $v) {
422 422
                 $v = $this->checkForNullValue($v);
423
-                if (! is_numeric($v)) {
423
+                if (!is_numeric($v)) {
424 424
                     $v = $this->escape($v, $escape);
425 425
                 }
426 426
                 $_keys[] = $v;
@@ -781,7 +781,7 @@  discard block
 block discarded – undo
781 781
          * 
782 782
          * @return string|null
783 783
          */
784
-         protected function buildQueryPart($property, $command = ''){
784
+         protected function buildQueryPart($property, $command = '') {
785 785
             if (!empty($this->{$property})) {
786 786
                 return $command . $this->{$property};
787 787
             }
@@ -796,7 +796,7 @@  discard block
 block discarded – undo
796 796
          * @param string $clause the clause type "IS NULL", "IS NOT NULLs"
797 797
          * @return object        the current DatabaseQueryBuilder instance
798 798
          */
799
-        protected function whereIsNullAndNotNull($field, $andOr = 'AND', $clause = 'IS NULL'){
799
+        protected function whereIsNullAndNotNull($field, $andOr = 'AND', $clause = 'IS NULL') {
800 800
             if (is_array($field)) {
801 801
                 foreach ($field as $f) {
802 802
                     $this->whereIsNullAndNotNull($f, $andOr, $clause);
@@ -814,7 +814,7 @@  discard block
 block discarded – undo
814 814
          *
815 815
          * @return object the current instance
816 816
          */
817
-        protected function setSelectStr($newSelect){
817
+        protected function setSelectStr($newSelect) {
818 818
             $this->select = (($this->select == '*' || empty($this->select)) 
819 819
                                     ? $newSelect 
820 820
                                     : $this->select . ', ' . $newSelect);
@@ -828,8 +828,8 @@  discard block
 block discarded – undo
828 828
          * @return string        the empty string if the value is null
829 829
          * otherwise the same value will be returned
830 830
          */
831
-        protected function checkForNullValue($value){
832
-            if(is_null($value)){
831
+        protected function checkForNullValue($value) {
832
+            if (is_null($value)) {
833 833
                 return '';
834 834
             }
835 835
             return $value;
Please login to merge, or discard this patch.