app/Http/Controllers/Admin/AdminInstanceController.php
Method getInstancesApi
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getInstancesApi(Request $request)
{
$this->validate($request, [
'filter' => [
'nullable',
File AdminInstanceController.php
has 259 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace App\Http\Controllers\Admin;
use DB, Cache;
Method instanceEdit
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function instanceEdit(Request $request, $id)
{
$this->validate($request, [
'action' => [
'required',
Method importBackup
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function importBackup(Request $request)
{
$this->validate($request, [
'banned' => 'sometimes|array',
'auto_cw' => 'sometimes|array',