Passed
Pull Request — 1.0.0-dev (#4)
by nguereza
13:14
created
core/classes/database/DatabaseQueryRunner.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@
 block discarded – undo
170 170
                 //by default count() return 1 if the parameter is not an array
171 171
                 //object or object implements Countable.
172 172
                 if (is_array($result) || is_object($result) || $result instanceof Countable) {
173
-                     $numRows = count($result);  
173
+                        $numRows = count($result);  
174 174
                 }
175 175
             } else {
176 176
                 $numRows = $this->pdoStatment->rowCount(); 
Please login to merge, or discard this patch.
core/libraries/Form.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
                 $attributes['accept-charset'] = get_config('charset', 'UTF-8');
46 46
             }
47 47
             if (!empty($enctype)) {
48
-                 $attributes['enctype'] = $enctype;
48
+                    $attributes['enctype'] = $enctype;
49 49
             }
50 50
             $str .= attributes_to_string($attributes);
51 51
             $str .= '>';
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 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -781,12 +781,12 @@
 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
             }
788 788
             return null;
789
-         }
789
+            }
790 790
 
791 791
 
792 792
         /**
Please login to merge, or discard this 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.