Skip to content

Commit

Permalink
Removing extra space in the extract() calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Jelle Henkens committed May 13, 2012
1 parent 64f03ac commit dbd826f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/Cake/Model/Behavior/TreeBehavior.php
Expand Up @@ -244,7 +244,7 @@ public function beforeSave(Model $Model) {
*/
public function childCount(Model $Model, $id = null, $direct = false) {
if (is_array($id)) {
extract (array_merge(array('id' => null), $id));
extract(array_merge(array('id' => null), $id));
}
if ($id === null && $Model->id) {
$id = $Model->id;
Expand Down Expand Up @@ -290,7 +290,7 @@ public function childCount(Model $Model, $id = null, $direct = false) {
*/
public function children(Model $Model, $id = null, $direct = false, $fields = null, $order = null, $limit = null, $page = 1, $recursive = null) {
if (is_array($id)) {
extract (array_merge(array('id' => null), $id));
extract(array_merge(array('id' => null), $id));
}
$overrideRecursive = $recursive;

Expand Down Expand Up @@ -403,7 +403,7 @@ public function generateTreeList(Model $Model, $conditions = null, $keyPath = nu
*/
public function getParentNode(Model $Model, $id = null, $fields = null, $recursive = null) {
if (is_array($id)) {
extract (array_merge(array('id' => null), $id));
extract(array_merge(array('id' => null), $id));
}
$overrideRecursive = $recursive;
if (empty ($id)) {
Expand Down Expand Up @@ -436,7 +436,7 @@ public function getParentNode(Model $Model, $id = null, $fields = null, $recursi
*/
public function getPath(Model $Model, $id = null, $fields = null, $recursive = null) {
if (is_array($id)) {
extract (array_merge(array('id' => null), $id));
extract(array_merge(array('id' => null), $id));
}
$overrideRecursive = $recursive;
if (empty ($id)) {
Expand Down Expand Up @@ -473,7 +473,7 @@ public function getPath(Model $Model, $id = null, $fields = null, $recursive = n
*/
public function moveDown(Model $Model, $id = null, $number = 1) {
if (is_array($id)) {
extract (array_merge(array('id' => null), $id));
extract(array_merge(array('id' => null), $id));
}
if (!$number) {
return false;
Expand Down Expand Up @@ -531,7 +531,7 @@ public function moveDown(Model $Model, $id = null, $number = 1) {
*/
public function moveUp(Model $Model, $id = null, $number = 1) {
if (is_array($id)) {
extract (array_merge(array('id' => null), $id));
extract(array_merge(array('id' => null), $id));
}
if (!$number) {
return false;
Expand Down Expand Up @@ -595,7 +595,7 @@ public function moveUp(Model $Model, $id = null, $number = 1) {
*/
public function recover(Model $Model, $mode = 'parent', $missingParentAction = null) {
if (is_array($mode)) {
extract (array_merge(array('mode' => 'parent'), $mode));
extract(array_merge(array('mode' => 'parent'), $mode));
}
extract($this->settings[$Model->alias]);
$Model->recursive = $recursive;
Expand Down Expand Up @@ -713,7 +713,7 @@ public function reorder(Model $Model, $options = array()) {
*/
public function removeFromTree(Model $Model, $id = null, $delete = false) {
if (is_array($id)) {
extract (array_merge(array('id' => null), $id));
extract(array_merge(array('id' => null), $id));
}
extract($this->settings[$Model->alias]);

Expand Down

0 comments on commit dbd826f

Please sign in to comment.