Skip to content

Commit

Permalink
ran linter
Browse files Browse the repository at this point in the history
  • Loading branch information
roncodes committed Jul 19, 2024
1 parent 8d1400e commit 959d190
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Fleetbase\RegistryBridge\Http\Requests\CreateRegistryExtensionBundleRequest;
use Fleetbase\RegistryBridge\Http\Requests\RegistryExtensionActionRequest;
use Fleetbase\RegistryBridge\Models\RegistryExtensionBundle;
use Fleetbase\Support\Utils;
use Fleetbase\RegistryBridge\Support\Utils;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Facades\Validator;
Expand Down
2 changes: 1 addition & 1 deletion server/src/Http/Filter/RegistryExtensionFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Fleetbase\RegistryBridge\Http\Filter;

use Fleetbase\Http\Filter\Filter;
use Fleetbase\Support\Utils;
use Fleetbase\RegistryBridge\Support\Utils;
use Illuminate\Support\Str;

class RegistryExtensionFilter extends Filter
Expand Down
5 changes: 2 additions & 3 deletions server/src/Models/RegistryExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
use Fleetbase\Models\Model;
use Fleetbase\Models\User;
use Fleetbase\RegistryBridge\Support\Utils;
use Fleetbase\Support\Utils as SupportUtils;
use Fleetbase\Traits\HasApiModelBehavior;
use Fleetbase\Traits\HasMetaAttributes;
use Fleetbase\Traits\HasPublicId;
Expand Down Expand Up @@ -627,7 +626,7 @@ public function createStripeCheckoutSession(string $returnUri): \Stripe\Checkout

// Calculate the fee fleetbase takes for faciliation of extension
$totalAmount = $price->unit_amount;
$facilitatorFee = SupportUtils::calculatePercentage(config('registry-bridge.facilitator_fee', 10), $totalAmount);
$facilitatorFee = Utils::calculatePercentage(config('registry-bridge.facilitator_fee', 10), $totalAmount);

// Get the stripe client to create the checkout session
$stripe = Utils::getStripeClient();
Expand All @@ -642,7 +641,7 @@ public function createStripeCheckoutSession(string $returnUri): \Stripe\Checkout
],
],
'mode' => 'payment',
'return_url' => SupportUtils::consoleUrl($returnUri) . '?extension_id=' . $this->uuid . '&checkout_session_id={CHECKOUT_SESSION_ID}',
'return_url' => Utils::consoleUrl($returnUri) . '?extension_id=' . $this->uuid . '&checkout_session_id={CHECKOUT_SESSION_ID}',
'payment_intent_data' => [
'application_fee_amount' => $facilitatorFee,
'transfer_data' => [
Expand Down
2 changes: 1 addition & 1 deletion server/src/Models/RegistryExtensionBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
use Fleetbase\Models\Model;
use Fleetbase\Models\User;
use Fleetbase\RegistryBridge\Exceptions\InstallFailedException;
use Fleetbase\RegistryBridge\Support\Utils;
use Fleetbase\Support\SocketCluster\SocketClusterService;
use Fleetbase\Support\Utils;
use Fleetbase\Traits\HasApiModelBehavior;
use Fleetbase\Traits\HasMetaAttributes;
use Fleetbase\Traits\HasPublicId;
Expand Down
2 changes: 1 addition & 1 deletion server/src/Providers/RegistryBridgeServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function mergeConfigFromSettings()
return;
}

$registryHost = Setting::getByKey('registry-bridge.registry.host');
$registryHost = Setting::getByKey('registry-bridge.registry.host');
$registryToken = Setting::getByKey('registry-bridge.registry.token');

if ($registryHost) {
Expand Down

0 comments on commit 959d190

Please sign in to comment.