1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-30 09:10:21 +02:00

Merge branch 'jwpage-fix_typehinting'

This commit is contained in:
Oliver Vogel
2014-08-23 17:47:12 +02:00
88 changed files with 137 additions and 137 deletions

View File

@@ -8,7 +8,7 @@ abstract class AbstractColor
* Initiates color object from integer * Initiates color object from integer
* *
* @param integer $value * @param integer $value
* @return Intervention\Image\AbstractColor * @return \Intervention\Image\AbstractColor
*/ */
abstract public function initFromInteger($value); abstract public function initFromInteger($value);
@@ -16,7 +16,7 @@ abstract class AbstractColor
* Initiates color object from given array * Initiates color object from given array
* *
* @param array $value * @param array $value
* @return Intervention\Image\AbstractColor * @return \Intervention\Image\AbstractColor
*/ */
abstract public function initFromArray($value); abstract public function initFromArray($value);
@@ -24,7 +24,7 @@ abstract class AbstractColor
* Initiates color object from given string * Initiates color object from given string
* *
* @param string $value * @param string $value
* @return Intervention\Image\AbstractColor * @return \Intervention\Image\AbstractColor
*/ */
abstract public function initFromString($value); abstract public function initFromString($value);
@@ -32,7 +32,7 @@ abstract class AbstractColor
* Initiates color object from given ImagickPixel object * Initiates color object from given ImagickPixel object
* *
* @param ImagickPixel $value * @param ImagickPixel $value
* @return Intervention\Image\AbstractColor * @return \Intervention\Image\AbstractColor
*/ */
abstract public function initFromObject($value); abstract public function initFromObject($value);
@@ -42,7 +42,7 @@ abstract class AbstractColor
* @param integer $r * @param integer $r
* @param integer $g * @param integer $g
* @param integer $b * @param integer $b
* @return Intervention\Image\AbstractColor * @return \Intervention\Image\AbstractColor
*/ */
abstract public function initFromRgb($r, $g, $b); abstract public function initFromRgb($r, $g, $b);
@@ -53,7 +53,7 @@ abstract class AbstractColor
* @param integer $g * @param integer $g
* @param integer $b * @param integer $b
* @param float $a * @param float $a
* @return Intervention\Image\AbstractColor * @return \Intervention\Image\AbstractColor
*/ */
abstract public function initFromRgba($r, $g, $b, $a); abstract public function initFromRgba($r, $g, $b, $a);
@@ -109,7 +109,7 @@ abstract class AbstractColor
* Parses given value as color * Parses given value as color
* *
* @param mixed $value * @param mixed $value
* @return Intervention\Image\AbstractColor * @return \Intervention\Image\AbstractColor
*/ */
public function parse($value) public function parse($value)
{ {

View File

@@ -8,7 +8,7 @@ abstract class AbstractDecoder
* Initiates new image from path in filesystem * Initiates new image from path in filesystem
* *
* @param string $path * @param string $path
* @return Intervention\Image\Image * @return \Intervention\Image\Image
*/ */
abstract public function initFromPath($path); abstract public function initFromPath($path);
@@ -16,7 +16,7 @@ abstract class AbstractDecoder
* Initiates new image from binary data * Initiates new image from binary data
* *
* @param string $data * @param string $data
* @return Intervention\Image\Image * @return \Intervention\Image\Image
*/ */
abstract public function initFromBinary($data); abstract public function initFromBinary($data);
@@ -24,7 +24,7 @@ abstract class AbstractDecoder
* Initiates new image from GD resource * Initiates new image from GD resource
* *
* @param Resource $resource * @param Resource $resource
* @return Intervention\Image\Image * @return \Intervention\Image\Image
*/ */
abstract public function initFromGdResource($resource); abstract public function initFromGdResource($resource);
@@ -32,7 +32,7 @@ abstract class AbstractDecoder
* Initiates new image from Imagick object * Initiates new image from Imagick object
* *
* @param Imagick $object * @param Imagick $object
* @return Intervention\Image\Image * @return \Intervention\Image\Image
*/ */
abstract public function initFromImagick(\Imagick $object); abstract public function initFromImagick(\Imagick $object);
@@ -152,7 +152,7 @@ abstract class AbstractDecoder
* Initiates new Image from Intervention\Image\Image * Initiates new Image from Intervention\Image\Image
* *
* @param Image $object * @param Image $object
* @return Intervention\Image\Image * @return \Intervention\Image\Image
*/ */
public function initFromInterventionImage($object) public function initFromInterventionImage($object)
{ {
@@ -181,7 +181,7 @@ abstract class AbstractDecoder
* Initiates new image from mixed data * Initiates new image from mixed data
* *
* @param mixed $data * @param mixed $data
* @return Intervention\Image\Image * @return \Intervention\Image\Image
*/ */
public function init($data) public function init($data)
{ {

View File

@@ -7,14 +7,14 @@ abstract class AbstractDriver
/** /**
* Decoder instance to init images from * Decoder instance to init images from
* *
* @var Intervention\Image\AbstractDecoder * @var \Intervention\Image\AbstractDecoder
*/ */
public $decoder; public $decoder;
/** /**
* Image encoder instance * Image encoder instance
* *
* @var Intervention\Image\AbstractEncoder * @var \Intervention\Image\AbstractEncoder
*/ */
public $encoder; public $encoder;
@@ -24,7 +24,7 @@ abstract class AbstractDriver
* @param integer $width * @param integer $width
* @param integer $height * @param integer $height
* @param string $background * @param string $background
* @return Intervention\Image\Image * @return \Intervention\Image\Image
*/ */
abstract public function newImage($width, $height, $background); abstract public function newImage($width, $height, $background);
@@ -57,7 +57,7 @@ abstract class AbstractDriver
* Initiates new image from given input * Initiates new image from given input
* *
* @param mixed $data * @param mixed $data
* @return Intervention\Image\Image * @return \Intervention\Image\Image
*/ */
public function init($data) public function init($data)
{ {
@@ -70,7 +70,7 @@ abstract class AbstractDriver
* @param Image $image * @param Image $image
* @param string $format * @param string $format
* @param integer $quality * @param integer $quality
* @return Intervention\Image\Image * @return \Intervention\Image\Image
*/ */
public function encode($image, $format, $quality) public function encode($image, $format, $quality)
{ {
@@ -83,7 +83,7 @@ abstract class AbstractDriver
* @param Image $image * @param Image $image
* @param string $name * @param string $name
* @param array $arguments * @param array $arguments
* @return Intervention\Image\Commands\AbstractCommand * @return \Intervention\Image\Commands\AbstractCommand
*/ */
public function executeCommand($image, $name, $arguments) public function executeCommand($image, $name, $arguments)
{ {

View File

@@ -21,7 +21,7 @@ abstract class AbstractCommand
/** /**
* Executes current command on given image * Executes current command on given image
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return mixed * @return mixed
*/ */
abstract public function execute($image); abstract public function execute($image);
@@ -40,7 +40,7 @@ abstract class AbstractCommand
* Creates new argument instance from given argument key * Creates new argument instance from given argument key
* *
* @param integer $key * @param integer $key
* @return Intervention\Image\Commands\Argument * @return \Intervention\Image\Commands\Argument
*/ */
public function argument($key) public function argument($key)
{ {

View File

@@ -59,7 +59,7 @@ class Argument
/** /**
* Defines current argument as required * Defines current argument as required
* *
* @return Intervention\Image\Commands\Argument * @return \Intervention\Image\Commands\Argument
*/ */
public function required() public function required()
{ {
@@ -75,7 +75,7 @@ class Argument
/** /**
* Determines that current argument must be of given type * Determines that current argument must be of given type
* *
* @return Intervention\Image\Commands\Argument * @return \Intervention\Image\Commands\Argument
*/ */
public function type($type) public function type($type)
{ {
@@ -144,7 +144,7 @@ class Argument
/** /**
* Determines that current argument value must be numeric between given values * Determines that current argument value must be numeric between given values
* *
* @return Intervention\Image\Commands\Argument * @return \Intervention\Image\Commands\Argument
*/ */
public function between($x, $y) public function between($x, $y)
{ {
@@ -169,7 +169,7 @@ class Argument
/** /**
* Determines that current argument must be over a minimum value * Determines that current argument must be over a minimum value
* *
* @return Intervention\Image\Commands\Argument * @return \Intervention\Image\Commands\Argument
*/ */
public function min($value) public function min($value)
{ {
@@ -191,7 +191,7 @@ class Argument
/** /**
* Determines that current argument must be under a maxiumum value * Determines that current argument must be under a maxiumum value
* *
* @return Intervention\Image\Commands\Argument * @return \Intervention\Image\Commands\Argument
*/ */
public function max($value) public function max($value)
{ {

View File

@@ -7,7 +7,7 @@ class ChecksumCommand extends AbstractCommand
/** /**
* Calculates checksum of given image * Calculates checksum of given image
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -9,7 +9,7 @@ class CircleCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Draw a circle centered on given image * Draw a circle centered on given image
* *
* @param Intervention\Image\image $image * @param \Intervention\Image\image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -9,7 +9,7 @@ class EllipseCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Draws ellipse on given image * Draws ellipse on given image
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -10,7 +10,7 @@ class ExifCommand extends AbstractCommand
* Note: Windows PHP Users - in order to use this method you will need to * Note: Windows PHP Users - in order to use this method you will need to
* enable the mbstring and exif extensions within the php.ini file. * enable the mbstring and exif extensions within the php.ini file.
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -9,7 +9,7 @@ class LineCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Draws line on given image * Draws line on given image
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class OrientateCommand extends AbstractCommand
/** /**
* Correct image orientation according to Exif data * Correct image orientation according to Exif data
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -9,7 +9,7 @@ class PolygonCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Draw a polygon on given image * Draw a polygon on given image
* *
* @param Intervention\Image\image $image * @param \Intervention\Image\image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -9,7 +9,7 @@ class RectangleCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Draws rectangle on given image * Draws rectangle on given image
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -9,7 +9,7 @@ class ResponseCommand extends AbstractCommand
/** /**
* Builds HTTP response from given image * Builds HTTP response from given image
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -8,7 +8,7 @@ class TextCommand extends \Intervention\Image\Commands\AbstractCommand
{ {
/** /**
* Write text on given image * Write text on given image
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -17,7 +17,7 @@ class Constraint
/** /**
* Constraint size * Constraint size
* *
* @var Intervention\Image\Size * @var \Intervention\Image\Size
*/ */
private $size; private $size;
@@ -41,7 +41,7 @@ class Constraint
/** /**
* Returns current size of constraint * Returns current size of constraint
* *
* @return Intervention\Image\Size * @return \Intervention\Image\Size
*/ */
public function getSize() public function getSize()
{ {

View File

@@ -29,8 +29,8 @@ class DemoFilter implements FilterInterface
/** /**
* Applies filter effects to given image * Applies filter effects to given image
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return Intervention\Image\Image * @return \Intervention\Image\Image
*/ */
public function applyFilter(\Intervention\Image\Image $image) public function applyFilter(\Intervention\Image\Image $image)
{ {

View File

@@ -7,8 +7,8 @@ interface FilterInterface
/** /**
* Applies filter to given image * Applies filter to given image
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return Intervention\Image\Image * @return \Intervention\Image\Image
*/ */
public function applyFilter(\Intervention\Image\Image $image); public function applyFilter(\Intervention\Image\Image $image);
} }

View File

@@ -38,7 +38,7 @@ class Color extends AbstractColor
* Initiates color object from integer * Initiates color object from integer
* *
* @param integer $value * @param integer $value
* @return Intervention\Image\AbstractColor * @return \Intervention\Image\AbstractColor
*/ */
public function initFromInteger($value) public function initFromInteger($value)
{ {
@@ -52,7 +52,7 @@ class Color extends AbstractColor
* Initiates color object from given array * Initiates color object from given array
* *
* @param array $value * @param array $value
* @return Intervention\Image\AbstractColor * @return \Intervention\Image\AbstractColor
*/ */
public function initFromArray($array) public function initFromArray($array)
{ {
@@ -81,7 +81,7 @@ class Color extends AbstractColor
* Initiates color object from given string * Initiates color object from given string
* *
* @param string $value * @param string $value
* @return Intervention\Image\AbstractColor * @return \Intervention\Image\AbstractColor
*/ */
public function initFromString($value) public function initFromString($value)
{ {
@@ -99,7 +99,7 @@ class Color extends AbstractColor
* @param integer $r * @param integer $r
* @param integer $g * @param integer $g
* @param integer $b * @param integer $b
* @return Intervention\Image\AbstractColor * @return \Intervention\Image\AbstractColor
*/ */
public function initFromRgb($r, $g, $b) public function initFromRgb($r, $g, $b)
{ {
@@ -116,7 +116,7 @@ class Color extends AbstractColor
* @param integer $g * @param integer $g
* @param integer $b * @param integer $b
* @param float $a * @param float $a
* @return Intervention\Image\AbstractColor * @return \Intervention\Image\AbstractColor
*/ */
public function initFromRgba($r, $g, $b, $a = 1) public function initFromRgba($r, $g, $b, $a = 1)
{ {
@@ -130,7 +130,7 @@ class Color extends AbstractColor
* Initiates color object from given ImagickPixel object * Initiates color object from given ImagickPixel object
* *
* @param ImagickPixel $value * @param ImagickPixel $value
* @return Intervention\Image\AbstractColor * @return \Intervention\Image\AbstractColor
*/ */
public function initFromObject($value) public function initFromObject($value)
{ {

View File

@@ -7,7 +7,7 @@ class BackupCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Saves a backups of current state of image core * Saves a backups of current state of image core
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class BlurCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Applies blur effect on image * Applies blur effect on image
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class BrightnessCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Changes image brightness * Changes image brightness
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class ColorizeCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Changes balance of different RGB color channels * Changes balance of different RGB color channels
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class ContrastCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Changes contrast of image * Changes contrast of image
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -10,7 +10,7 @@ class CropCommand extends ResizeCommand
/** /**
* Crop an image instance * Crop an image instance
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class DestroyCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Destroys current image core and frees up memory * Destroys current image core and frees up memory
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -10,7 +10,7 @@ class FillCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Fills image with color or pattern * Fills image with color or pattern
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -10,7 +10,7 @@ class FitCommand extends ResizeCommand
/** /**
* Crops and resized an image at the same time * Crops and resized an image at the same time
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class FlipCommand extends ResizeCommand
/** /**
* Mirrors an image * Mirrors an image
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class GammaCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Applies gamma correction to a given image * Applies gamma correction to a given image
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -9,7 +9,7 @@ class GetSizeCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Reads size of given image instance in pixels * Reads size of given image instance in pixels
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class GreyscaleCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Turns an image into a greyscale version * Turns an image into a greyscale version
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class HeightenCommand extends ResizeCommand
/** /**
* Resize image proportionally to given height * Resize image proportionally to given height
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class InsertCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Insert another image into given image * Insert another image into given image
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class InterlaceCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Toggles interlaced encoding mode * Toggles interlaced encoding mode
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class InvertCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Inverts colors of an image * Inverts colors of an image
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -9,7 +9,7 @@ class LimitColorsCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Reduces colors of a given image * Reduces colors of a given image
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class MaskCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Applies an alpha mask to an image * Applies an alpha mask to an image
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class OpacityCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Defines opacity of an image * Defines opacity of an image
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -9,7 +9,7 @@ class PickColorCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Read color information from a certain position * Read color information from a certain position
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -9,7 +9,7 @@ class PixelCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Draws one pixel to a given image * Draws one pixel to a given image
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class PixelateCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Applies a pixelation effect to a given image * Applies a pixelation effect to a given image
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class ResetCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Resets given image to its backup state * Resets given image to its backup state
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -10,7 +10,7 @@ class ResizeCanvasCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Resizes image boundaries * Resizes image boundaries
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class ResizeCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Resizes image dimensions * Resizes image dimensions
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -9,7 +9,7 @@ class RotateCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Rotates image counter clockwise * Rotates image counter clockwise
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class SharpenCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Sharpen image * Sharpen image
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -9,7 +9,7 @@ class TrimCommand extends ResizeCommand
/** /**
* Trims away parts of an image * Trims away parts of an image
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class WidenCommand extends ResizeCommand
/** /**
* Resize image proportionally to given width * Resize image proportionally to given width
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -11,7 +11,7 @@ class Decoder extends \Intervention\Image\AbstractDecoder
* Initiates new image from path in filesystem * Initiates new image from path in filesystem
* *
* @param string $path * @param string $path
* @return Intervention\Image\Image * @return \Intervention\Image\Image
*/ */
public function initFromPath($path) public function initFromPath($path)
{ {
@@ -57,7 +57,7 @@ class Decoder extends \Intervention\Image\AbstractDecoder
* Initiates new image from GD resource * Initiates new image from GD resource
* *
* @param Resource $resource * @param Resource $resource
* @return Intervention\Image\Image * @return \Intervention\Image\Image
*/ */
public function initFromGdResource($resource) public function initFromGdResource($resource)
{ {
@@ -68,7 +68,7 @@ class Decoder extends \Intervention\Image\AbstractDecoder
* Initiates new image from Imagick object * Initiates new image from Imagick object
* *
* @param Imagick $object * @param Imagick $object
* @return Intervention\Image\Image * @return \Intervention\Image\Image
*/ */
public function initFromImagick(\Imagick $object) public function initFromImagick(\Imagick $object)
{ {
@@ -81,7 +81,7 @@ class Decoder extends \Intervention\Image\AbstractDecoder
* Initiates new image from binary data * Initiates new image from binary data
* *
* @param string $data * @param string $data
* @return Intervention\Image\Image * @return \Intervention\Image\Image
*/ */
public function initFromBinary($binary) public function initFromBinary($binary)
{ {

View File

@@ -30,7 +30,7 @@ class Driver extends \Intervention\Image\AbstractDriver
* @param integer $width * @param integer $width
* @param integer $height * @param integer $height
* @param string $background * @param string $background
* @return Intervention\Image\Image * @return \Intervention\Image\Image
*/ */
public function newImage($width, $height, $background = null) public function newImage($width, $height, $background = null)
{ {

View File

@@ -63,7 +63,7 @@ class Image extends File
* *
* @param string $format * @param string $format
* @param integer $quality * @param integer $quality
* @return Intervention\Image\Image * @return \Intervention\Image\Image
*/ */
public function encode($format = null, $quality = 90) public function encode($format = null, $quality = 90)
{ {
@@ -75,7 +75,7 @@ class Image extends File
* *
* @param string $path * @param string $path
* @param integer $quality * @param integer $quality
* @return Intervention\Image\Image * @return \Intervention\Image\Image
*/ */
public function save($path = null, $quality = null) public function save($path = null, $quality = null)
{ {
@@ -106,7 +106,7 @@ class Image extends File
* Runs a given filter on current image * Runs a given filter on current image
* *
* @param FiltersFilterInterface $filter * @param FiltersFilterInterface $filter
* @return Intervention\Image\Image * @return \Intervention\Image\Image
*/ */
public function filter(Filters\FilterInterface $filter) public function filter(Filters\FilterInterface $filter)
{ {
@@ -116,7 +116,7 @@ class Image extends File
/** /**
* Returns current image driver * Returns current image driver
* *
* @return Intervention\Image\AbstractDriver * @return \Intervention\Image\AbstractDriver
*/ */
public function getDriver() public function getDriver()
{ {

View File

@@ -42,7 +42,7 @@ class ImageManager
* *
* @param mixed $data * @param mixed $data
* *
* @return Intervention\Image\Image * @return \Intervention\Image\Image
*/ */
public function make($data) public function make($data)
{ {
@@ -56,7 +56,7 @@ class ImageManager
* @param integer $height * @param integer $height
* @param mixed $background * @param mixed $background
* *
* @return Intervention\Image\Image * @return \Intervention\Image\Image
*/ */
public function canvas($width, $height, $background = null) public function canvas($width, $height, $background = null)
{ {
@@ -95,7 +95,7 @@ class ImageManager
/** /**
* Creates a driver instance according to config settings * Creates a driver instance according to config settings
* *
* @return Intervention\Image\AbstractDriver * @return \Intervention\Image\AbstractDriver
*/ */
private function createDriver() private function createDriver()
{ {

View File

@@ -50,7 +50,7 @@ class ImageManagerStatic
* *
* @param mixed $data * @param mixed $data
* *
* @return Intervention\Image\Image * @return \Intervention\Image\Image
*/ */
public static function make($data) public static function make($data)
{ {
@@ -64,7 +64,7 @@ class ImageManagerStatic
* @param integer $height * @param integer $height
* @param mixed $background * @param mixed $background
* *
* @return Intervention\Image\Image * @return \Intervention\Image\Image
*/ */
public static function canvas($width, $height, $background = null) public static function canvas($width, $height, $background = null)
{ {

View File

@@ -15,7 +15,7 @@ class Color extends \Intervention\Image\AbstractColor
* Initiates color object from integer * Initiates color object from integer
* *
* @param integer $value * @param integer $value
* @return Intervention\Image\AbstractColor * @return \Intervention\Image\AbstractColor
*/ */
public function initFromInteger($value) public function initFromInteger($value)
{ {
@@ -32,7 +32,7 @@ class Color extends \Intervention\Image\AbstractColor
* Initiates color object from given array * Initiates color object from given array
* *
* @param array $value * @param array $value
* @return Intervention\Image\AbstractColor * @return \Intervention\Image\AbstractColor
*/ */
public function initFromArray($array) public function initFromArray($array)
{ {
@@ -58,7 +58,7 @@ class Color extends \Intervention\Image\AbstractColor
* *
* @param string $value * @param string $value
* *
* @return Intervention\Image\AbstractColor * @return \Intervention\Image\AbstractColor
*/ */
public function initFromString($value) public function initFromString($value)
{ {
@@ -72,7 +72,7 @@ class Color extends \Intervention\Image\AbstractColor
* *
* @param ImagickPixel $value * @param ImagickPixel $value
* *
* @return Intervention\Image\AbstractColor * @return \Intervention\Image\AbstractColor
*/ */
public function initFromObject($value) public function initFromObject($value)
{ {
@@ -88,7 +88,7 @@ class Color extends \Intervention\Image\AbstractColor
* @param integer $g * @param integer $g
* @param integer $b * @param integer $b
* *
* @return Intervention\Image\AbstractColor * @return \Intervention\Image\AbstractColor
*/ */
public function initFromRgb($r, $g, $b) public function initFromRgb($r, $g, $b)
{ {
@@ -103,7 +103,7 @@ class Color extends \Intervention\Image\AbstractColor
* @param integer $b * @param integer $b
* @param float $a * @param float $a
* *
* @return Intervention\Image\AbstractColor * @return \Intervention\Image\AbstractColor
*/ */
public function initFromRgba($r, $g, $b, $a) public function initFromRgba($r, $g, $b, $a)
{ {

View File

@@ -7,7 +7,7 @@ class BackupCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Saves a backups of current state of image core * Saves a backups of current state of image core
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class BlurCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Applies blur effect on image * Applies blur effect on image
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class BrightnessCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Changes image brightness * Changes image brightness
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class ColorizeCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Changes balance of different RGB color channels * Changes balance of different RGB color channels
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class ContrastCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Changes contrast of image * Changes contrast of image
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -10,7 +10,7 @@ class CropCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Crop an image instance * Crop an image instance
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class DestroyCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Destroys current image core and frees up memory * Destroys current image core and frees up memory
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -11,7 +11,7 @@ class FillCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Fills image with color or pattern * Fills image with color or pattern
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -9,7 +9,7 @@ class FitCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Crops and resized an image at the same time * Crops and resized an image at the same time
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class FlipCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Mirrors an image * Mirrors an image
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class GammaCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Applies gamma correction to a given image * Applies gamma correction to a given image
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -9,7 +9,7 @@ class GetSizeCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Reads size of given image instance in pixels * Reads size of given image instance in pixels
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class GreyscaleCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Turns an image into a greyscale version * Turns an image into a greyscale version
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class HeightenCommand extends ResizeCommand
/** /**
* Resize image proportionally to given height * Resize image proportionally to given height
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class InsertCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Insert another image into given image * Insert another image into given image
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class InterlaceCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Toggles interlaced encoding mode * Toggles interlaced encoding mode
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class InvertCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Inverts colors of an image * Inverts colors of an image
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class LimitColorsCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Reduces colors of a given image * Reduces colors of a given image
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class MaskCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Applies an alpha mask to an image * Applies an alpha mask to an image
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class OpacityCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Defines opacity of an image * Defines opacity of an image
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -9,7 +9,7 @@ class PickColorCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Read color information from a certain position * Read color information from a certain position
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -9,7 +9,7 @@ class PixelCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Draws one pixel to a given image * Draws one pixel to a given image
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class PixelateCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Applies a pixelation effect to a given image * Applies a pixelation effect to a given image
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class ResetCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Resets given image to its backup state * Resets given image to its backup state
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class ResizeCanvasCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Resizes image boundaries * Resizes image boundaries
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class ResizeCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Resizes image dimensions * Resizes image dimensions
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -9,7 +9,7 @@ class RotateCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Rotates image counter clockwise * Rotates image counter clockwise
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class SharpenCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Sharpen image * Sharpen image
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -9,7 +9,7 @@ class TrimCommand extends \Intervention\Image\Commands\AbstractCommand
/** /**
* Trims away parts of an image * Trims away parts of an image
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -7,7 +7,7 @@ class WidenCommand extends ResizeCommand
/** /**
* Resize image proportionally to given width * Resize image proportionally to given width
* *
* @param Intervention\Image\Image $image * @param \Intervention\Image\Image $image
* @return boolean * @return boolean
*/ */
public function execute($image) public function execute($image)

View File

@@ -11,7 +11,7 @@ class Decoder extends \Intervention\Image\AbstractDecoder
* Initiates new image from path in filesystem * Initiates new image from path in filesystem
* *
* @param string $path * @param string $path
* @return Intervention\Image\Image * @return \Intervention\Image\Image
*/ */
public function initFromPath($path) public function initFromPath($path)
{ {
@@ -39,7 +39,7 @@ class Decoder extends \Intervention\Image\AbstractDecoder
* Initiates new image from GD resource * Initiates new image from GD resource
* *
* @param Resource $resource * @param Resource $resource
* @return Intervention\Image\Image * @return \Intervention\Image\Image
*/ */
public function initFromGdResource($resource) public function initFromGdResource($resource)
{ {
@@ -52,7 +52,7 @@ class Decoder extends \Intervention\Image\AbstractDecoder
* Initiates new image from Imagick object * Initiates new image from Imagick object
* *
* @param Imagick $object * @param Imagick $object
* @return Intervention\Image\Image * @return \Intervention\Image\Image
*/ */
public function initFromImagick(\Imagick $object) public function initFromImagick(\Imagick $object)
{ {
@@ -70,7 +70,7 @@ class Decoder extends \Intervention\Image\AbstractDecoder
* Initiates new image from binary data * Initiates new image from binary data
* *
* @param string $data * @param string $data
* @return Intervention\Image\Image * @return \Intervention\Image\Image
*/ */
public function initFromBinary($binary) public function initFromBinary($binary)
{ {

View File

@@ -30,7 +30,7 @@ class Driver extends \Intervention\Image\AbstractDriver
* @param integer $width * @param integer $width
* @param integer $height * @param integer $height
* @param string $background * @param string $background
* @return Intervention\Image\Image * @return \Intervention\Image\Image
*/ */
public function newImage($width, $height, $background = null) public function newImage($width, $height, $background = null)
{ {

View File

@@ -206,7 +206,7 @@ class Size
* based on the pivot point settings of both sizes. * based on the pivot point settings of both sizes.
* *
* @param Size $size * @param Size $size
* @return Intervention\Image\Point * @return \Intervention\Image\Point
*/ */
public function relativePosition(Size $size) public function relativePosition(Size $size)
{ {
@@ -220,7 +220,7 @@ class Size
* Resize given Size to best fitting size of current size. * Resize given Size to best fitting size of current size.
* *
* @param Size $size * @param Size $size
* @return Intervention\Image\Size * @return \Intervention\Image\Size
*/ */
public function fit(Size $size) public function fit(Size $size)
{ {
@@ -273,7 +273,7 @@ class Size
* @param string $position * @param string $position
* @param integer $offset_x * @param integer $offset_x
* @param integer $offset_y * @param integer $offset_y
* @return Intervention\Image\Size * @return \Intervention\Image\Size
*/ */
public function align($position, $offset_x = 0, $offset_y = 0) public function align($position, $offset_x = 0, $offset_y = 0)
{ {
@@ -358,7 +358,7 @@ class Size
* Runs constraints on current size * Runs constraints on current size
* *
* @param Closure $callback * @param Closure $callback
* @return Intervention\Image\Constraint * @return \Intervention\Image\Constraint
*/ */
private function getConstraint(Closure $callback = null) private function getConstraint(Closure $callback = null)
{ {