mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-09 19:13:26 +00:00
Fix CS
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||
* @link www.phraseanet.com
|
||||
*/
|
||||
class API_OAuth2_Exception_Redirect_Unauthorized extends API_OAuth2_Exception_Redirect
|
||||
class API_OAuth2_Exception_Redirect_TemporaryUnavailable extends API_OAuth2_Exception_Redirect
|
||||
{
|
||||
/**
|
||||
*
|
||||
@@ -36,10 +36,10 @@ class API_OAuth2_Exception_Redirect_Unauthorized extends API_OAuth2_Exception_Re
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $redirect_uri
|
||||
* @param string $state
|
||||
* @param string $error_uri
|
||||
* @return API_OAuth2_Exception_Redirect_Unauthorized
|
||||
* @param string $redirect_uri
|
||||
* @param string $state
|
||||
* @param string $error_uri
|
||||
* @return API_OAuth2_Exception_Redirect_TemporaryUnavailable
|
||||
*/
|
||||
public function __construct($redirect_uri, $state = null, $error_uri = null)
|
||||
{
|
||||
|
@@ -686,7 +686,7 @@ class API_V1_adapter extends API_V1_Abstract
|
||||
|
||||
$reasons = $output = null;
|
||||
|
||||
$callback = function($element, $visa, $code) use (&$reasons, &$output) {
|
||||
$callback = function ($element, $visa, $code) use (&$reasons, &$output) {
|
||||
if (!$visa->isValid()) {
|
||||
$reasons = array();
|
||||
|
||||
@@ -899,9 +899,9 @@ class API_V1_adapter extends API_V1_Abstract
|
||||
$search_result = $this->app['phraseanet.SE']->query($query, $offsetStart, $perPage);
|
||||
|
||||
foreach ($options->getDataboxes() as $databox) {
|
||||
$colls = array_map(function(\collection $collection) {
|
||||
$colls = array_map(function (\collection $collection) {
|
||||
return $collection->get_coll_id();
|
||||
}, array_filter($options->getCollections(), function(\collection $collection) use ($databox) {
|
||||
}, array_filter($options->getCollections(), function (\collection $collection) use ($databox) {
|
||||
return $collection->get_databox()->get_sbas_id() == $databox->get_sbas_id();
|
||||
}));
|
||||
|
||||
@@ -1905,7 +1905,7 @@ class API_V1_adapter extends API_V1_Abstract
|
||||
|
||||
$caption = $story->get_caption();
|
||||
|
||||
$format = function(caption_record $caption, $dcField) {
|
||||
$format = function (caption_record $caption, $dcField) {
|
||||
|
||||
$field = $caption->get_dc_field($dcField);
|
||||
|
||||
|
Reference in New Issue
Block a user