diff --git a/core/lib/Drupal/Component/Utility/Image.php b/core/lib/Drupal/Component/Utility/Image.php index 4f6d996..b12a861 100644 --- a/core/lib/Drupal/Component/Utility/Image.php +++ b/core/lib/Drupal/Component/Utility/Image.php @@ -62,4 +62,5 @@ public static function scaleDimensions(array &$dimensions, $width = NULL, $heigh $dimensions['height'] = $height; return TRUE; } + } diff --git a/core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php b/core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php index 285e3f3..2c43dd6 100644 --- a/core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php +++ b/core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php @@ -182,9 +182,9 @@ public function scale(ImageInterface $image, $width = NULL, $height = NULL, $ups * @param int $height * The target height, in pixels. * @param bool $upscale - * (optional) Boolean indicating that files smaller than the dimensions will - * be scaled up. This generally results in a low quality image. Defaults - * to TRUE. + * (optional) Upscale option that indicates whether files smaller than the + * dimensions will be scaled up. This generally results in a low quality + * image. * * @return bool * TRUE on success, FALSE on failure. diff --git a/core/modules/image/image.admin.inc b/core/modules/image/image.admin.inc index f7699d7..b659b1d 100644 --- a/core/modules/image/image.admin.inc +++ b/core/modules/image/image.admin.inc @@ -224,7 +224,7 @@ function theme_image_resize_summary($variables) { /** * Returns HTML for a summary of an image scale effect. * - * @param array $variables + * @param $variables * An associative array containing: * - data: The current configuration for this scale effect. * @@ -241,13 +241,13 @@ function theme_image_scale_summary($variables) { /** * Returns HTML for a summary of an image scale and crop effect. * - * @param $variables + * @param array $variables * An associative array containing: * - data: The current configuration for this scale and crop effect. * * @ingroup themeable */ -function theme_image_scale_and_crop_summary($variables) { +function theme_image_scale_and_crop_summary(array $variables) { $image_scale_summary = array( '#theme' => 'image_scale_summary', '#data' => $variables['data'], diff --git a/core/modules/image/lib/Drupal/image/Plugin/ImageEffect/ScaleAndCropImageEffect.php b/core/modules/image/lib/Drupal/image/Plugin/ImageEffect/ScaleAndCropImageEffect.php index 4286ad4..a443d00 100644 --- a/core/modules/image/lib/Drupal/image/Plugin/ImageEffect/ScaleAndCropImageEffect.php +++ b/core/modules/image/lib/Drupal/image/Plugin/ImageEffect/ScaleAndCropImageEffect.php @@ -42,7 +42,8 @@ public function transformDimensions(array &$dimensions) { $upscale = $this->configuration['upscale']; $scale = max($width / $image_width, $height / $image_height); if (!$upscale && $scale >= 1) { - // When upscale is false and scale > 1, image will have original dimensions. + // When upscale is false and scale > 1, image will have original + // dimensions. return TRUE; } // The new image will have the exact dimensions defined for the effect.