@@ -32,8 +32,8 @@ class ThumbnailerImageManipulator implements ImageManipulatorInterface {
32
32
*/
33
33
public function __construct (ImagineInterface $ imagine , array $ thumbnailRules = [], array $ options = [])
34
34
{
35
- $ this ->setImagine ($ imagine , $ options ['imagine_options ' ] ?? []);
36
- unset($ options ['imagine_options ' ]);
35
+ $ this ->setImagine ($ imagine , $ options ['imagine_options ' ] ?? []);
36
+ unset($ options ['imagine_options ' ]);
37
37
foreach ($ thumbnailRules as $ thumbnailRule ) {
38
38
$ this ->addThumbnailRule ($ thumbnailRule );
39
39
}
@@ -51,13 +51,13 @@ public function __construct(ImagineInterface $imagine, array $thumbnailRules = [
51
51
*/
52
52
public function addThumbnailRule (ThumbnailRuleInterface $ thumbnailRule )
53
53
{
54
- if ($ thumbnailRule instanceof ImagineAwareInterface) {
54
+ if ($ thumbnailRule instanceof ImagineAwareInterface) {
55
55
// not very LSP but handy
56
- if (!$ thumbnailRule ->getImagine ()) {
57
- $ thumbnailRule ->setImagine ($ this ->getImagine (), $ this ->getImagineOptions ());
58
- }
59
- }
60
- $ this ->thumbnailRules [] = $ thumbnailRule ;
56
+ if (!$ thumbnailRule ->getImagine ()) {
57
+ $ thumbnailRule ->setImagine ($ this ->getImagine (), $ this ->getImagineOptions ());
58
+ }
59
+ }
60
+ $ this ->thumbnailRules [] = $ thumbnailRule ;
61
61
}
62
62
63
63
/**
@@ -66,7 +66,7 @@ public function addThumbnailRule(ThumbnailRuleInterface $thumbnailRule)
66
66
* @see \ImageStack\Api\ImageManipulatorInterface::manipulateImage()
67
67
*/
68
68
public function manipulateImage (ImageInterface $ image , ImagePathInterface $ path ) {
69
- $ this ->_manipulateImage ($ image , $ path );
69
+ $ this ->_manipulateImage ($ image , $ path );
70
70
}
71
71
72
72
/**
0 commit comments