Skip to content

Commit

Permalink
Fixed CS issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Apr 5, 2014
1 parent 1015a0d commit bec1ba2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Model/Behavior/TreeBehavior.php
Expand Up @@ -299,7 +299,6 @@ public function childCount($node, $direct = false) {
*
* @param array $options Array of options as described above
* @return \Cake\ORM\Query
* @throws \Cake\ORM\Error\RecordNotFoundException When node was not found
* @throws \InvalidArgumentException When the 'for' key is not passed in $options
*/
public function findChildren($query, $options) {
Expand Down Expand Up @@ -425,7 +424,7 @@ public function moveUp($node, $number = 1) {
$node->set($left, $newLeft);
$node->set($right, $newLeft + ($nodeRight - $nodeLeft));
}

$node->dirty($left, false);
$node->dirty($right, false);
return $node;
Expand Down Expand Up @@ -489,7 +488,7 @@ public function moveDown($node, $number = 1) {
$node->set($left, $newLeft);
$node->set($right, $newLeft + ($nodeRight - $nodeLeft));
}

$node->dirty($left, false);
$node->dirty($right, false);
return $node;
Expand All @@ -500,6 +499,7 @@ public function moveDown($node, $number = 1) {
*
* @param mixed $id
* @return Cake\ORM\Entity
* @throws \Cake\ORM\Error\RecordNotFoundException When node was not found
*/
protected function _getNode($id) {
$config = $this->config();
Expand Down

0 comments on commit bec1ba2

Please sign in to comment.