1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-22 21:42:53 +02:00

Add placeholder comments in empty class bodies & constructors

This commit is contained in:
Oliver Vogel
2025-05-26 09:31:25 +02:00
parent 389c395c2f
commit f98f4d8aae
83 changed files with 83 additions and 0 deletions

View File

@@ -8,4 +8,5 @@ use Intervention\Image\Drivers\SpecializableAnalyzer;
class ColorspaceAnalyzer extends SpecializableAnalyzer class ColorspaceAnalyzer extends SpecializableAnalyzer
{ {
//
} }

View File

@@ -8,4 +8,5 @@ use Intervention\Image\Drivers\SpecializableAnalyzer;
class HeightAnalyzer extends SpecializableAnalyzer class HeightAnalyzer extends SpecializableAnalyzer
{ {
//
} }

View File

@@ -13,5 +13,6 @@ class PixelColorAnalyzer extends SpecializableAnalyzer
public int $y, public int $y,
public int $frame_key = 0 public int $frame_key = 0
) { ) {
//
} }
} }

View File

@@ -12,5 +12,6 @@ class PixelColorsAnalyzer extends SpecializableAnalyzer
public int $x, public int $x,
public int $y public int $y
) { ) {
//
} }
} }

View File

@@ -8,4 +8,5 @@ use Intervention\Image\Drivers\SpecializableAnalyzer;
class ProfileAnalyzer extends SpecializableAnalyzer class ProfileAnalyzer extends SpecializableAnalyzer
{ {
//
} }

View File

@@ -8,4 +8,5 @@ use Intervention\Image\Drivers\SpecializableAnalyzer;
class ResolutionAnalyzer extends SpecializableAnalyzer class ResolutionAnalyzer extends SpecializableAnalyzer
{ {
//
} }

View File

@@ -8,4 +8,5 @@ use Intervention\Image\Drivers\SpecializableAnalyzer;
class WidthAnalyzer extends SpecializableAnalyzer class WidthAnalyzer extends SpecializableAnalyzer
{ {
//
} }

View File

@@ -6,4 +6,5 @@ namespace Intervention\Image\Colors\Cmyk\Channels;
class Key extends Cyan class Key extends Cyan
{ {
//
} }

View File

@@ -6,4 +6,5 @@ namespace Intervention\Image\Colors\Cmyk\Channels;
class Magenta extends Cyan class Magenta extends Cyan
{ {
//
} }

View File

@@ -6,4 +6,5 @@ namespace Intervention\Image\Colors\Cmyk\Channels;
class Yellow extends Cyan class Yellow extends Cyan
{ {
//
} }

View File

@@ -6,4 +6,5 @@ namespace Intervention\Image\Colors\Rgb\Channels;
class Blue extends Red class Blue extends Red
{ {
//
} }

View File

@@ -6,4 +6,5 @@ namespace Intervention\Image\Colors\Rgb\Channels;
class Green extends Red class Green extends Red
{ {
//
} }

View File

@@ -8,4 +8,5 @@ use Intervention\Image\Drivers\SpecializableDecoder;
class Base64ImageDecoder extends SpecializableDecoder class Base64ImageDecoder extends SpecializableDecoder
{ {
//
} }

View File

@@ -8,4 +8,5 @@ use Intervention\Image\Drivers\SpecializableDecoder;
class BinaryImageDecoder extends SpecializableDecoder class BinaryImageDecoder extends SpecializableDecoder
{ {
//
} }

View File

@@ -8,4 +8,5 @@ use Intervention\Image\Drivers\SpecializableDecoder;
class DataUriImageDecoder extends SpecializableDecoder class DataUriImageDecoder extends SpecializableDecoder
{ {
//
} }

View File

@@ -8,4 +8,5 @@ use Intervention\Image\Drivers\SpecializableDecoder;
class EncodedImageObjectDecoder extends SpecializableDecoder class EncodedImageObjectDecoder extends SpecializableDecoder
{ {
//
} }

View File

@@ -8,4 +8,5 @@ use Intervention\Image\Drivers\SpecializableDecoder;
class FilePathImageDecoder extends SpecializableDecoder class FilePathImageDecoder extends SpecializableDecoder
{ {
//
} }

View File

@@ -8,4 +8,5 @@ use Intervention\Image\Drivers\SpecializableDecoder;
class FilePointerImageDecoder extends SpecializableDecoder class FilePointerImageDecoder extends SpecializableDecoder
{ {
//
} }

View File

@@ -8,4 +8,5 @@ use Intervention\Image\Drivers\SpecializableDecoder;
class NativeObjectDecoder extends SpecializableDecoder class NativeObjectDecoder extends SpecializableDecoder
{ {
//
} }

View File

@@ -8,4 +8,5 @@ use Intervention\Image\Drivers\SpecializableDecoder;
class SplFileInfoImageDecoder extends SpecializableDecoder class SplFileInfoImageDecoder extends SpecializableDecoder
{ {
//
} }

View File

@@ -83,6 +83,7 @@ class Driver extends AbstractDriver
protected DriverInterface $driver, protected DriverInterface $driver,
public Core $core = new Core() public Core $core = new Core()
) { ) {
//
} }
/** /**

View File

@@ -34,6 +34,7 @@ class Frame extends AbstractFrame implements FrameInterface
protected int $offset_left = 0, protected int $offset_left = 0,
protected int $offset_top = 0 protected int $offset_top = 0
) { ) {
//
} }
/** /**

View File

@@ -15,6 +15,7 @@ class ColorProcessor implements ColorProcessorInterface
{ {
public function __construct(protected ColorspaceInterface $colorspace) public function __construct(protected ColorspaceInterface $colorspace)
{ {
//
} }
public function colorToNative(ColorInterface $color): ImagickPixel public function colorToNative(ColorInterface $color): ImagickPixel

View File

@@ -27,6 +27,7 @@ class Core implements CoreInterface, Iterator
*/ */
public function __construct(protected Imagick $imagick) public function __construct(protected Imagick $imagick)
{ {
//
} }
/** /**

View File

@@ -19,5 +19,6 @@ class WebpEncoder extends SpecializableEncoder
public int $quality = self::DEFAULT_QUALITY, public int $quality = self::DEFAULT_QUALITY,
public ?bool $strip = null public ?bool $strip = null
) { ) {
//
} }
} }

View File

@@ -6,4 +6,5 @@ namespace Intervention\Image\Exceptions;
class AnimationException extends RuntimeException class AnimationException extends RuntimeException
{ {
//
} }

View File

@@ -6,4 +6,5 @@ namespace Intervention\Image\Exceptions;
class ColorException extends RuntimeException class ColorException extends RuntimeException
{ {
//
} }

View File

@@ -6,4 +6,5 @@ namespace Intervention\Image\Exceptions;
class DecoderException extends RuntimeException class DecoderException extends RuntimeException
{ {
//
} }

View File

@@ -6,4 +6,5 @@ namespace Intervention\Image\Exceptions;
class DriverException extends RuntimeException class DriverException extends RuntimeException
{ {
//
} }

View File

@@ -6,4 +6,5 @@ namespace Intervention\Image\Exceptions;
class EncoderException extends RuntimeException class EncoderException extends RuntimeException
{ {
//
} }

View File

@@ -6,4 +6,5 @@ namespace Intervention\Image\Exceptions;
class FontException extends RuntimeException class FontException extends RuntimeException
{ {
//
} }

View File

@@ -6,4 +6,5 @@ namespace Intervention\Image\Exceptions;
class GeometryException extends RuntimeException class GeometryException extends RuntimeException
{ {
//
} }

View File

@@ -6,4 +6,5 @@ namespace Intervention\Image\Exceptions;
class InputException extends RuntimeException class InputException extends RuntimeException
{ {
//
} }

View File

@@ -6,4 +6,5 @@ namespace Intervention\Image\Exceptions;
class NotSupportedException extends RuntimeException class NotSupportedException extends RuntimeException
{ {
//
} }

View File

@@ -6,4 +6,5 @@ namespace Intervention\Image\Exceptions;
class NotWritableException extends RuntimeException class NotWritableException extends RuntimeException
{ {
//
} }

View File

@@ -6,4 +6,5 @@ namespace Intervention\Image\Exceptions;
class RuntimeException extends \RuntimeException class RuntimeException extends \RuntimeException
{ {
//
} }

View File

@@ -34,6 +34,7 @@ class Bezier implements IteratorAggregate, Countable, ArrayAccess, DrawableInter
protected array $points = [], protected array $points = [],
protected PointInterface $pivot = new Point() protected PointInterface $pivot = new Point()
) { ) {
//
} }
/** /**

View File

@@ -27,6 +27,7 @@ class Ellipse implements DrawableInterface
protected int $height, protected int $height,
protected PointInterface $pivot = new Point() protected PointInterface $pivot = new Point()
) { ) {
//
} }
/** /**

View File

@@ -27,6 +27,7 @@ class Line implements DrawableInterface
protected PointInterface $end, protected PointInterface $end,
protected int $width = 1 protected int $width = 1
) { ) {
//
} }
/** /**

View File

@@ -21,6 +21,7 @@ class Pixel extends Point
protected int $x, protected int $x,
protected int $y protected int $y
) { ) {
//
} }
/** /**

View File

@@ -34,6 +34,7 @@ class Polygon implements IteratorAggregate, Countable, ArrayAccess, DrawableInte
protected array $points = [], protected array $points = [],
protected PointInterface $pivot = new Point() protected PointInterface $pivot = new Point()
) { ) {
//
} }
/** /**

View File

@@ -6,4 +6,5 @@ namespace Intervention\Image\Interfaces;
interface SpecializedInterface interface SpecializedInterface
{ {
//
} }

View File

@@ -17,6 +17,7 @@ class ModifierStack implements ModifierInterface
*/ */
public function __construct(protected array $modifiers) public function __construct(protected array $modifiers)
{ {
//
} }
/** /**

View File

@@ -8,4 +8,5 @@ use Intervention\Image\Drivers\SpecializableModifier;
class AlignRotationModifier extends SpecializableModifier class AlignRotationModifier extends SpecializableModifier
{ {
//
} }

View File

@@ -10,5 +10,6 @@ class BlurModifier extends SpecializableModifier
{ {
public function __construct(public int $amount) public function __construct(public int $amount)
{ {
//
} }
} }

View File

@@ -10,5 +10,6 @@ class BrightnessModifier extends SpecializableModifier
{ {
public function __construct(public int $level) public function __construct(public int $level)
{ {
//
} }
} }

View File

@@ -21,5 +21,6 @@ class ColorizeModifier extends SpecializableModifier
public int $green = 0, public int $green = 0,
public int $blue = 0 public int $blue = 0
) { ) {
//
} }
} }

View File

@@ -14,6 +14,7 @@ class ColorspaceModifier extends SpecializableModifier
{ {
public function __construct(public string|ColorspaceInterface $target) public function __construct(public string|ColorspaceInterface $target)
{ {
//
} }
/** /**

View File

@@ -18,6 +18,7 @@ class ContainModifier extends SpecializableModifier
public mixed $background = 'ffffff', public mixed $background = 'ffffff',
public string $position = 'center' public string $position = 'center'
) { ) {
//
} }
/** /**

View File

@@ -16,5 +16,6 @@ class ContrastModifier extends SpecializableModifier
*/ */
public function __construct(public int $level) public function __construct(public int $level)
{ {
//
} }
} }

View File

@@ -6,4 +6,5 @@ namespace Intervention\Image\Modifiers;
class CoverDownModifier extends CoverModifier class CoverDownModifier extends CoverModifier
{ {
//
} }

View File

@@ -25,6 +25,7 @@ class CoverModifier extends SpecializableModifier
public int $height, public int $height,
public string $position = 'center' public string $position = 'center'
) { ) {
//
} }
/** /**

View File

@@ -31,6 +31,7 @@ class CropModifier extends SpecializableModifier
public mixed $background = 'ffffff', public mixed $background = 'ffffff',
public string $position = 'top-left' public string $position = 'top-left'
) { ) {
//
} }
/** /**

View File

@@ -17,6 +17,7 @@ class DrawBezierModifier extends AbstractDrawModifier
*/ */
public function __construct(public Bezier $drawable) public function __construct(public Bezier $drawable)
{ {
//
} }
/** /**

View File

@@ -11,6 +11,7 @@ class DrawEllipseModifier extends AbstractDrawModifier
{ {
public function __construct(public Ellipse $drawable) public function __construct(public Ellipse $drawable)
{ {
//
} }
public function drawable(): DrawableInterface public function drawable(): DrawableInterface

View File

@@ -17,6 +17,7 @@ class DrawLineModifier extends AbstractDrawModifier
*/ */
public function __construct(public Line $drawable) public function __construct(public Line $drawable)
{ {
//
} }
/** /**

View File

@@ -20,5 +20,6 @@ class DrawPixelModifier extends SpecializableModifier
public PointInterface $position, public PointInterface $position,
public mixed $color public mixed $color
) { ) {
//
} }
} }

View File

@@ -11,6 +11,7 @@ class DrawPolygonModifier extends AbstractDrawModifier
{ {
public function __construct(public Polygon $drawable) public function __construct(public Polygon $drawable)
{ {
//
} }
public function drawable(): DrawableInterface public function drawable(): DrawableInterface

View File

@@ -17,6 +17,7 @@ class DrawRectangleModifier extends AbstractDrawModifier
*/ */
public function __construct(public Rectangle $drawable) public function __construct(public Rectangle $drawable)
{ {
//
} }
/** /**

View File

@@ -13,6 +13,7 @@ class FillModifier extends SpecializableModifier
public mixed $color, public mixed $color,
public ?PointInterface $position = null public ?PointInterface $position = null
) { ) {
//
} }
public function hasPosition(): bool public function hasPosition(): bool

View File

@@ -8,4 +8,5 @@ use Intervention\Image\Drivers\SpecializableModifier;
class FlipModifier extends SpecializableModifier class FlipModifier extends SpecializableModifier
{ {
//
} }

View File

@@ -8,4 +8,5 @@ use Intervention\Image\Drivers\SpecializableModifier;
class FlopModifier extends SpecializableModifier class FlopModifier extends SpecializableModifier
{ {
//
} }

View File

@@ -10,5 +10,6 @@ class GammaModifier extends SpecializableModifier
{ {
public function __construct(public float $gamma) public function __construct(public float $gamma)
{ {
//
} }
} }

View File

@@ -8,4 +8,5 @@ use Intervention\Image\Drivers\SpecializableModifier;
class GreyscaleModifier extends SpecializableModifier class GreyscaleModifier extends SpecializableModifier
{ {
//
} }

View File

@@ -8,4 +8,5 @@ use Intervention\Image\Drivers\SpecializableModifier;
class InvertModifier extends SpecializableModifier class InvertModifier extends SpecializableModifier
{ {
//
} }

View File

@@ -10,5 +10,6 @@ class PixelateModifier extends SpecializableModifier
{ {
public function __construct(public int $size) public function __construct(public int $size)
{ {
//
} }
} }

View File

@@ -28,6 +28,7 @@ class PlaceModifier extends SpecializableModifier
public int $offset_y = 0, public int $offset_y = 0,
public int $opacity = 100 public int $opacity = 100
) { ) {
//
} }
/** /**

View File

@@ -11,5 +11,6 @@ class ProfileModifier extends SpecializableModifier
{ {
public function __construct(public ProfileInterface $profile) public function __construct(public ProfileInterface $profile)
{ {
//
} }
} }

View File

@@ -8,4 +8,5 @@ use Intervention\Image\Drivers\SpecializableModifier;
class ProfileRemovalModifier extends SpecializableModifier class ProfileRemovalModifier extends SpecializableModifier
{ {
//
} }

View File

@@ -19,5 +19,6 @@ class QuantizeColorsModifier extends SpecializableModifier
public int $limit, public int $limit,
public mixed $background = 'ffffff' public mixed $background = 'ffffff'
) { ) {
//
} }
} }

View File

@@ -14,6 +14,7 @@ class RemoveAnimationModifier extends SpecializableModifier
{ {
public function __construct(public int|string $position = 0) public function __construct(public int|string $position = 0)
{ {
//
} }
/** /**

View File

@@ -27,6 +27,7 @@ class ResizeCanvasModifier extends SpecializableModifier
public mixed $background = 'ffffff', public mixed $background = 'ffffff',
public string $position = 'center' public string $position = 'center'
) { ) {
//
} }
/** /**

View File

@@ -6,4 +6,5 @@ namespace Intervention\Image\Modifiers;
class ResizeCanvasRelativeModifier extends ResizeCanvasModifier class ResizeCanvasRelativeModifier extends ResizeCanvasModifier
{ {
//
} }

View File

@@ -6,4 +6,5 @@ namespace Intervention\Image\Modifiers;
class ResizeDownModifier extends ResizeModifier class ResizeDownModifier extends ResizeModifier
{ {
//
} }

View File

@@ -17,5 +17,6 @@ class ResizeModifier extends SpecializableModifier
*/ */
public function __construct(public ?int $width = null, public ?int $height = null) public function __construct(public ?int $width = null, public ?int $height = null)
{ {
//
} }
} }

View File

@@ -17,5 +17,6 @@ class ResolutionModifier extends SpecializableModifier
*/ */
public function __construct(public float $x, public float $y) public function __construct(public float $x, public float $y)
{ {
//
} }
} }

View File

@@ -10,6 +10,7 @@ class RotateModifier extends SpecializableModifier
{ {
public function __construct(public float $angle, public mixed $background) public function __construct(public float $angle, public mixed $background)
{ {
//
} }
/** /**

View File

@@ -6,4 +6,5 @@ namespace Intervention\Image\Modifiers;
class ScaleDownModifier extends ScaleModifier class ScaleDownModifier extends ScaleModifier
{ {
//
} }

View File

@@ -6,4 +6,5 @@ namespace Intervention\Image\Modifiers;
class ScaleModifier extends ResizeModifier class ScaleModifier extends ResizeModifier
{ {
//
} }

View File

@@ -10,5 +10,6 @@ class SharpenModifier extends SpecializableModifier
{ {
public function __construct(public int $amount) public function __construct(public int $amount)
{ {
//
} }
} }

View File

@@ -10,5 +10,6 @@ class SliceAnimationModifier extends SpecializableModifier
{ {
public function __construct(public int $offset = 0, public ?int $length = null) public function __construct(public int $offset = 0, public ?int $length = null)
{ {
//
} }
} }

View File

@@ -27,6 +27,7 @@ class TextModifier extends SpecializableModifier
public PointInterface $position, public PointInterface $position,
public FontInterface $font public FontInterface $font
) { ) {
//
} }
/** /**

View File

@@ -16,5 +16,6 @@ class TrimModifier extends SpecializableModifier
*/ */
public function __construct(public int $tolerance = 0) public function __construct(public int $tolerance = 0)
{ {
//
} }
} }