Skip to content

Commit

Permalink
fixs to enable function adding type hinting
Browse files Browse the repository at this point in the history
  • Loading branch information
detain committed Jun 18, 2017
1 parent 0022342 commit 2dd34cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ function_requirements('class.Addon');
$service->add_addon($addon);
}

public static function Enable($service_order) {
public static function Enable(\Service_Order $service_order) {
$serviceInfo = $service_order->getServiceInfo();
$settings = get_module_settings($service_order->get_module());
require_once 'include/licenses/license.functions.inc.php';
myadmin_log($service_order->get_module(), 'info', "Activating $space GB additional HD space for {$settings['TBLNAME']} {$serviceInfo[$settings['PREFIX'].'_id']}", __LINE__, __FILE__);
$GLOBALS['tf']->history->add($service_order->get_module() . 'queue', $serviceInfo[$settings['PREFIX'] . '_id'], 'update_hdsize', $space, $serviceInfo[$settings['PREFIX'] . '_custid']);
}

public static function Disable($service_order) {
public static function Disable(\Service_Order $service_order) {
$serviceInfo = $service_order->getServiceInfo();
$settings = get_module_settings($service_order->get_module());
require_once 'include/licenses/license.functions.inc.php';
Expand Down

0 comments on commit 2dd34cd

Please sign in to comment.