Passed
Push — 1.0.0-dev ( e509c6...294a70 )
by nguereza
02:59
created
core/libraries/Email.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
      * @link      http://github.com/eoghanobrien/php-simple-mail
49 49
      */
50 50
 
51
-    class Email extends BaseClass{
51
+    class Email extends BaseClass {
52 52
         /**
53 53
          * @var int $_wrap
54 54
          */
Please login to merge, or discard this patch.
core/classes/database/Database.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -410,7 +410,7 @@
 block discarded – undo
410 410
          *
411 411
          * @return object|void
412 412
          */
413
-        protected function setConnectionUsingConfigFile(){
413
+        protected function setConnectionUsingConfigFile() {
414 414
             $dbConfigFromFile = $this->getDatabaseConfigFromFile();
415 415
             $connection = &class_loader('DatabaseConnection', 'classes/database');
416 416
             $connection->setConfig($dbConfigFromFile);
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
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
             $_keys = array();
415 415
             foreach ($keys as $k => $v) {
416 416
                 $v = $this->checkForNullValue($v);
417
-                if (! is_numeric($v)) {
417
+                if (!is_numeric($v)) {
418 418
                     $v = $this->connection->escape($v, $escape);
419 419
                 }
420 420
                 $_keys[] = $v;
@@ -727,7 +727,7 @@  discard block
 block discarded – undo
727 727
          * 
728 728
          * @return string|null
729 729
          */
730
-         protected function buildQueryPart($property, $command = ''){
730
+         protected function buildQueryPart($property, $command = '') {
731 731
             if (!empty($this->{$property})) {
732 732
                 return $command . $this->{$property};
733 733
             }
@@ -742,7 +742,7 @@  discard block
 block discarded – undo
742 742
          * @param string $clause the clause type "IS NULL", "IS NOT NULLs"
743 743
          * @return object        the current DatabaseQueryBuilder instance
744 744
          */
745
-        protected function whereIsNullAndNotNull($field, $andOr = 'AND', $clause = 'IS NULL'){
745
+        protected function whereIsNullAndNotNull($field, $andOr = 'AND', $clause = 'IS NULL') {
746 746
             if (is_array($field)) {
747 747
                 foreach ($field as $f) {
748 748
                     $this->whereIsNullAndNotNull($f, $andOr, $clause);
@@ -760,7 +760,7 @@  discard block
 block discarded – undo
760 760
          *
761 761
          * @return object the current instance
762 762
          */
763
-        protected function setSelectStr($newSelect){
763
+        protected function setSelectStr($newSelect) {
764 764
             $this->select = (($this->select == '*' || empty($this->select)) 
765 765
                                     ? $newSelect 
766 766
                                     : $this->select . ', ' . $newSelect);
@@ -774,8 +774,8 @@  discard block
 block discarded – undo
774 774
          * @return string        the empty string if the value is null
775 775
          * otherwise the same value will be returned
776 776
          */
777
-        protected function checkForNullValue($value){
778
-            if(is_null($value)){
777
+        protected function checkForNullValue($value) {
778
+            if (is_null($value)) {
779 779
                 return '';
780 780
             }
781 781
             return $value;
Please login to merge, or discard this patch.
core/libraries/FormValidation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
          * @return object the current instance
425 425
          */
426 426
         protected function filterValidationData() {
427
-            foreach ($this->data as $key => $value ) {
427
+            foreach ($this->data as $key => $value) {
428 428
                 if (is_array($value)) {
429 429
                    $this->data[$key] = array_map('trim', $value);
430 430
                 } else {
@@ -1037,7 +1037,7 @@  discard block
 block discarded – undo
1037 1037
                 if (call_user_func_array($paramValue, array($value)) === false) {
1038 1038
                     $this->setFieldErrorWithRequiredCheck($field, $value, $rule, $paramValue);
1039 1039
                 }
1040
-            } else{
1040
+            } else {
1041 1041
                 $this->forceError = true;
1042 1042
                 show_error('The callback validation function/method "' . $paramValue . '" does not exist');
1043 1043
             }
Please login to merge, or discard this patch.
core/classes/database/DatabaseQueryRunner.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
             if ((double) $responseTime >= 1.000000) {
122 122
                 $this->logger->warning(
123 123
                                         'High response time while processing database query [' . $this->query . '].' 
124
-                                        . 'The response time is [' .$responseTime . '] sec.'
124
+                                        . 'The response time is [' . $responseTime . '] sec.'
125 125
                                         );
126 126
             }
127 127
     		
Please login to merge, or discard this patch.
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
                 //just return true
184 184
                 return null;
185 185
             }
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
@@ -32,8 +32,8 @@
 block discarded – undo
32 32
             <p>Required PHP version : <b>PHP >= <?php echo TNH_REQUIRED_PHP_MIN_VERSION; ?>, PHP <= <?php echo TNH_REQUIRED_PHP_MAX_VERSION; ?></b></p>
33 33
             <p>Release date : <b><?php echo TNH_RELEASE_DATE; ?></b></p>
34 34
             <hr />
35
-            <p>Current controller: <b class = "text-muted label-danger"><?php echo APPS_CONTROLLER_PATH . 'Home.php';?></b>
36
-            <p>Current view: <b class = "text-muted label-danger"><?php echo APPS_VIEWS_PATH . 'home.php';?></b>
35
+            <p>Current controller: <b class = "text-muted label-danger"><?php echo APPS_CONTROLLER_PATH . 'Home.php'; ?></b>
36
+            <p>Current view: <b class = "text-muted label-danger"><?php echo APPS_VIEWS_PATH . 'home.php'; ?></b>
37 37
           </div>
38 38
         </div>
39 39
       </div>
Please login to merge, or discard this patch.