Skip to content

Commit d809b14

Browse files
committed
Fix CS errors
1 parent d681a19 commit d809b14

File tree

6 files changed

+17
-16
lines changed

6 files changed

+17
-16
lines changed

lib/Cake/Model/Behavior/TreeBehavior.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ protected function _recoverByParentId(Model $Model, $counter = 1, $parentId = nu
673673
$hasChildren = (bool)$children;
674674

675675
if (!is_null($parentId)) {
676-
if($hasChildren) {
676+
if ($hasChildren) {
677677
$Model->updateAll(
678678
array($this->settings[$Model->alias]['left'] => $counter),
679679
array($Model->escapeField() => $parentId)

lib/Cake/Test/Case/Controller/Component/Auth/BasicAuthenticateTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ public function testAuthenticateChallenge() {
139139

140140
try {
141141
$this->auth->unauthenticated($request, $this->response);
142-
} catch (UnauthorizedException $e) {}
142+
} catch (UnauthorizedException $e) {
143+
}
143144

144145
$this->assertNotEmpty($e);
145146

lib/Cake/Test/Case/Controller/Component/Auth/DigestAuthenticateTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ public function testAuthenticateChallenge() {
137137

138138
try {
139139
$this->auth->unauthenticated($request, $this->response);
140-
} catch (UnauthorizedException $e) {}
140+
} catch (UnauthorizedException $e) {
141+
}
141142

142143
$this->assertNotEmpty($e);
143144

lib/Cake/Test/Case/View/Helper/TextHelperTest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -345,24 +345,24 @@ public function testAutoParagraph() {
345345
<p>This is a test text</p>
346346
347347
TEXT;
348-
$result = $this->Text->autoParagraph($text);
349-
$text = 'This is a <br/> <BR> test text';
350-
$expected = <<<TEXT
348+
$result = $this->Text->autoParagraph($text);
349+
$text = 'This is a <br/> <BR> test text';
350+
$expected = <<<TEXT
351351
<p>This is a </p>
352352
<p> test text</p>
353353
354354
TEXT;
355-
$result = $this->Text->autoParagraph($text);
356-
$this->assertEquals($expected, $result);
357-
$result = $this->Text->autoParagraph($text);
358-
$text = 'This is a <BR id="test"/><br class="test"> test text';
359-
$expected = <<<TEXT
355+
$result = $this->Text->autoParagraph($text);
356+
$this->assertEquals($expected, $result);
357+
$result = $this->Text->autoParagraph($text);
358+
$text = 'This is a <BR id="test"/><br class="test"> test text';
359+
$expected = <<<TEXT
360360
<p>This is a </p>
361361
<p> test text</p>
362362
363363
TEXT;
364-
$result = $this->Text->autoParagraph($text);
365-
$this->assertEquals($expected, $result);
364+
$result = $this->Text->autoParagraph($text);
365+
$this->assertEquals($expected, $result);
366366
$text = <<<TEXT
367367
This is a test text.
368368
This is a line return.

lib/Cake/Utility/Validation.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,8 +618,7 @@ public static function phone($check, $regex = null, $country = 'all') {
618618
switch ($country) {
619619
case 'us':
620620
case 'ca':
621-
// deprecated three-letter-code
622-
case 'can':
621+
case 'can': // deprecated three-letter-code
623622
case 'all':
624623
// includes all NANPA members.
625624
// see http://en.wikipedia.org/wiki/North_American_Numbering_Plan#List_of_NANPA_countries_and_territories

lib/Cake/View/Helper/TextHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ public function autoParagraph($text) {
250250
}
251251
return $text;
252252
}
253-
253+
254254
/**
255255
* @see String::stripLinks()
256256
*

0 commit comments

Comments
 (0)