Passed
Push — 1.0.0-dev ( 523bb8...29a38b )
by nguereza
02:29
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.
core/bootstrap.php 1 patch
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -1,32 +1,32 @@
 block discarded – undo
1 1
 <?php
2 2
     defined('ROOT_PATH') || exit('Access denied');
3
-     /**
4
-     * TNH Framework
5
-     *
6
-     * A simple PHP framework using HMVC architecture
7
-     *
8
-     * This content is released under the MIT License (MIT)
9
-     *
10
-     * Copyright (c) 2017 TNH Framework
11
-     *
12
-     * Permission is hereby granted, free of charge, to any person obtaining a copy
13
-     * of this software and associated documentation files (the "Software"), to deal
14
-     * in the Software without restriction, including without limitation the rights
15
-     * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
-     * copies of the Software, and to permit persons to whom the Software is
17
-     * furnished to do so, subject to the following conditions:
18
-     *
19
-     * The above copyright notice and this permission notice shall be included in all
20
-     * copies or substantial portions of the Software.
21
-     *
22
-     * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
-     * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
-     * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
-     * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
-     * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
-     * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
-     * SOFTWARE.
29
-     */
3
+        /**
4
+         * TNH Framework
5
+         *
6
+         * A simple PHP framework using HMVC architecture
7
+         *
8
+         * This content is released under the MIT License (MIT)
9
+         *
10
+         * Copyright (c) 2017 TNH Framework
11
+         *
12
+         * Permission is hereby granted, free of charge, to any person obtaining a copy
13
+         * of this software and associated documentation files (the "Software"), to deal
14
+         * in the Software without restriction, including without limitation the rights
15
+         * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
+         * copies of the Software, and to permit persons to whom the Software is
17
+         * furnished to do so, subject to the following conditions:
18
+         *
19
+         * The above copyright notice and this permission notice shall be included in all
20
+         * copies or substantial portions of the Software.
21
+         *
22
+         * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
+         * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
+         * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
+         * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
+         * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
+         * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
+         * SOFTWARE.
29
+         */
30 30
 
31 31
     /**
32 32
      *  @file bootstrap.php
Please login to merge, or discard this patch.
core/classes/model/DBSessionHandlerModel.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@
 block discarded – undo
29 29
      */
30 30
 	
31 31
     /**
32
-    * DB session handler model class
33
-    */
32
+     * DB session handler model class
33
+     */
34 34
     abstract class DBSessionHandlerModel extends Model {
35 35
 		
36 36
         /**
Please login to merge, or discard this patch.