Passed
Push — 1.0.0-dev ( e83bbe...49e148 )
by nguereza
02:46
created
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/libraries/Email.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
      * @link      http://github.com/eoghanobrien/php-simple-mail
49 49
      */
50 50
 
51
-    class Email extends BaseClass{
51
+    class Email extends BaseClass {
52 52
         /**
53 53
          * @var int $_wrap
54 54
          */
Please login to merge, or discard this patch.
core/classes/database/Database.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -410,7 +410,7 @@
 block discarded – undo
410 410
          *
411 411
          * @return object|void
412 412
          */
413
-        protected function setConnectionUsingConfigFile(){
413
+        protected function setConnectionUsingConfigFile() {
414 414
             $dbConfigFromFile = $this->getDatabaseConfigFromFile();
415 415
             $connection = &class_loader('DatabaseConnection', 'classes/database');
416 416
             $connection->setConfig($dbConfigFromFile);
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
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
             $_keys = array();
415 415
             foreach ($keys as $k => $v) {
416 416
                 $v = $this->checkForNullValue($v);
417
-                if (! is_numeric($v)) {
417
+                if (!is_numeric($v)) {
418 418
                     $v = $this->connection->escape($v, $escape);
419 419
                 }
420 420
                 $_keys[] = $v;
@@ -727,7 +727,7 @@  discard block
 block discarded – undo
727 727
          * 
728 728
          * @return string|null
729 729
          */
730
-         protected function buildQueryPart($property, $command = ''){
730
+         protected function buildQueryPart($property, $command = '') {
731 731
             if (!empty($this->{$property})) {
732 732
                 return $command . $this->{$property};
733 733
             }
@@ -742,7 +742,7 @@  discard block
 block discarded – undo
742 742
          * @param string $clause the clause type "IS NULL", "IS NOT NULLs"
743 743
          * @return object        the current DatabaseQueryBuilder instance
744 744
          */
745
-        protected function whereIsNullAndNotNull($field, $andOr = 'AND', $clause = 'IS NULL'){
745
+        protected function whereIsNullAndNotNull($field, $andOr = 'AND', $clause = 'IS NULL') {
746 746
             if (is_array($field)) {
747 747
                 foreach ($field as $f) {
748 748
                     $this->whereIsNullAndNotNull($f, $andOr, $clause);
@@ -760,7 +760,7 @@  discard block
 block discarded – undo
760 760
          *
761 761
          * @return object the current instance
762 762
          */
763
-        protected function setSelectStr($newSelect){
763
+        protected function setSelectStr($newSelect) {
764 764
             $this->select = (($this->select == '*' || empty($this->select)) 
765 765
                                     ? $newSelect 
766 766
                                     : $this->select . ', ' . $newSelect);
@@ -774,8 +774,8 @@  discard block
 block discarded – undo
774 774
          * @return string        the empty string if the value is null
775 775
          * otherwise the same value will be returned
776 776
          */
777
-        protected function checkForNullValue($value){
778
-            if(is_null($value)){
777
+        protected function checkForNullValue($value) {
778
+            if (is_null($value)) {
779 779
                 return '';
780 780
             }
781 781
             return $value;
Please login to merge, or discard this patch.
core/classes/database/DatabaseCache.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
         public function getCacheContent() {
159 159
             //set some attributes values
160 160
             $this->setPropertiesValues();
161
-            if(! $this->isSelectQuery || ! $this->dbCacheStatus){
161
+            if (!$this->isSelectQuery || !$this->dbCacheStatus) {
162 162
                 $this->logger->info('The cache is not enabled for this query or is not a SELECT query'); 
163 163
                 return null;
164 164
             }
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
         public function saveCacheContent($result) {
186 186
             //set some attributes values
187 187
             $this->setPropertiesValues();
188
-            if(! $this->isSelectQuery || ! $this->dbCacheStatus){
188
+            if (!$this->isSelectQuery || !$this->dbCacheStatus) {
189 189
                 //just return true
190 190
                 return true;
191 191
             }
Please login to merge, or discard this patch.
core/libraries/FormValidation.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
             //if the rule is array
184 184
             if (is_array($rule)) {
185 185
                 $rules = $rule;
186
-            } else{
186
+            } else {
187 187
                 //the rule is not an array explode pipe values
188 188
                 $rules = explode('|', $rule);
189 189
             }
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
             $this->checkCsrf();
286 286
 
287 287
             //Now loop in each field rule and validate it
288
-            foreach($this->rules as $field => $rules) {
288
+            foreach ($this->rules as $field => $rules) {
289 289
                 $this->validateField($field, $rules);
290 290
             }
291 291
             $this->valid = empty($this->errors) && $this->forceError === false;
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
             if ($field !== null) {
321 321
                 $this->customErrors[$field][$rule] = $message;
322 322
             } else {
323
-                foreach(array_keys($this->rules) as $field) {
323
+                foreach (array_keys($this->rules) as $field) {
324 324
                     $this->customErrors[$field][$rule] = $message;
325 325
                 }
326 326
             }
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
          *
352 352
          * @return object the current instance
353 353
          */
354
-        protected function setDatabaseFromSuperInstanceIfNotSet(){
354
+        protected function setDatabaseFromSuperInstanceIfNotSet() {
355 355
             if (!is_object($this->database)) {
356 356
                 $this->database = get_instance()->database;
357 357
             }
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
          * @return object the current instance
425 425
          */
426 426
         protected function filterValidationData() {
427
-            foreach($this->data as $key => $value ) {
427
+            foreach ($this->data as $key => $value) {
428 428
                 $this->data[$key] = trim($value);
429 429
             }
430 430
             return $this;
@@ -484,7 +484,7 @@  discard block
 block discarded – undo
484 484
          * @param  array $rules the list of rule to validate
485 485
          */
486 486
         protected function validateField($field, array $rules) {
487
-            foreach($rules as $rule) {
487
+            foreach ($rules as $rule) {
488 488
                 $match = array();
489 489
                 $paramValue = null;
490 490
                 //Is the rule with parameter ??
@@ -502,7 +502,7 @@  discard block
 block discarded – undo
502 502
                 if (method_exists($this, $method)) {
503 503
                        call_user_func_array(array($this, $method), array($field, $realRuleName, $paramValue));
504 504
                 }
505
-                else{
505
+                else {
506 506
                     $this->forceError = true;
507 507
                     show_error('Invalid validaton rule "' . $realRuleName . '"');
508 508
                 }
@@ -1034,7 +1034,7 @@  discard block
 block discarded – undo
1034 1034
                 if (call_user_func_array($paramValue, array($value)) === false) {
1035 1035
                     $this->setFieldErrorWithRequiredCheck($field, $value, $rule, $paramValue);
1036 1036
                 }
1037
-            } else{
1037
+            } else {
1038 1038
                 $this->forceError = true;
1039 1039
                 show_error('The callback validation function/method "' . $paramValue . '" does not exist');
1040 1040
             }
Please login to merge, or discard this patch.