address casting cs

This commit is contained in:
euromark 2013-09-17 15:15:25 +02:00
parent 12f2f729c8
commit e3a3946e89
4 changed files with 4 additions and 4 deletions

View file

@ -812,7 +812,7 @@ class AuthComponent extends Component {
* @return boolean true if the user is logged in, false otherwise
*/
public function loggedIn() {
return (boolean)$this->user();
return (bool)$this->user();
}
/**

View file

@ -278,7 +278,7 @@ class BasicsTest extends CakeTestCase {
Configure::write('Cache.disable', false);
$result = cache('basics_test', 'simple cache write');
$this->assertTrue((boolean)$result);
$this->assertTrue((bool)$result);
$this->assertTrue(file_exists(CACHE . 'basics_test'));
$result = cache('basics_test');

View file

@ -7144,7 +7144,7 @@ class ModelWriteTest extends BaseModelTest {
$TestModel = new Item();
$result = $TestModel->save(array('published' => true, 'id' => 1));
$this->assertTrue((boolean)$result);
$this->assertTrue((bool)$result);
$result = $TestModel->find('first', array(
'fields' => array('id', 'published'),
'conditions' => array('Item.id' => 1)));

View file

@ -497,7 +497,7 @@ class Validation {
if ($type === 'ipv6') {
$flags = FILTER_FLAG_IPV6;
}
return (boolean)filter_var($check, FILTER_VALIDATE_IP, array('flags' => $flags));
return (bool)filter_var($check, FILTER_VALIDATE_IP, array('flags' => $flags));
}
/**