diff --git a/lib/Cake/Model/Behavior/TreeBehavior.php b/lib/Cake/Model/Behavior/TreeBehavior.php index b18b998bb..f65fdc553 100644 --- a/lib/Cake/Model/Behavior/TreeBehavior.php +++ b/lib/Cake/Model/Behavior/TreeBehavior.php @@ -673,7 +673,7 @@ class TreeBehavior extends ModelBehavior { $hasChildren = (bool)$children; if (!is_null($parentId)) { - if($hasChildren) { + if ($hasChildren) { $Model->updateAll( array($this->settings[$Model->alias]['left'] => $counter), array($Model->escapeField() => $parentId) diff --git a/lib/Cake/Test/Case/Controller/Component/Auth/BasicAuthenticateTest.php b/lib/Cake/Test/Case/Controller/Component/Auth/BasicAuthenticateTest.php index f5cf217fa..837758031 100644 --- a/lib/Cake/Test/Case/Controller/Component/Auth/BasicAuthenticateTest.php +++ b/lib/Cake/Test/Case/Controller/Component/Auth/BasicAuthenticateTest.php @@ -139,7 +139,8 @@ class BasicAuthenticateTest extends CakeTestCase { try { $this->auth->unauthenticated($request, $this->response); - } catch (UnauthorizedException $e) {} + } catch (UnauthorizedException $e) { + } $this->assertNotEmpty($e); diff --git a/lib/Cake/Test/Case/Controller/Component/Auth/DigestAuthenticateTest.php b/lib/Cake/Test/Case/Controller/Component/Auth/DigestAuthenticateTest.php index b1460a75a..1baefcb25 100644 --- a/lib/Cake/Test/Case/Controller/Component/Auth/DigestAuthenticateTest.php +++ b/lib/Cake/Test/Case/Controller/Component/Auth/DigestAuthenticateTest.php @@ -137,7 +137,8 @@ DIGEST; try { $this->auth->unauthenticated($request, $this->response); - } catch (UnauthorizedException $e) {} + } catch (UnauthorizedException $e) { + } $this->assertNotEmpty($e); diff --git a/lib/Cake/Test/Case/View/Helper/TextHelperTest.php b/lib/Cake/Test/Case/View/Helper/TextHelperTest.php index 20c8728d7..2b04d3ba2 100644 --- a/lib/Cake/Test/Case/View/Helper/TextHelperTest.php +++ b/lib/Cake/Test/Case/View/Helper/TextHelperTest.php @@ -345,24 +345,24 @@ class TextHelperTest extends CakeTestCase {
This is a test text
TEXT; - $result = $this->Text->autoParagraph($text); - $text = 'This is atest text
TEXT; - $result = $this->Text->autoParagraph($text); - $this->assertEquals($expected, $result); - $result = $this->Text->autoParagraph($text); - $text = 'This is atest text
TEXT; - $result = $this->Text->autoParagraph($text); - $this->assertEquals($expected, $result); + $result = $this->Text->autoParagraph($text); + $this->assertEquals($expected, $result); $text = <<