mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 04:53:26 +00:00
Fix CS
This commit is contained in:
@@ -365,7 +365,7 @@ class Basket
|
|||||||
/**
|
/**
|
||||||
* Set order
|
* Set order
|
||||||
*
|
*
|
||||||
* @param \Entities\Order $order
|
* @param \Entities\Order $order
|
||||||
* @return Basket
|
* @return Basket
|
||||||
*/
|
*/
|
||||||
public function setOrder(\Entities\Order $order = null)
|
public function setOrder(\Entities\Order $order = null)
|
||||||
|
@@ -158,7 +158,7 @@ class UserSetting
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param \DateTime $created
|
* @param \DateTime $created
|
||||||
*
|
*
|
||||||
* @return UserSetting
|
* @return UserSetting
|
||||||
*/
|
*/
|
||||||
|
@@ -124,8 +124,8 @@ class BasketRepository extends EntityRepository
|
|||||||
*
|
*
|
||||||
* @throws NotFoundHttpException
|
* @throws NotFoundHttpException
|
||||||
* @throws AccessDeniedHttpException
|
* @throws AccessDeniedHttpException
|
||||||
* @param type $basket_id
|
* @param type $basket_id
|
||||||
* @param \User_Adapter $user
|
* @param \User_Adapter $user
|
||||||
* @return \Entities\Basket
|
* @return \Entities\Basket
|
||||||
*/
|
*/
|
||||||
public function findUserBasket(Application $app, $basket_id, \User_Adapter $user, $requireOwner)
|
public function findUserBasket(Application $app, $basket_id, \User_Adapter $user, $requireOwner)
|
||||||
|
@@ -15,10 +15,10 @@ class OrderRepository extends EntityRepository
|
|||||||
/**
|
/**
|
||||||
* Returns an array of all the orders, starting at $offsetStart, limited to $perPage
|
* Returns an array of all the orders, starting at $offsetStart, limited to $perPage
|
||||||
*
|
*
|
||||||
* @param array $baseIds
|
* @param array $baseIds
|
||||||
* @param integer $offsetStart
|
* @param integer $offsetStart
|
||||||
* @param integer $perPage
|
* @param integer $perPage
|
||||||
* @param string $sort
|
* @param string $sort
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
@@ -34,7 +34,7 @@ class OrderRepository extends EntityRepository
|
|||||||
|
|
||||||
if ($sort === 'user') {
|
if ($sort === 'user') {
|
||||||
$qb->orderBy('o.userId', 'ASC');
|
$qb->orderBy('o.userId', 'ASC');
|
||||||
} else if ($sort === 'usage') {
|
} elseif ($sort === 'usage') {
|
||||||
$qb->orderBy('o.orderUsage', 'ASC');
|
$qb->orderBy('o.orderUsage', 'ASC');
|
||||||
} else {
|
} else {
|
||||||
$qb->orderBy('o.createdOn', 'ASC');
|
$qb->orderBy('o.createdOn', 'ASC');
|
||||||
|
Reference in New Issue
Block a user