Skip to content

Commit

Permalink
Reverted some phpstan changes that made the app not run.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Schläpfer committed Sep 30, 2023
1 parent 397f064 commit 2cb7b98
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
9 changes: 3 additions & 6 deletions src/Controller/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,8 @@ public function get_templates(\Box_App $app):string
* Enables the QEMU Template
*
* @param \Box_App $app
* @return void
*/
public function enable_template(\Box_App $app, $id): void
public function enable_template(\Box_App $app, $id)
{
$api = $this->di['api_admin'];
$api->Serviceproxmox_vm_config_template_enable(array('id' => $id));
Expand All @@ -143,9 +142,8 @@ public function enable_template(\Box_App $app, $id): void
* Disables the QEMU Template
*
* @param \Box_App $app
* @return void
*/
public function disable_template(\Box_App $app, $id): void
public function disable_template(\Box_App $app, $id)
{
$api = $this->di['api_admin'];
$api->Serviceproxmox_vm_config_template_disable(array('id' => $id));
Expand Down Expand Up @@ -265,9 +263,8 @@ public function get_vm_config_template(\Box_App $app, $id): string
* Renders the admin area settings page
*
* @param \Box_App $app
* @return void
*/
public function start_backup(\Box_App $app):void
public function start_backup(\Box_App $app)
{

$api = $this->di['api_admin'];
Expand Down
5 changes: 4 additions & 1 deletion src/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ public function setDi(\Pimple\Container|null $di): void
{
$this->di = $di;
}

public function getDi(): ?\Pimple\Container
{
return $this->di;
}
use ProxmoxAuthentication;
use ProxmoxServer;
use ProxmoxVM;
Expand Down

0 comments on commit 2cb7b98

Please sign in to comment.