Passed
Push — 1.0.0-dev ( d740ad...cd373d )
by nguereza
02:54
created
core/classes/model/Model.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
     class Model {
41 41
 
42
-       /**
42
+        /**
43 43
          * This model's default database table. 
44 44
          * @var string the name of table
45 45
          */
@@ -628,7 +628,7 @@  discard block
 block discarded – undo
628 628
          * Only get deleted rows on the next call
629 629
          * 
630 630
          * @return object the current instance
631
-        */
631
+         */
632 632
         public function onlyRecordDeleted() {
633 633
             $this->returnOnlyRecordDeleted = true;
634 634
             return $this;
@@ -833,23 +833,23 @@  discard block
 block discarded – undo
833 833
             return false;
834 834
         }
835 835
 
836
-         /**
837
-         * Get the record return type array or object
838
-         * 
839
-         * @return string|boolean
840
-         */
836
+            /**
837
+             * Get the record return type array or object
838
+             * 
839
+             * @return string|boolean
840
+             */
841 841
         protected function getReturnType(){
842 842
             $type = false;
843 843
             if ($this->temporaryReturnRecordType == 'array') {
844
-               $type = 'array';
844
+                $type = 'array';
845 845
             }
846 846
             return $type;
847 847
         }
848 848
 
849
-         /**
850
-         * Check if soft delete is enable setting the condition
851
-         * @return object the current instance 
852
-         */
849
+            /**
850
+             * Check if soft delete is enable setting the condition
851
+             * @return object the current instance 
852
+             */
853 853
         protected function checkForSoftDelete(){
854 854
             if ($this->softDeleteStatus && $this->returnRecordWithDeleted !== true) {
855 855
                 $this->getQueryBuilder()->where(
@@ -860,16 +860,16 @@  discard block
 block discarded – undo
860 860
             return $this;
861 861
         }
862 862
 
863
-         /**
864
-         * Relate for "manyToOne" and "oneToMany"
865
-         * 
866
-         * @param  string $relationship the name of relation
867
-         * @param  string|array $options      the model and primary key values
868
-         * @param  object|array $row          the row to update
869
-         * @param  string $type the type can be "manyToOne", "oneToMany"
870
-         * 
871
-         * @return array|object the final row values
872
-         */
863
+            /**
864
+             * Relate for "manyToOne" and "oneToMany"
865
+             * 
866
+             * @param  string $relationship the name of relation
867
+             * @param  string|array $options      the model and primary key values
868
+             * @param  object|array $row          the row to update
869
+             * @param  string $type the type can be "manyToOne", "oneToMany"
870
+             * 
871
+             * @return array|object the final row values
872
+             */
873 873
         protected function relateOneToManyAndManyToOne($relationship, $options, $row, $type){
874 874
             if (in_array($relationship, $this->withs)) {
875 875
                 get_instance()->loader->model($options['model'], $relationship . '_model');
Please login to merge, or discard this patch.