This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  a92dce506563dfc6996c43333ed9e42dcf6599a3 (commit)
      from  fc9c906d54f931b2eb6ae2e16b3cd7f9913f425e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=a92dce506563dfc6996c43333ed9e42dcf6599a3

commit a92dce506563dfc6996c43333ed9e42dcf6599a3
Author: Marc-Etienne Vargenau <[email protected]>
Date:   Fri Mar 4 18:22:56 2016 +0100

    Whitespace only

diff --git a/src/common/pm/import_utils.php b/src/common/pm/import_utils.php
index a87af32..904441e 100644
--- a/src/common/pm/import_utils.php
+++ b/src/common/pm/import_utils.php
@@ -23,7 +23,7 @@
 
 require_once $gfcommon.'pm/ProjectTaskFactory.class.php';
 
-function &pm_import_tasks($group_project_id,&$tasks,$replace=true) {
+function &pm_import_tasks($group_project_id, &$tasks, $replace=true) {
        $was_error = false;
 
        $pg = projectgroup_get_object($group_project_id);
diff --git a/src/common/valid/Rule.class.php b/src/common/valid/Rule.class.php
index 1953aff..6f89fdf 100644
--- a/src/common/valid/Rule.class.php
+++ b/src/common/valid/Rule.class.php
@@ -137,7 +137,9 @@ class Rule_lessOrEqual extends Rule_Comparator {
  */
 class Rule_WhiteList extends Rule_Comparator {
        function isValid($val) {
-               if(is_array($this->ref) && count($this->ref) > 0 && 
in_array($val, $this->ref)) {
+               if(is_array($this->ref)
+                  && count($this->ref) > 0
+                  && in_array($val, $this->ref)) {
                        return true;
                }
                return false;
@@ -156,8 +158,9 @@ class Rule_Int extends Rule {
        function checkFormat($val) {
                if(preg_match('/^([+-]?[1-9][0-9]*|[+-]?0)$/', $val)) {
                        return true;
+               } else {
+                       return false;
                }
-               return false;
        }
 
        function isValid($val) {
@@ -170,8 +173,9 @@ class Rule_Int extends Rule {
                        } else {
                                return false;
                        }
+               } else {
+                       return false;
                }
-               return false;
        }
 }
 
@@ -189,7 +193,8 @@ class Rule_String extends Rule {
  */
 class Rule_NoCr extends Rule {
        function isValid($val) {
-               if(is_string($val) && strpos($val, 0x0A) === false && 
strpos($val, 0x0D) === false && strpos($val, 0x00) === false) {
+               if(is_string($val) && strpos($val, 0x0A) === false && 
strpos($val, 0x0D) === false
+                  && strpos($val, 0x00) === false) {
                        return true;
                }
                return false;
@@ -221,7 +226,7 @@ class Rule_Email extends Rule {
                                $valid = $valid & 
$this->validEmail(trim(rtrim($email)));
                        }
                } else {
-               // $val must contains only one email address
+                       // $val must contains only one email address
                        $valid = $this->validEmail($val);
                }
                return $valid;
@@ -238,7 +243,8 @@ class Rule_Email extends Rule {
         */
        function validEmail($email) {
                $valid_chars='-!#$%&\'*+0-9=?A-Z^_`a-z{|}~\.';
-               if (array_key_exists('sys_disable_subdomains', $GLOBALS) && 
$GLOBALS['sys_disable_subdomains']) {
+               if (array_key_exists('sys_disable_subdomains', $GLOBALS)
+                       && $GLOBALS['sys_disable_subdomains']) {
                        $valid_domain='['.$valid_chars.']+';
                } else {
                        
$valid_domain='['.$valid_chars.']+\.['.$valid_chars.']+';

-----------------------------------------------------------------------

Summary of changes:
 src/common/pm/import_utils.php  |  2 +-
 src/common/valid/Rule.class.php | 18 ++++++++++++------
 2 files changed, 13 insertions(+), 7 deletions(-)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to