From d809b1480e352be58cb045238b3ef40ebce3cf18 Mon Sep 17 00:00:00 2001
From: ADmad
Date: Mon, 1 Apr 2013 02:16:52 +0530
Subject: [PATCH] Fix CS errors
---
lib/Cake/Model/Behavior/TreeBehavior.php | 2 +-
.../Component/Auth/BasicAuthenticateTest.php | 3 ++-
.../Component/Auth/DigestAuthenticateTest.php | 3 ++-
.../Test/Case/View/Helper/TextHelperTest.php | 20 +++++++++----------
lib/Cake/Utility/Validation.php | 3 +--
lib/Cake/View/Helper/TextHelper.php | 2 +-
6 files changed, 17 insertions(+), 16 deletions(-)
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 a
test text';
- $expected = <<Text->autoParagraph($text);
+ $text = 'This is a
test text';
+ $expected = <<This is a
test text
TEXT;
- $result = $this->Text->autoParagraph($text);
- $this->assertEquals($expected, $result);
- $result = $this->Text->autoParagraph($text);
- $text = 'This is a
test text';
- $expected = <<Text->autoParagraph($text);
+ $this->assertEquals($expected, $result);
+ $result = $this->Text->autoParagraph($text);
+ $text = 'This is a
test text';
+ $expected = <<This is a
test text
TEXT;
- $result = $this->Text->autoParagraph($text);
- $this->assertEquals($expected, $result);
+ $result = $this->Text->autoParagraph($text);
+ $this->assertEquals($expected, $result);
$text = <<