Mark Scherer 9 years ago
parent
commit
38fbb32749

+ 1 - 1
src/Auth/AuthUserTrait.php

@@ -65,7 +65,7 @@ trait AuthUserTrait {
 	 * @return boolean
 	 */
 	public function isMe($userId, $field = 'id') {
-		return ($userId && (string)$userId === (string)$this->user($field));
+		return $userId && (string)$userId === (string)$this->user($field);
 	}
 
 	/**

+ 2 - 2
src/Model/Behavior/PasswordableBehavior.php

@@ -393,7 +393,7 @@ class PasswordableBehavior extends Behavior {
 		}
 
 		$compareValue = $context['data'][$options['compare']];
-		return ($compareValue === $value);
+		return $compareValue === $value;
 	}
 
 	/**
@@ -410,7 +410,7 @@ class PasswordableBehavior extends Behavior {
 		}
 
 		$compareValue = $context['data'][$options['compare']];
-		return ($compareValue !== $data);
+		return $compareValue !== $data;
 	}
 
 	/**

+ 1 - 1
src/Model/Table/Table.php

@@ -223,7 +223,7 @@ class Table extends ShimTable {
 			settype($compareValue, $matching[$options['cast']]);
 			settype($value, $matching[$options['cast']]);
 		}
-		return ($compareValue === $value);
+		return $compareValue === $value;
 	}
 
 	/**

+ 2 - 2
src/Utility/Number.php

@@ -210,7 +210,7 @@ class Number extends CakeNumber {
 	 * @return float result
 	 */
 	public static function roundUpTo($number, $increments = 1) {
-		return (ceil($number / $increments) * $increments);
+		return ceil($number / $increments) * $increments;
 	}
 
 	/**
@@ -221,7 +221,7 @@ class Number extends CakeNumber {
 	 * @return float result
 	 */
 	public static function roundDownTo($number, $increments = 1) {
-		return (floor($number / $increments) * $increments);
+		return floor($number / $increments) * $increments;
 	}
 
 	/**

+ 1 - 1
src/Utility/Time.php

@@ -313,7 +313,7 @@ class Time extends CakeTime {
 	 */
 	public static function cWeekMod($num) {
 		$base = 6;
-		return ($num - $base * floor($num / $base));
+		return $num - $base * floor($num / $base);
 	}
 
 	/**