mirror of
https://github.com/Intervention/image.git
synced 2025-08-14 01:44:03 +02:00
Switch to short typehints
This commit is contained in:
@@ -51,7 +51,7 @@ class Collection implements CollectionInterface, IteratorAggregate, Countable
|
|||||||
/**
|
/**
|
||||||
* Count items in collection
|
* Count items in collection
|
||||||
*
|
*
|
||||||
* @return integer
|
* @return int
|
||||||
*/
|
*/
|
||||||
public function count(): int
|
public function count(): int
|
||||||
{
|
{
|
||||||
@@ -102,7 +102,7 @@ class Collection implements CollectionInterface, IteratorAggregate, Countable
|
|||||||
/**
|
/**
|
||||||
* Return item at given position starting at 0
|
* Return item at given position starting at 0
|
||||||
*
|
*
|
||||||
* @param integer $key
|
* @param int $key
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function getAtPosition(int $key = 0, $default = null): mixed
|
public function getAtPosition(int $key = 0, $default = null): mixed
|
||||||
|
@@ -24,7 +24,7 @@ class Point implements PointInterface
|
|||||||
/**
|
/**
|
||||||
* Sets X coordinate
|
* Sets X coordinate
|
||||||
*
|
*
|
||||||
* @param integer $x
|
* @param int $x
|
||||||
*/
|
*/
|
||||||
public function setX(int $x): self
|
public function setX(int $x): self
|
||||||
{
|
{
|
||||||
@@ -36,7 +36,7 @@ class Point implements PointInterface
|
|||||||
/**
|
/**
|
||||||
* Get X coordinate
|
* Get X coordinate
|
||||||
*
|
*
|
||||||
* @return integer
|
* @return int
|
||||||
*/
|
*/
|
||||||
public function x(): int
|
public function x(): int
|
||||||
{
|
{
|
||||||
@@ -46,7 +46,7 @@ class Point implements PointInterface
|
|||||||
/**
|
/**
|
||||||
* Sets Y coordinate
|
* Sets Y coordinate
|
||||||
*
|
*
|
||||||
* @param integer $y
|
* @param int $y
|
||||||
*/
|
*/
|
||||||
public function setY(int $y): self
|
public function setY(int $y): self
|
||||||
{
|
{
|
||||||
@@ -58,7 +58,7 @@ class Point implements PointInterface
|
|||||||
/**
|
/**
|
||||||
* Get Y coordinate
|
* Get Y coordinate
|
||||||
*
|
*
|
||||||
* @return integer
|
* @return int
|
||||||
*/
|
*/
|
||||||
public function y(): int
|
public function y(): int
|
||||||
{
|
{
|
||||||
@@ -68,7 +68,7 @@ class Point implements PointInterface
|
|||||||
/**
|
/**
|
||||||
* Move X coordinate
|
* Move X coordinate
|
||||||
*
|
*
|
||||||
* @param integer $value
|
* @param int $value
|
||||||
*/
|
*/
|
||||||
public function moveX(int $value): self
|
public function moveX(int $value): self
|
||||||
{
|
{
|
||||||
@@ -80,7 +80,7 @@ class Point implements PointInterface
|
|||||||
/**
|
/**
|
||||||
* Move Y coordinate
|
* Move Y coordinate
|
||||||
*
|
*
|
||||||
* @param integer $value
|
* @param int $value
|
||||||
*/
|
*/
|
||||||
public function moveY(int $value): self
|
public function moveY(int $value): self
|
||||||
{
|
{
|
||||||
@@ -97,8 +97,8 @@ class Point implements PointInterface
|
|||||||
/**
|
/**
|
||||||
* Sets both X and Y coordinate
|
* Sets both X and Y coordinate
|
||||||
*
|
*
|
||||||
* @param integer $x
|
* @param int $x
|
||||||
* @param integer $y
|
* @param int $y
|
||||||
* @return Point
|
* @return Point
|
||||||
*/
|
*/
|
||||||
public function setPosition(int $x, int $y): self
|
public function setPosition(int $x, int $y): self
|
||||||
|
Reference in New Issue
Block a user