Passed
Push — 1.0.0-dev ( d740ad...cd373d )
by nguereza
02:54
created
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
             }
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
         public function saveCacheContent($result) {
180 180
             //set some attributes values
181 181
             $this->setPropertiesValues();
182
-            if(! $this->isSelectQuery || ! $this->dbCacheStatus){
182
+            if (!$this->isSelectQuery || !$this->dbCacheStatus) {
183 183
                 return null;
184 184
             }
185 185
             $this->setCacheFromSuperInstanceIfNull();
Please login to merge, or discard this patch.
core/classes/model/Model.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
                 $instance = $db;
185 185
             } else {
186 186
                 $obj = & get_instance();
187
-                if (isset($obj->database)){
187
+                if (isset($obj->database)) {
188 188
                     /**
189 189
                      * NOTE: Need use "clone" because some Model need have the personal instance of the database library
190 190
                      * to prevent duplication
@@ -838,7 +838,7 @@  discard block
 block discarded – undo
838 838
          * 
839 839
          * @return string|boolean
840 840
          */
841
-        protected function getReturnType(){
841
+        protected function getReturnType() {
842 842
             $type = false;
843 843
             if ($this->temporaryReturnRecordType == 'array') {
844 844
                $type = 'array';
@@ -850,7 +850,7 @@  discard block
 block discarded – undo
850 850
          * Check if soft delete is enable setting the condition
851 851
          * @return object the current instance 
852 852
          */
853
-        protected function checkForSoftDelete(){
853
+        protected function checkForSoftDelete() {
854 854
             if ($this->softDeleteStatus && $this->returnRecordWithDeleted !== true) {
855 855
                 $this->getQueryBuilder()->where(
856 856
                                                 $this->softDeleteTableColumn, 
@@ -870,11 +870,11 @@  discard block
 block discarded – undo
870 870
          * 
871 871
          * @return array|object the final row values
872 872
          */
873
-        protected function relateOneToManyAndManyToOne($relationship, $options, $row, $type){
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');
876 876
                 $model = get_instance()->{$relationship . '_model'};
877
-                if($type == 'manyToOne'){
877
+                if ($type == 'manyToOne') {
878 878
                     if (is_object($row)) {
879 879
                         $row->{$relationship} = $model->getSingleRecord($row->{$options['primary_key']});
880 880
                     } else {
Please login to merge, or discard this patch.