Passed
Push — 1.0.0-dev ( 459011...73c7ea )
by nguereza
03:08
created
core/classes/Response.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -501,18 +501,18 @@
 block discarded – undo
501 501
             }
502 502
         }
503 503
 
504
-         /**
505
-         * Set the mandory headers, like security, etc.
506
-         */
504
+            /**
505
+             * Set the mandory headers, like security, etc.
506
+             */
507 507
         protected static function setRequiredHeaders() {
508 508
             $requiredHeaders = array(
509 509
                                 'X-XSS-Protection' => '1; mode=block',
510 510
                                 'X-Frame-Options'  => 'SAMEORIGIN'
511 511
                             );
512 512
             foreach ($requiredHeaders as $key => $value) {
513
-               if (!isset(self::$headers[$key])) {
513
+                if (!isset(self::$headers[$key])) {
514 514
                     self::$headers[$key] = $value;
515
-               } 
515
+                } 
516 516
             }
517 517
         }
518 518
     }
Please login to merge, or discard this patch.
core/classes/database/DatabaseCache.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@
 block discarded – undo
204 204
             //If is the SELECT query
205 205
             $this->isSqlSELECTQuery = stristr($this->query, 'SELECT') !== false;
206 206
 
207
-             //if can use cache feature for this query
207
+                //if can use cache feature for this query
208 208
             $this->dbCacheStatus = get_config('cache_enable', false) && $this->cacheTtl > 0;
209 209
         }
210 210
         
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
         public function getCacheContent() {
155 155
             //set some attributes values
156 156
             $this->setPropertiesValues();
157
-            if(! $this->isSqlSELECTQuery || ! $this->dbCacheStatus){
157
+            if (!$this->isSqlSELECTQuery || !$this->dbCacheStatus) {
158 158
                 $this->logger->info('The cache is not enabled for this query or is not a SELECT query'); 
159 159
                 return null;
160 160
             }
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
         public function saveCacheContent($result) {
182 182
             //set some attributes values
183 183
             $this->setPropertiesValues();
184
-            if(! $this->isSqlSELECTQuery || ! $this->dbCacheStatus){
184
+            if (!$this->isSqlSELECTQuery || !$this->dbCacheStatus) {
185 185
                 //just return true
186 186
                 return true;
187 187
             }
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
@@ -724,12 +724,12 @@
 block discarded – undo
724 724
          * 
725 725
          * @return string|null
726 726
          */
727
-         protected function buildQueryPart($property, $command = ''){
727
+            protected function buildQueryPart($property, $command = ''){
728 728
             if (!empty($this->{$property})) {
729 729
                 return $command . ' ' . $this->{$property};
730 730
             }
731 731
             return null;
732
-         }
732
+            }
733 733
 
734 734
 	
735 735
         /**
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -724,7 +724,7 @@  discard block
 block discarded – undo
724 724
          * 
725 725
          * @return string|null
726 726
          */
727
-         protected function buildQueryPart($property, $command = ''){
727
+         protected function buildQueryPart($property, $command = '') {
728 728
             if (!empty($this->{$property})) {
729 729
                 return $command . ' ' . $this->{$property};
730 730
             }
@@ -809,7 +809,7 @@  discard block
 block discarded – undo
809 809
          *
810 810
          * @return object the current instance
811 811
          */
812
-        protected function setSelectStr($newSelect){
812
+        protected function setSelectStr($newSelect) {
813 813
             $this->select = (($this->select == '*' || empty($this->select)) 
814 814
                                     ? $newSelect 
815 815
                                     : $this->select . ', ' . $newSelect);
@@ -823,8 +823,8 @@  discard block
 block discarded – undo
823 823
          * @return string        the empty string if the value is null
824 824
          * otherwise the same value will be returned
825 825
          */
826
-        protected function checkForNullValue($value){
827
-            if(is_null($value)){
826
+        protected function checkForNullValue($value) {
827
+            if (is_null($value)) {
828 828
                 return '';
829 829
             }
830 830
             return $value;
Please login to merge, or discard this patch.
core/classes/database/Database.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -436,9 +436,9 @@
 block discarded – undo
436 436
             $this->queryCount++;
437 437
             
438 438
             $queryResult = $this->queryRunner->setQuery($query)
439
-                                             ->setReturnType($returnAsList)
440
-                                             ->setReturnAsArray($returnAsArray)
441
-                                             ->execute();
439
+                                                ->setReturnType($returnAsList)
440
+                                                ->setReturnAsArray($returnAsArray)
441
+                                                ->execute();
442 442
 
443 443
             if (is_object($queryResult)) {
444 444
                 $this->result  = $queryResult->getResult();
Please login to merge, or discard this patch.