Skip to content

Commit

Permalink
Rename style service
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrckvzn committed Oct 1, 2021
1 parent f11d66c commit 6ba6ab5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use A17\Twill\Image\ViewModels\ImageViewModel;

class StyleService
class ImageStyles
{
protected $backgroundColor;

Expand Down
6 changes: 3 additions & 3 deletions src/ViewModels/ImageViewModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Spatie\ViewModels\ViewModel;
use A17\Twill\Image\Models\Image;
use A17\Twill\Image\Services\StyleService;
use A17\Twill\Image\Services\ImageStyles;
use Illuminate\Contracts\Support\Arrayable;

class ImageViewModel extends ViewModel implements Arrayable
Expand Down Expand Up @@ -90,7 +90,7 @@ class ImageViewModel extends ViewModel implements Arrayable
protected $width;

/**
* @var StyleService
* @var ImageStyles
*/
protected $styleService;

Expand Down Expand Up @@ -118,7 +118,7 @@ public function __construct($data, $overrides = [])
$this->setSourcesAttributes();
$this->setLqipAttributes();

$this->styleService = new StyleService();
$this->styleService = new ImageStyles();
$this->styleService->setup(
$this->layout,
$this->backgroundColor,
Expand Down

0 comments on commit 6ba6ab5

Please sign in to comment.