Skip to content

Commit 773ee48

Browse files
committed
Dev: modify the return type to the comments.
1 parent 8e42ddf commit 773ee48

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

system/Images/Handlers/BaseHandler.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,8 +726,10 @@ public function __call(string $name, array $args = [])
726726
*
727727
* This function lets us re-proportion the width/height
728728
* if users choose to maintain the aspect ratio when resizing.
729+
*
730+
* @return void
729731
*/
730-
protected function reproportion(): void
732+
protected function reproportion()
731733
{
732734
if (($this->width === 0 && $this->height === 0) || $this->image()->origWidth === 0 || $this->image()->origHeight === 0 || (! ctype_digit((string) $this->width) && ! ctype_digit((string) $this->height)) || ! ctype_digit((string) $this->image()->origWidth) || ! ctype_digit((string) $this->image()->origHeight)) {
733735
return;

system/Images/Handlers/ImageMagickHandler.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,11 @@ protected function getResourcePath()
290290
/**
291291
* Make the image resource object if needed
292292
*
293+
* @return void
294+
*
293295
* @throws Exception
294296
*/
295-
protected function ensureResource(): void
297+
protected function ensureResource()
296298
{
297299
$this->getResourcePath();
298300

@@ -302,9 +304,11 @@ protected function ensureResource(): void
302304
/**
303305
* Check if given image format is supported
304306
*
307+
* @return void
308+
*
305309
* @throws ImageException
306310
*/
307-
protected function supportedFormatCheck(): void
311+
protected function supportedFormatCheck()
308312
{
309313
switch ($this->image()->imageType) {
310314
case IMAGETYPE_WEBP:
@@ -318,9 +322,11 @@ protected function supportedFormatCheck(): void
318322
/**
319323
* Handler-specific method for overlaying text on an image.
320324
*
325+
* @return void
326+
*
321327
* @throws Exception
322328
*/
323-
protected function _text(string $text, array $options = []): void
329+
protected function _text(string $text, array $options = [])
324330
{
325331
$xAxis = 0;
326332
$yAxis = 0;

0 commit comments

Comments
 (0)