Fix coding standard errors

This commit is contained in:
ADmad 2012-11-04 02:52:00 +05:30
parent 084636bf9d
commit fa5ccf46d0
4 changed files with 2 additions and 5 deletions

View file

@ -215,7 +215,7 @@ class ShellDispatcher {
return $Shell->main(); return $Shell->main();
} }
} }
throw new MissingShellMethodException(array('shell' => $shell, 'method' => $command)); throw new MissingShellMethodException(array('shell' => $shell, 'method' => $command));
} }

View file

@ -383,7 +383,6 @@ class CakeLogTest extends CakeTestCase {
CakeLog::drop('shops'); CakeLog::drop('shops');
} }
public function testScopedLoggingExclusive() { public function testScopedLoggingExclusive() {
$this->_deleteLogs(); $this->_deleteLogs();

View file

@ -178,7 +178,6 @@ class CakeValidationRuleTest extends CakeTestCase {
* @return void * @return void
*/ */
public function testCheckRequiredWhenRequiredAndAllowEmpty() { public function testCheckRequiredWhenRequiredAndAllowEmpty() {
$Rule = $this->getMock('CakeValidationRule', array('isRequired')); $Rule = $this->getMock('CakeValidationRule', array('isRequired'));
$Rule->expects($this->any()) $Rule->expects($this->any())
->method('isRequired') ->method('isRequired')
@ -195,6 +194,6 @@ class CakeValidationRuleTest extends CakeTestCase {
$Rule->allowEmpty = false; $Rule->allowEmpty = false;
$this->assertTrue($Rule->checkRequired($fieldname, $data), "A null but present field should fail requirement check if allowEmpty is false"); $this->assertTrue($Rule->checkRequired($fieldname, $data), "A null but present field should fail requirement check if allowEmpty is false");
} }
} }

View file

@ -5683,7 +5683,6 @@ class FormHelperTest extends CakeTestCase {
$result = $this->Form->hour('Model.field', false, array('value' => '23')); $result = $this->Form->hour('Model.field', false, array('value' => '23'));
$this->assertContains('<option value="11" selected="selected">11</option>', $result); $this->assertContains('<option value="11" selected="selected">11</option>', $result);
$this->Form->request->data['Model']['field'] = '2006-10-10 00:12:32'; $this->Form->request->data['Model']['field'] = '2006-10-10 00:12:32';
$result = $this->Form->hour('Model.field', true); $result = $this->Form->hour('Model.field', true);
$expected = array( $expected = array(