mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 13:03:20 +00:00
Fix CS
This commit is contained in:
@@ -11,8 +11,6 @@
|
||||
|
||||
namespace Entities;
|
||||
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
/**
|
||||
* AuthFailure
|
||||
*/
|
||||
|
@@ -11,8 +11,6 @@
|
||||
|
||||
namespace Entities;
|
||||
|
||||
use Alchemy\Phrasea\Application;
|
||||
|
||||
/**
|
||||
* LazaretAttribute
|
||||
*/
|
||||
|
@@ -11,8 +11,6 @@
|
||||
|
||||
namespace Entities;
|
||||
|
||||
use Alchemy\Phrasea\Application;
|
||||
|
||||
/**
|
||||
* LazaretCheck
|
||||
*/
|
||||
|
@@ -11,8 +11,6 @@
|
||||
|
||||
namespace Entities;
|
||||
|
||||
use Alchemy\Phrasea\Application;
|
||||
|
||||
/**
|
||||
* SessionModule
|
||||
*/
|
||||
|
@@ -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();
|
||||
}
|
||||
);
|
||||
|
@@ -11,8 +11,6 @@
|
||||
|
||||
namespace Entities;
|
||||
|
||||
use Alchemy\Phrasea\Application;
|
||||
|
||||
/**
|
||||
* ValidationData
|
||||
*/
|
||||
|
@@ -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)
|
||||
|
@@ -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));
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user