Browse Source

Fixing a few CS errors

Jose Lorenzo Rodriguez 12 years ago
parent
commit
befeb4d287

+ 4 - 4
src/Database/Expression/TupleComparison.php

@@ -14,8 +14,8 @@
  */
 namespace Cake\Database\Expression;
 
-use Cake\Database\Expression\Comparison;
 use Cake\Database\ExpressionInterface;
+use Cake\Database\Expression\Comparison;
 use Cake\Database\ValueBinder;
 
 /**
@@ -108,7 +108,7 @@ class TupleComparison extends Comparison {
 		return implode(', ', $values);
 	}
 
-/*
+/**
  * Traverses the tree of expressions stored in this object, visiting first
  * expressions in the left hand side and the the rest.
  *
@@ -162,8 +162,8 @@ class TupleComparison extends Comparison {
  *
  * @return boolean
  */
-	protected function isMulti() {
-		return in_array(strtolower($this->_conjunction), ['in', 'not in']);;
+	public function isMulti() {
+		return in_array(strtolower($this->_conjunction), ['in', 'not in']);
 	}
 
 }

+ 1 - 1
src/ORM/Association/BelongsToMany.php

@@ -884,7 +884,7 @@ class BelongsToMany extends Association {
  */
 	protected function _linkField($options) {
 		$links = [];
-		$name =  $this->_junctionAssociationName();
+		$name = $this->_junctionAssociationName();
 
 		foreach ((array)$options['foreignKey'] as $key) {
 			$links[] = sprintf('%s.%s', $name, $key);

+ 1 - 1
src/ORM/Table.php

@@ -1222,7 +1222,7 @@ class Table implements EventListener {
  * @return null|mixed Either null or the new primary key value.
  */
 	protected function _newId($primary) {
-		if (!$primary || count((array)$primary) > 1)  {
+		if (!$primary || count((array)$primary) > 1) {
 			return null;
 		}
 		$typeName = $this->schema()->columnType($primary[0]);