feat ExtensionsController: Change 4-space to 2-space indentation in the extensions page controller.

This commit is contained in:
purple 2024-02-14 08:27:12 +01:00
parent 3cd6b27a22
commit 0541317d65

View file

@ -12,36 +12,35 @@ use Pterodactyl\BlueprintFramework\Libraries\ExtensionLibrary\Admin\BlueprintAdm
class ExtensionsController extends Controller
{
/**
* ExtensionsController constructor.
*/
public function __construct(
private SoftwareVersionService $version,
private ViewFactory $view,
private BlueprintVariableService $bp,
private BlueprintExtensionLibrary $blueprint,
private BlueprintPlaceholderService $placeholder)
{
}
/**
* ExtensionsController constructor.
*/
public function __construct(
private SoftwareVersionService $version,
private ViewFactory $view,
private BlueprintVariableService $bp,
private BlueprintExtensionLibrary $blueprint,
private BlueprintPlaceholderService $placeholder)
{
}
/**
* Return the admin index view.
*/
public function index(): View
{
// Onboarding check.
if($this->blueprint->fileRead("{$this->placeholder->folder()}/.blueprint/extensions/blueprint/private/db/onboarding") == "*blueprint*") {
$onboarding = true;
} else {
$onboarding = false;
}
return $this->view->make('admin.extensions', [
'version' => $this->version,
'bp' => $this->bp,
'blueprint' => $this->blueprint,
'root' => "/admin/extensions",
'onboarding' => $onboarding
]);
/**
* Return the admin index view.
*/
public function index(): View
{
// Onboarding check.
if($this->blueprint->fileRead("{$this->placeholder->folder()}/.blueprint/extensions/blueprint/private/db/onboarding") == "*blueprint*") {
$onboarding = true;
} else {
$onboarding = false;
}
return $this->view->make('admin.extensions', [
'version' => $this->version,
'bp' => $this->bp,
'blueprint' => $this->blueprint,
'onboarding' => $onboarding,
'root' => "/admin/extensions",
]);
}
}