mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix coding standard errors
This commit is contained in:
parent
084636bf9d
commit
fa5ccf46d0
4 changed files with 2 additions and 5 deletions
|
@ -215,7 +215,7 @@ class ShellDispatcher {
|
|||
return $Shell->main();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
throw new MissingShellMethodException(array('shell' => $shell, 'method' => $command));
|
||||
}
|
||||
|
||||
|
|
|
@ -383,7 +383,6 @@ class CakeLogTest extends CakeTestCase {
|
|||
CakeLog::drop('shops');
|
||||
}
|
||||
|
||||
|
||||
public function testScopedLoggingExclusive() {
|
||||
$this->_deleteLogs();
|
||||
|
||||
|
|
|
@ -178,7 +178,6 @@ class CakeValidationRuleTest extends CakeTestCase {
|
|||
* @return void
|
||||
*/
|
||||
public function testCheckRequiredWhenRequiredAndAllowEmpty() {
|
||||
|
||||
$Rule = $this->getMock('CakeValidationRule', array('isRequired'));
|
||||
$Rule->expects($this->any())
|
||||
->method('isRequired')
|
||||
|
@ -195,6 +194,6 @@ class CakeValidationRuleTest extends CakeTestCase {
|
|||
$Rule->allowEmpty = false;
|
||||
|
||||
$this->assertTrue($Rule->checkRequired($fieldname, $data), "A null but present field should fail requirement check if allowEmpty is false");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -5683,7 +5683,6 @@ class FormHelperTest extends CakeTestCase {
|
|||
$result = $this->Form->hour('Model.field', false, array('value' => '23'));
|
||||
$this->assertContains('<option value="11" selected="selected">11</option>', $result);
|
||||
|
||||
|
||||
$this->Form->request->data['Model']['field'] = '2006-10-10 00:12:32';
|
||||
$result = $this->Form->hour('Model.field', true);
|
||||
$expected = array(
|
||||
|
|
Loading…
Reference in a new issue