Use short array declaration

This commit is contained in:
Romain Neutron
2013-11-18 11:58:12 +01:00
parent 2898b317c4
commit 56b373ee6e
723 changed files with 8350 additions and 8352 deletions

View File

@@ -20,7 +20,7 @@ class AuthFailureRepository extends EntityRepository
FROM Alchemy\Phrasea\Model\Entities\AuthFailure f
WHERE f.created < :date';
$params = array('date' => $date->format('Y-m-d h:i:s'));
$params = ['date' => $date->format('Y-m-d h:i:s')];
$query = $this->_em->createQuery($dql);
$query->setParameters($params);
@@ -35,10 +35,10 @@ class AuthFailureRepository extends EntityRepository
WHERE (f.username = :username OR f.ip = :ip)
AND f.locked = true';
$params = array(
$params = [
'username' => $username,
'ip' => $ip,
);
];
$query = $this->_em->createQuery($dql);
$query->setParameters($params);