Fixing wrong inherited methodsyntax
This commit is contained in:
parent
6fc2eeaeaf
commit
056702c1e0
24 changed files with 25 additions and 25 deletions
|
@ -68,12 +68,12 @@ class LegacyModule extends BaseModule
|
|||
require_once $file_path;
|
||||
}
|
||||
|
||||
public function content(array $request = []): string
|
||||
protected function content(array $request = []): string
|
||||
{
|
||||
return $this->runModuleFunction('content');
|
||||
}
|
||||
|
||||
public function post(array $request = [], array $post = [])
|
||||
protected function post(array $request = [], array $post = [])
|
||||
{
|
||||
parent::post($post);
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ use Friendica\Network\HTTPException\NotFoundException;
|
|||
*/
|
||||
class Seen extends BaseApi
|
||||
{
|
||||
public function rawContent()
|
||||
protected function rawContent(array $request = [])
|
||||
{
|
||||
BaseApi::checkAllowedScope(BaseApi::SCOPE_WRITE);
|
||||
$uid = BaseApi::getCurrentUserID();
|
||||
|
|
|
@ -34,7 +34,7 @@ use Friendica\Network\HTTPException\BadRequestException;
|
|||
*/
|
||||
class Conversation extends BaseApi
|
||||
{
|
||||
public function rawContent()
|
||||
protected function rawContent(array $request = [])
|
||||
{
|
||||
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
|
||||
$uid = BaseApi::getCurrentUserID();
|
||||
|
|
|
@ -31,7 +31,7 @@ use Friendica\Module\BaseApi;
|
|||
*/
|
||||
class Filters extends BaseApi
|
||||
{
|
||||
public function post(array $request = [], array $post = [])
|
||||
protected function post(array $request = [], array $post = [])
|
||||
{
|
||||
self::checkAllowedScope(self::SCOPE_WRITE);
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ use Friendica\Model\Profile;
|
|||
*/
|
||||
class UpdateProfile extends BaseApi
|
||||
{
|
||||
public function rawContent()
|
||||
protected function rawContent(array $request = [])
|
||||
{
|
||||
BaseApi::checkAllowedScope(BaseApi::SCOPE_WRITE);
|
||||
$uid = BaseApi::getCurrentUserID();
|
||||
|
|
|
@ -32,7 +32,7 @@ use Friendica\DI;
|
|||
*/
|
||||
class VerifyCredentials extends BaseApi
|
||||
{
|
||||
public function rawContent()
|
||||
protected function rawContent(array $request = [])
|
||||
{
|
||||
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
|
||||
$uid = BaseApi::getCurrentUserID();
|
||||
|
|
|
@ -31,7 +31,7 @@ use Friendica\Module\BaseApi;
|
|||
*/
|
||||
class Ids extends ContactEndpoint
|
||||
{
|
||||
public function rawContent()
|
||||
protected function rawContent(array $request = [])
|
||||
{
|
||||
self::checkAllowedScope(self::SCOPE_READ);
|
||||
$uid = BaseApi::getCurrentUserID();
|
||||
|
|
|
@ -31,7 +31,7 @@ use Friendica\Module\BaseApi;
|
|||
*/
|
||||
class Lists extends ContactEndpoint
|
||||
{
|
||||
public function rawContent()
|
||||
protected function rawContent(array $request = [])
|
||||
{
|
||||
self::checkAllowedScope(self::SCOPE_READ);
|
||||
$uid = BaseApi::getCurrentUserID();
|
||||
|
|
|
@ -35,7 +35,7 @@ use Friendica\Model\Post;
|
|||
*/
|
||||
class Favorites extends BaseApi
|
||||
{
|
||||
public function rawContent()
|
||||
protected function rawContent(array $request = [])
|
||||
{
|
||||
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
|
||||
$uid = BaseApi::getCurrentUserID();
|
||||
|
|
|
@ -31,7 +31,7 @@ use Friendica\Module\BaseApi;
|
|||
*/
|
||||
class Incoming extends ContactEndpoint
|
||||
{
|
||||
public function rawContent()
|
||||
protected function rawContent(array $request = [])
|
||||
{
|
||||
self::checkAllowedScope(self::SCOPE_READ);
|
||||
$uid = BaseApi::getCurrentUserID();
|
||||
|
|
|
@ -35,7 +35,7 @@ use Friendica\Network\HTTPException\BadRequestException;
|
|||
*/
|
||||
class Statuses extends BaseApi
|
||||
{
|
||||
public function rawContent()
|
||||
protected function rawContent(array $request = [])
|
||||
{
|
||||
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
|
||||
$uid = BaseApi::getCurrentUserID();
|
||||
|
|
|
@ -36,7 +36,7 @@ use Friendica\Network\HTTPException\BadRequestException;
|
|||
*/
|
||||
class Tweets extends BaseApi
|
||||
{
|
||||
public function rawContent()
|
||||
protected function rawContent(array $request = [])
|
||||
{
|
||||
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
|
||||
$uid = BaseApi::getCurrentUserID();
|
||||
|
|
|
@ -34,7 +34,7 @@ use Friendica\Model\Item;
|
|||
*/
|
||||
class Destroy extends BaseApi
|
||||
{
|
||||
public function rawContent()
|
||||
protected function rawContent(array $request = [])
|
||||
{
|
||||
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
|
||||
$uid = BaseApi::getCurrentUserID();
|
||||
|
|
|
@ -35,7 +35,7 @@ use Friendica\Model\Post;
|
|||
*/
|
||||
class HomeTimeline extends BaseApi
|
||||
{
|
||||
public function rawContent()
|
||||
protected function rawContent(array $request = [])
|
||||
{
|
||||
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
|
||||
$uid = BaseApi::getCurrentUserID();
|
||||
|
|
|
@ -34,7 +34,7 @@ use Friendica\Model\Post;
|
|||
*/
|
||||
class Mentions extends BaseApi
|
||||
{
|
||||
public function rawContent()
|
||||
protected function rawContent(array $request = [])
|
||||
{
|
||||
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
|
||||
$uid = BaseApi::getCurrentUserID();
|
||||
|
|
|
@ -33,7 +33,7 @@ use Friendica\Model\Post;
|
|||
*/
|
||||
class NetworkPublicTimeline extends BaseApi
|
||||
{
|
||||
public function rawContent()
|
||||
protected function rawContent(array $request = [])
|
||||
{
|
||||
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
|
||||
$uid = BaseApi::getCurrentUserID();
|
||||
|
|
|
@ -33,7 +33,7 @@ use Friendica\Model\Post;
|
|||
*/
|
||||
class PublicTimeline extends BaseApi
|
||||
{
|
||||
public function rawContent()
|
||||
protected function rawContent(array $request = [])
|
||||
{
|
||||
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
|
||||
$uid = BaseApi::getCurrentUserID();
|
||||
|
|
|
@ -36,7 +36,7 @@ use Friendica\Network\HTTPException\BadRequestException;
|
|||
*/
|
||||
class Show extends BaseApi
|
||||
{
|
||||
public function rawContent()
|
||||
protected function rawContent(array $request = [])
|
||||
{
|
||||
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
|
||||
$uid = BaseApi::getCurrentUserID();
|
||||
|
|
|
@ -35,7 +35,7 @@ use Friendica\Model\Post;
|
|||
*/
|
||||
class UserTimeline extends BaseApi
|
||||
{
|
||||
public function rawContent()
|
||||
protected function rawContent(array $request = [])
|
||||
{
|
||||
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
|
||||
$uid = BaseApi::getCurrentUserID();
|
||||
|
|
|
@ -32,7 +32,7 @@ use Friendica\Network\HTTPException\NotFoundException;
|
|||
*/
|
||||
class Lookup extends BaseApi
|
||||
{
|
||||
public function rawContent()
|
||||
protected function rawContent(array $request = [])
|
||||
{
|
||||
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
|
||||
$uid = BaseApi::getCurrentUserID();
|
||||
|
|
|
@ -35,7 +35,7 @@ use Friendica\Network\HTTPException\NotFoundException;
|
|||
*/
|
||||
class Search extends BaseApi
|
||||
{
|
||||
public function rawContent()
|
||||
protected function rawContent(array $request = [])
|
||||
{
|
||||
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
|
||||
$uid = BaseApi::getCurrentUserID();
|
||||
|
|
|
@ -32,7 +32,7 @@ use Friendica\DI;
|
|||
*/
|
||||
class Show extends BaseApi
|
||||
{
|
||||
public function rawContent()
|
||||
protected function rawContent(array $request = [])
|
||||
{
|
||||
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
|
||||
$uid = BaseApi::getCurrentUserID();
|
||||
|
|
|
@ -157,7 +157,7 @@ class Contact extends BaseModule
|
|||
Model\Contact\User::setIgnored($contact_id, local_user(), $ignored);
|
||||
}
|
||||
|
||||
public function content($update = 0): string
|
||||
protected function content(array $request = []): string
|
||||
{
|
||||
if (!local_user()) {
|
||||
return Login::form($_SERVER['REQUEST_URI']);
|
||||
|
|
|
@ -32,7 +32,7 @@ use Friendica\Module\BaseApi;
|
|||
*/
|
||||
class Revoke extends BaseApi
|
||||
{
|
||||
public function post(array $request = [], array $post = [])
|
||||
protected function post(array $request = [], array $post = [])
|
||||
{
|
||||
$request = self::getRequest([
|
||||
'client_id' => '', // Client ID, obtained during app registration
|
||||
|
|
Loading…
Reference in a new issue