Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Jul 12, 2024
1 parent 99bb8ac commit c5cc1b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/Promotion/Actions/CartFixedDiscount.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static function getID(): string
public function adjust(object $subject): Adjuster
{
if (!$subject instanceof Cart) {
throw new \InvalidArgumentException('Subject must be an instance of '.Cart::class);
throw new \InvalidArgumentException('Subject must be an instance of ' . Cart::class);
}

return new SimpleDiscount($this->getConfiguration()['discount_amount'] / 100 * $subject->total());
Expand All @@ -46,7 +46,7 @@ public function setConfiguration(array $configuration): self
$configuration = (new Processor())->process($this->getSchema(), $configuration);
}

$this->configuration = (array)$configuration;
$this->configuration = (array) $configuration;

return $this;
}
Expand All @@ -59,6 +59,6 @@ public function getConfiguration(): ?array
$configuration = (new Processor())->process($this->getSchema(), $configuration);
}

return (array)$configuration;
return (array) $configuration;
}
}
2 changes: 0 additions & 2 deletions src/Promotion/Models/PromotionAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
use Vanilo\Promotion\Contracts\Promotion;
use Vanilo\Promotion\Contracts\PromotionAction as PromotionActionContract;
use Vanilo\Promotion\Contracts\PromotionActionType;
use Vanilo\Promotion\Contracts\PromotionRuleType;
use Vanilo\Promotion\PromotionRuleTypes;
use Vanilo\Support\Traits\ConfigurableModel;
use Vanilo\Support\Traits\ConfigurationHasNoSchema;

Expand Down

0 comments on commit c5cc1b8

Please sign in to comment.