@@ -27,25 +27,25 @@ abstract class AbstractAdapter implements AdapterInterface
2727 * Position constants.
2828 * Used mainly for watermarks
2929 */
30- const POSITION_TOP_LEFT = 'top-left ' ;
30+ public const POSITION_TOP_LEFT = 'top-left ' ;
3131
32- const POSITION_TOP_RIGHT = 'top-right ' ;
32+ public const POSITION_TOP_RIGHT = 'top-right ' ;
3333
34- const POSITION_BOTTOM_LEFT = 'bottom-left ' ;
34+ public const POSITION_BOTTOM_LEFT = 'bottom-left ' ;
3535
36- const POSITION_BOTTOM_RIGHT = 'bottom-right ' ;
36+ public const POSITION_BOTTOM_RIGHT = 'bottom-right ' ;
3737
38- const POSITION_STRETCH = 'stretch ' ;
38+ public const POSITION_STRETCH = 'stretch ' ;
3939
40- const POSITION_TILE = 'tile ' ;
40+ public const POSITION_TILE = 'tile ' ;
4141
42- const POSITION_CENTER = 'center ' ;
42+ public const POSITION_CENTER = 'center ' ;
4343 /**#@-*/
4444
4545 /**
4646 * The size of the font to use as default
4747 */
48- const DEFAULT_FONT_SIZE = 15 ;
48+ public const DEFAULT_FONT_SIZE = 15 ;
4949
5050 /**
5151 * @var int
@@ -274,8 +274,7 @@ abstract public function getColorAt($x, $y);
274274 */
275275 public function __construct (
276276 \Magento \Framework \Filesystem $ filesystem ,
277- \Psr \Log \LoggerInterface $ logger ,
278- array $ data = []
277+ \Psr \Log \LoggerInterface $ logger
279278 ) {
280279 $ this ->_filesystem = $ filesystem ;
281280 $ this ->logger = $ logger ;
@@ -622,10 +621,7 @@ protected function _checkAspectRatio($frameWidth, $frameHeight)
622621 */
623622 protected function _checkDimensions ($ frameWidth , $ frameHeight )
624623 {
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 ) {
629625 //phpcs:ignore Magento2.Exceptions.DirectThrow
630626 throw new \InvalidArgumentException ('Invalid image dimensions. ' );
631627 }
0 commit comments