Browse Source

Fixing typos

Jose Lorenzo Rodriguez 12 years ago
parent
commit
b5d4ac428a
2 changed files with 4 additions and 4 deletions
  1. 1 1
      src/Database/Schema/Table.php
  2. 3 3
      src/Model/Behavior/TreeBehavior.php

+ 1 - 1
src/Database/Schema/Table.php

@@ -506,7 +506,7 @@ class Table {
 	}
 
 /**
- * Get/Set whether the table is temporrary in the database
+ * Get/Set whether the table is temporary in the database
  *
  * @param boolean|null $set whether or not the table is to be temporary
  * @return this|boolean Either the table instance, the current temporary setting

+ 3 - 3
src/Model/Behavior/TreeBehavior.php

@@ -152,7 +152,7 @@ class TreeBehavior extends Behavior {
 
 		if (!$parentNode) {
 			throw new \Cake\ORM\Error\RecordNotFoundException(
-				"Parent node \"{$config['parent']}\ was not found in the tree."
+				"Parent node \"{$config['parent']}\" was not found in the tree."
 			);
 		}
 
@@ -185,7 +185,7 @@ class TreeBehavior extends Behavior {
 			));
 		}
 
-		// Values for moving )o the left
+		// Values for moving to the left
 		$diff = $right - $left + 1;
 		$targetLeft = $parentRight;
 		$targetRight = $diff + $parentRight - 1;
@@ -358,7 +358,7 @@ class TreeBehavior extends Behavior {
 			->first();
 
 		if (!$node) {
-			throw new \Cake\ORM\Error\RecordNotFoundException("Node \"{$for}\ was not found in the tree.");
+			throw new \Cake\ORM\Error\RecordNotFoundException("Node \"{$for}\" was not found in the tree.");
 		}
 
 		return $this->_scope($query)