Test Failed
Push — 1.0.0-dev ( 970760...fdf7af )
by nguereza
02:47
created
core/classes/database/DatabaseCache.php 1 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/common.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
148 148
         static $cfg;
149 149
         if (empty($cfg)) {
150 150
             $cfg[0] = & load_configurations();
151
-            if(! is_array($cfg[0])){
151
+            if (!is_array($cfg[0])) {
152 152
                 $cfg[0] = array();
153 153
             }
154 154
         }
Please login to merge, or discard this patch.
core/classes/DBSessionHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -343,7 +343,7 @@
 block discarded – undo
343 343
          * Get some parameters data need like ip address, hostname, browser info, etc.
344 344
          * @return array
345 345
          */
346
-        protected function getSessionDataParams(){
346
+        protected function getSessionDataParams() {
347 347
             $this->getLoader()->functions('user_agent'); 
348 348
             $this->getLoader()->library('Browser'); 
349 349
             
Please login to merge, or discard this patch.
core/classes/database/DatabaseQueryBuilder.php 1 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;
@@ -710,7 +710,7 @@  discard block
 block discarded – undo
710 710
          * 
711 711
          * @return string|null
712 712
          */
713
-         protected function buildQueryPart($property, $command = ''){
713
+         protected function buildQueryPart($property, $command = '') {
714 714
             if (!empty($this->{$property})) {
715 715
                 return $command . ' ' . $this->{$property};
716 716
             }
@@ -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/classes/Loader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
          * @param  string $appLang the application language, only if type = "language"
313 313
          * @return string|null          the full file path
314 314
          */
315
-        protected static function getDefaultFilePathForFunctionLanguage($file, $type, $appLang = null){
315
+        protected static function getDefaultFilePathForFunctionLanguage($file, $type, $appLang = null) {
316 316
             $searchDir = null;
317 317
             if ($type == 'function') {
318 318
                $searchDir = array(FUNCTIONS_PATH, CORE_FUNCTIONS_PATH);
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
          * @param  string|null $module the module if is not null will return it
339 339
          * @return string|null
340 340
          */
341
-        protected static function getModuleFromSuperController($module){
341
+        protected static function getModuleFromSuperController($module) {
342 342
             $obj = & get_instance();
343 343
             if (!$module && !empty($obj->moduleName)) {
344 344
                 $module = $obj->moduleName;
Please login to merge, or discard this patch.
core/libraries/Upload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -277,7 +277,7 @@
 block discarded – undo
277 277
          * Set the file array data generally in constructor this is already set using $_FILES
278 278
          * @param array $fileArray the new value
279 279
          */
280
-        public function setFileArray($fileArray){
280
+        public function setFileArray($fileArray) {
281 281
             $this->file_array = $fileArray;
282 282
         }
283 283
 
Please login to merge, or discard this patch.
core/classes/Module.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
         public function add($name) {
67 67
             $logger = self::getLogger();
68 68
             if (in_array($name, self::$list)) {
69
-               $logger->info('The module [' .$name. '] already added skipping.');
69
+               $logger->info('The module [' . $name . '] already added skipping.');
70 70
                return $this;
71 71
             }
72 72
             self::$list[] = $name;
Please login to merge, or discard this patch.
app/views/home.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,8 +34,8 @@
 block discarded – undo
34 34
             <p>Author : <b><?php echo TNH_AUTHOR; ?></b></p>
35 35
             <p>Author E-mail : <b><?php echo TNH_AUTHOR_EMAIL; ?></b></p>
36 36
             <hr />
37
-            <p>Current controller: <b class = "text-muted label-danger"><?php echo APPS_CONTROLLER_PATH . 'Home.php';?></b>
38
-            <p>Current view: <b class = "text-muted label-danger"><?php echo APPS_VIEWS_PATH . 'home.php';?></b>
37
+            <p>Current controller: <b class = "text-muted label-danger"><?php echo APPS_CONTROLLER_PATH . 'Home.php'; ?></b>
38
+            <p>Current view: <b class = "text-muted label-danger"><?php echo APPS_VIEWS_PATH . 'home.php'; ?></b>
39 39
           </div>
40 40
         </div>
41 41
       </div>
Please login to merge, or discard this patch.
core/classes/Url.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
142 142
          * @return string the final path after add suffix if configured
143 143
          * otherwise the same value will be returned
144 144
          */
145
-        protected static function addSuffixInPath($path){
145
+        protected static function addSuffixInPath($path) {
146 146
             $suffix = get_config('url_suffix');
147 147
             if ($suffix && $path) {
148 148
                 if (strpos($path, '?') !== false) {
Please login to merge, or discard this patch.