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:
@@ -17,17 +17,15 @@
|
||||
*/
|
||||
abstract class API_V1_exception_abstract extends Exception
|
||||
{
|
||||
protected static $details;
|
||||
|
||||
protected static $details;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function get_details()
|
||||
{
|
||||
return static::$details;
|
||||
}
|
||||
public function __construct()
|
||||
{
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function get_details()
|
||||
{
|
||||
return static::$details;
|
||||
}
|
||||
}
|
||||
|
@@ -17,7 +17,6 @@
|
||||
*/
|
||||
class API_V1_exception_badrequest extends API_V1_exception_abstract
|
||||
{
|
||||
|
||||
protected static $details = 'Parameter is invalid or missing';
|
||||
protected static $details = 'Parameter is invalid or missing';
|
||||
|
||||
}
|
||||
|
@@ -17,7 +17,6 @@
|
||||
*/
|
||||
class API_V1_exception_forbidden extends API_V1_exception_abstract
|
||||
{
|
||||
|
||||
protected static $details = 'Access to the requested ressource is forbidden';
|
||||
protected static $details = 'Access to the requested ressource is forbidden';
|
||||
|
||||
}
|
||||
|
@@ -17,7 +17,6 @@
|
||||
*/
|
||||
class API_V1_exception_internalservererror extends API_V1_exception_abstract
|
||||
{
|
||||
|
||||
protected static $details = 'Internal Server Error';
|
||||
protected static $details = 'Internal Server Error';
|
||||
|
||||
}
|
||||
|
@@ -17,7 +17,6 @@
|
||||
*/
|
||||
class API_V1_exception_methodnotallowed extends API_V1_exception_abstract
|
||||
{
|
||||
|
||||
protected static $details = 'Attempting to use POST with a GET-only endpoint, or vice-versa';
|
||||
protected static $details = 'Attempting to use POST with a GET-only endpoint, or vice-versa';
|
||||
|
||||
}
|
||||
|
@@ -17,7 +17,6 @@
|
||||
*/
|
||||
class API_V1_exception_notfound extends API_V1_exception_abstract
|
||||
{
|
||||
|
||||
protected static $details = 'Requested ressource is not found';
|
||||
protected static $details = 'Requested ressource is not found';
|
||||
|
||||
}
|
||||
|
@@ -17,7 +17,6 @@
|
||||
*/
|
||||
class API_V1_exception_unauthorized extends API_V1_exception_abstract
|
||||
{
|
||||
|
||||
protected static $details = 'The OAuth token was provided but was invalid.';
|
||||
protected static $details = 'The OAuth token was provided but was invalid.';
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user