Showing 1,326 of 1,561 total issues
Method resendConfirmationProcess
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function resendConfirmationProcess(Request $request)
{
$rules = [
'email' => [
'required',
Method remotePostLookup
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function remotePostLookup()
{
$tag = $this->term;
$hash = hash('sha256', $tag);
$local = Helpers::validateLocalUrl($tag);
Method updateUrls
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function updateUrls()
{
$this->info('Updating urls...');
$oldDomain = trim($this->argument('oldDomain'));
$newDomain = trim($this->argument('newDomain'));
Method handle
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle(): void
{
$payload = $this->payload;
if(empty($payload) || !isset($payload['actor'])) {
Method handleImmediateAttributes
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function handleImmediateAttributes(Status $status, $attributes)
{
if(isset($attributes['status'])) {
$cleaned = Purify::clean($attributes['status']);
$status->caption = $cleaned;
Method unblock
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function unblock(Request $request)
{
$this->validate($request, [
'type' => 'required|string|in:user',
'item' => 'required|integer|min:1',
Method unmute
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function unmute(Request $request)
{
$this->validate($request, [
'type' => 'required|string|in:user',
'item' => 'required|integer|min:1',
Method storeId
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function storeId(Request $request)
{
abort_if(!$request->user(), 403);
$this->validate($request, [
Method myMemories
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function myMemories(Request $request)
{
abort_if(! $request->user(), 404);
$pid = $request->user()->profile_id;
abort_if(! $this->config()['memories']['enabled'], 404);
Method add
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function add(Request $request)
{
abort_if(! (bool) config_cache('instance.stories.enabled') || ! $request->user(), 404);
$this->validate($request, [
Method handle
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle()
{
if(Schema::hasTable('instance_actors') == false) {
$this->line(' ');
$this->error('Missing instance_actors table.');
Method handle
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function handle($status)
{
$media = $status->media;
$ai = new AccountInterstitial;
Method validateUrl
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function validateUrl($url)
{
if (is_array($url)) {
$url = $url[0];
}
Method getAccountSettings
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAccountSettings(Request $request)
{
$this->validate($request, [
'id' => 'required|integer'
]);
Method storeShare
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function storeShare(Request $request)
{
$this->authCheck();
$this->validate($request, [
Method userModerate
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function userModerate(Request $request)
{
$this->validate($request, [
'profile_id' => 'required|exists:profiles,id',
'action' => 'required|in:cw,no_autolink,unlisted'
Method accountMuteById
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function accountMuteById(Request $request, $id)
{
abort_if(! $request->user() || ! $request->user()->token(), 403);
abort_unless($request->user()->tokenCan('write'), 403);
Method updateMediaSettings
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function updateMediaSettings(Request $request)
{
$this->validate($request, [
'default' => 'required|int|min:1|max:16',
'sync' => 'nullable',
Method accountBlocks
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function accountBlocks(Request $request)
{
abort_if(! $request->user() || ! $request->user()->token(), 403);
abort_unless($request->user()->tokenCan('read'), 403);
Method composeText
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function composeText(Request $request)
{
$this->validate($request, [
'type' => [
'required',