This commit is contained in:
Romain Neutron
2013-12-03 21:01:43 +01:00
parent b024492c07
commit 7904a33e07
21 changed files with 11 additions and 51 deletions

View File

@@ -11,8 +11,6 @@
namespace Entities;
use Doctrine\ORM\Mapping as ORM;
/**
* AuthFailure
*/

View File

@@ -11,8 +11,6 @@
namespace Entities;
use Alchemy\Phrasea\Application;
/**
* LazaretAttribute
*/

View File

@@ -11,8 +11,6 @@
namespace Entities;
use Alchemy\Phrasea\Application;
/**
* LazaretCheck
*/

View File

@@ -11,8 +11,6 @@
namespace Entities;
use Alchemy\Phrasea\Application;
/**
* SessionModule
*/

View File

@@ -238,7 +238,7 @@ class UsrList
public function has(\User_Adapter $user, Application $app)
{
return $this->entries->exists(
function($key, $entry) use ($user, $app) {
function ($key, $entry) use ($user, $app) {
return $entry->getUser($app)->get_id() === $user->get_id();
}
);

View File

@@ -11,8 +11,6 @@
namespace Entities;
use Alchemy\Phrasea\Application;
/**
* ValidationData
*/

View File

@@ -124,8 +124,8 @@ class BasketRepository extends EntityRepository
*
* @throws NotFoundHttpException
* @throws AccessDeniedHttpException
* @param type $basket_id
* @param \User_Adapter $user
* @param type $basket_id
* @param \User_Adapter $user
* @return \Entities\Basket
*/
public function findUserBasket(Application $app, $basket_id, \User_Adapter $user, $requireOwner)

View File

@@ -15,7 +15,7 @@ class LazaretFileRepository extends EntityRepository
public function findPerPage(array $base_ids, $offset = 0, $perPage = 10)
{
$base_ids = implode(', ', array_map(function($int) {
$base_ids = implode(', ', array_map(function ($int) {
return (int) $int;
}, $base_ids));

View File

@@ -46,7 +46,7 @@ class StoryWZRepository extends EntityRepository
$sortedStories[] = $story->getRecord($app)->get_title();
}
uasort($sortedStories, function($a, $b) {
uasort($sortedStories, function ($a, $b) {
if ($a == $b) {
return 0;
}