Skip to content

Commit

Permalink
chore: move IsFluent trait to AsAxisChart trait
Browse files Browse the repository at this point in the history
  • Loading branch information
epessine committed Apr 28, 2024
1 parent 8ae3822 commit b15c6d6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/Charts/Apex.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@
use Axis\Interfaces\Javascriptable;
use Axis\Interfaces\Renderable;
use Axis\Traits\AsAxisChart;
use Axis\Traits\IsFluent;
use Illuminate\Contracts\Support\Htmlable;
use Serializable;

final class Apex implements Htmlable, Javascriptable, Renderable, Serializable
{
use AsAxisChart, IsFluent;
use AsAxisChart;

public function getContainerElement(): string
{
Expand Down
3 changes: 1 addition & 2 deletions src/Charts/ChartJs.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@
use Axis\Interfaces\Javascriptable;
use Axis\Interfaces\Renderable;
use Axis\Traits\AsAxisChart;
use Axis\Traits\IsFluent;
use Illuminate\Contracts\Support\Htmlable;
use Serializable;

final class ChartJs implements Htmlable, Javascriptable, Renderable, Serializable
{
use AsAxisChart, IsFluent;
use AsAxisChart;

public function getContainerElement(): string
{
Expand Down
3 changes: 1 addition & 2 deletions src/Charts/Highcharts.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@
use Axis\Interfaces\Javascriptable;
use Axis\Interfaces\Renderable;
use Axis\Traits\AsAxisChart;
use Axis\Traits\IsFluent;
use Illuminate\Contracts\Support\Htmlable;
use Serializable;

final class Highcharts implements Htmlable, Javascriptable, Renderable, Serializable
{
use AsAxisChart, IsFluent;
use AsAxisChart;

public function getContainerElement(): string
{
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/AsAxisChart.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

trait AsAxisChart
{
use ParsesJs, RendersAsChart, SerializesAsChart;
use IsFluent, ParsesJs, RendersAsChart, SerializesAsChart;

protected readonly string $id;

Expand Down

0 comments on commit b15c6d6

Please sign in to comment.