mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 06:23:18 +00:00
Fix CS
This commit is contained in:
@@ -276,7 +276,6 @@ class API_OAuth2_Account
|
||||
":application_id" => $application->get_id()
|
||||
);
|
||||
|
||||
|
||||
$stmt = $appbox->get_connection()->prepare($sql);
|
||||
$stmt->execute($params);
|
||||
$row = $stmt->fetch(PDO::FETCH_ASSOC);
|
||||
|
@@ -398,7 +398,6 @@ class API_OAuth2_Adapter extends OAuth2
|
||||
, 'redirect_uri' => $request->get('redirect_uri', false)
|
||||
);
|
||||
|
||||
|
||||
$scope = $request->get('scope', false);
|
||||
$state = $request->get('state', false);
|
||||
|
||||
@@ -426,7 +425,6 @@ class API_OAuth2_Adapter extends OAuth2
|
||||
, "scope" => array("flags" => FILTER_REQUIRE_SCALAR)
|
||||
);
|
||||
|
||||
|
||||
$input = filter_var_array($datas, $filters);
|
||||
|
||||
/**
|
||||
@@ -484,7 +482,6 @@ class API_OAuth2_Adapter extends OAuth2
|
||||
$input["redirect_uri"] = $redirect_uri;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Check response_type
|
||||
*/
|
||||
@@ -492,21 +489,18 @@ class API_OAuth2_Adapter extends OAuth2
|
||||
$this->errorDoRedirectUriCallback($input["redirect_uri"], OAUTH2_ERROR_INVALID_REQUEST, 'Invalid response type.', NULL, $input["state"]);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Check requested auth response type against the list of supported types
|
||||
*/
|
||||
if (array_search($input["response_type"], $this->getSupportedAuthResponseTypes()) === FALSE)
|
||||
$this->errorDoRedirectUriCallback($input["redirect_uri"], OAUTH2_ERROR_UNSUPPORTED_RESPONSE_TYPE, NULL, NULL, $input["state"]);
|
||||
|
||||
|
||||
/**
|
||||
* Restrict clients to certain authorization response types
|
||||
*/
|
||||
if ($this->checkRestrictedAuthResponseType($input["client_id"], $input["response_type"]) === FALSE)
|
||||
$this->errorDoRedirectUriCallback($input["redirect_uri"], OAUTH2_ERROR_UNAUTHORIZED_CLIENT, NULL, NULL, $input["state"]);
|
||||
|
||||
|
||||
/**
|
||||
* Validate that the requested scope is supported
|
||||
*/
|
||||
|
@@ -270,7 +270,7 @@ interface API_V1_Interface
|
||||
public function get_publication(Request $request, $publication_id, User_Adapter &$user);
|
||||
|
||||
public function get_publications(Request $request, User_Adapter &$user);
|
||||
|
||||
|
||||
public function get_feed_entry(Request $request, $entry, User_Adapter &$user);
|
||||
/**
|
||||
* Route : /users/search/FORMAT/
|
||||
@@ -294,7 +294,7 @@ interface API_V1_Interface
|
||||
public function get_user_acces(Request $request, $usr_id);
|
||||
|
||||
public function add_record(Application $app, Request $request);
|
||||
|
||||
|
||||
/**
|
||||
* Route : /users/add/FORMAT/
|
||||
*
|
||||
|
@@ -205,8 +205,8 @@ class API_V1_adapter extends API_V1_Abstract
|
||||
* - name
|
||||
* - autostart
|
||||
*
|
||||
* @param \Silex\Application $app Silex application
|
||||
* @param integer $task_id the task id
|
||||
* @param \Silex\Application $app Silex application
|
||||
* @param integer $task_id the task id
|
||||
* @return \API_V1_result
|
||||
* @throws \API_V1_exception_badrequest
|
||||
*/
|
||||
@@ -896,7 +896,6 @@ class API_V1_adapter extends API_V1_Abstract
|
||||
$search_engine = new searchEngine_adapter($registry);
|
||||
$search_engine->set_options($options);
|
||||
|
||||
|
||||
/**
|
||||
* @todo ameliorer this shit
|
||||
*/
|
||||
@@ -1253,7 +1252,6 @@ class API_V1_adapter extends API_V1_Abstract
|
||||
$em = $this->core->getEntityManager();
|
||||
$repository = $em->getRepository('\Entities\Basket');
|
||||
|
||||
|
||||
/* @var $repository \Repositories\BasketRepository */
|
||||
|
||||
$Basket = $repository->findUserBasket($basket_id, $this->core->getAuthenticatedUser(), true);
|
||||
@@ -1372,7 +1370,6 @@ class API_V1_adapter extends API_V1_Abstract
|
||||
$em = $this->core->getEntityManager();
|
||||
$repository = $em->getRepository('\Entities\Basket');
|
||||
|
||||
|
||||
/* @var $repository \Repositories\BasketRepository */
|
||||
|
||||
$Basket = $repository->findUserBasket($basket_id, $this->core->getAuthenticatedUser(), true);
|
||||
@@ -1408,7 +1405,6 @@ class API_V1_adapter extends API_V1_Abstract
|
||||
$em = $this->core->getEntityManager();
|
||||
$repository = $em->getRepository('\Entities\Basket');
|
||||
|
||||
|
||||
/* @var $repository \Repositories\BasketRepository */
|
||||
|
||||
$Basket = $repository->findUserBasket($basket_id, $this->core->getAuthenticatedUser(), true);
|
||||
@@ -1459,7 +1455,7 @@ class API_V1_adapter extends API_V1_Abstract
|
||||
*/
|
||||
public function remove_publications(Request $request, $publication_id)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1630,7 +1626,7 @@ class API_V1_adapter extends API_V1_Abstract
|
||||
*/
|
||||
public function search_users(Request $request)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1640,7 +1636,7 @@ class API_V1_adapter extends API_V1_Abstract
|
||||
*/
|
||||
public function get_user_acces(Request $request, $usr_id)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1649,7 +1645,7 @@ class API_V1_adapter extends API_V1_Abstract
|
||||
*/
|
||||
public function add_user(Request $request)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user