Skip to content

Commit

Permalink
Code refactor
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <[email protected]>
  • Loading branch information
sampoyigi committed Jan 14, 2024
1 parent a3e0c0f commit a121ff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ public function mailGetData()
$data['status_name'] = $statusHistory ? optional($statusHistory->status)->status_name : null;
$data['status_comment'] = $statusHistory ? $statusHistory->comment : null;

$controller = MainController::getController() ?: new MainController;
$controller = MainController::getController();
$data['order_view_url'] = $controller->pageUrl('account/order', [
'hash' => $model->hash,
]);
Expand Down

0 comments on commit a121ff0

Please sign in to comment.