mirror of
https://github.com/friendica/friendica
synced 2025-04-19 09:10:12 +00:00
Replace $parameters
argument per method with static::$parameters
This commit is contained in:
parent
018275919c
commit
714f0febc4
249 changed files with 710 additions and 775 deletions
|
@ -44,25 +44,17 @@ abstract class BaseModule implements ICanHandleRequests
|
|||
static::$parameters = $parameters;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public static function getParameters(): array
|
||||
{
|
||||
return self::$parameters;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public static function init(array $parameters = [])
|
||||
public static function init()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public static function rawContent(array $parameters = [])
|
||||
public static function rawContent()
|
||||
{
|
||||
// echo '';
|
||||
// exit;
|
||||
|
@ -71,7 +63,7 @@ abstract class BaseModule implements ICanHandleRequests
|
|||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public static function content(array $parameters = [])
|
||||
public static function content()
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
@ -79,21 +71,21 @@ abstract class BaseModule implements ICanHandleRequests
|
|||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public static function delete(array $parameters = [])
|
||||
public static function delete()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public static function patch(array $parameters = [])
|
||||
public static function patch()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public static function post(array $parameters = [])
|
||||
public static function post()
|
||||
{
|
||||
// DI::baseurl()->redirect('module');
|
||||
}
|
||||
|
@ -101,14 +93,14 @@ abstract class BaseModule implements ICanHandleRequests
|
|||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public static function afterpost(array $parameters = [])
|
||||
public static function afterpost()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public static function put(array $parameters = [])
|
||||
public static function put()
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue