@@ -27,25 +27,25 @@ abstract class AbstractAdapter implements AdapterInterface
27
27
* Position constants.
28
28
* Used mainly for watermarks
29
29
*/
30
- const POSITION_TOP_LEFT = 'top-left ' ;
30
+ public const POSITION_TOP_LEFT = 'top-left ' ;
31
31
32
- const POSITION_TOP_RIGHT = 'top-right ' ;
32
+ public const POSITION_TOP_RIGHT = 'top-right ' ;
33
33
34
- const POSITION_BOTTOM_LEFT = 'bottom-left ' ;
34
+ public const POSITION_BOTTOM_LEFT = 'bottom-left ' ;
35
35
36
- const POSITION_BOTTOM_RIGHT = 'bottom-right ' ;
36
+ public const POSITION_BOTTOM_RIGHT = 'bottom-right ' ;
37
37
38
- const POSITION_STRETCH = 'stretch ' ;
38
+ public const POSITION_STRETCH = 'stretch ' ;
39
39
40
- const POSITION_TILE = 'tile ' ;
40
+ public const POSITION_TILE = 'tile ' ;
41
41
42
- const POSITION_CENTER = 'center ' ;
42
+ public const POSITION_CENTER = 'center ' ;
43
43
/**#@-*/
44
44
45
45
/**
46
46
* The size of the font to use as default
47
47
*/
48
- const DEFAULT_FONT_SIZE = 15 ;
48
+ public const DEFAULT_FONT_SIZE = 15 ;
49
49
50
50
/**
51
51
* @var int
@@ -274,8 +274,7 @@ abstract public function getColorAt($x, $y);
274
274
*/
275
275
public function __construct (
276
276
\Magento \Framework \Filesystem $ filesystem ,
277
- \Psr \Log \LoggerInterface $ logger ,
278
- array $ data = []
277
+ \Psr \Log \LoggerInterface $ logger
279
278
) {
280
279
$ this ->_filesystem = $ filesystem ;
281
280
$ this ->logger = $ logger ;
@@ -622,10 +621,7 @@ protected function _checkAspectRatio($frameWidth, $frameHeight)
622
621
*/
623
622
protected function _checkDimensions ($ frameWidth , $ frameHeight )
624
623
{
625
- if ($ frameWidth !== null && $ frameWidth <= 0 ||
626
- $ frameHeight !== null && $ frameHeight <= 0 ||
627
- empty ($ frameWidth ) && empty ($ frameHeight )
628
- ) {
624
+ if ($ frameWidth !== null && $ frameWidth <= 0 || $ frameHeight !== null && $ frameHeight <= 0 ) {
629
625
//phpcs:ignore Magento2.Exceptions.DirectThrow
630
626
throw new \InvalidArgumentException ('Invalid image dimensions. ' );
631
627
}
0 commit comments