Upgrade to 3.3.0

This commit is contained in:
Bastian Allgeier
2019-11-05 09:35:58 +01:00
parent 447a9dd266
commit a431716732
186 changed files with 3068 additions and 1458 deletions

View File

@@ -65,9 +65,9 @@ class Dimensions
/**
* Crops the dimensions by width and height
*
* @param int $width
* @param int $height
* @return self
* @param int $width
* @param int $height
* @return self
*/
public function crop(int $width, int $height = null)
{
@@ -107,9 +107,9 @@ class Dimensions
*
* </code>
*
* @param int $box the max width and/or height
* @param bool $force If true, the dimensions will be
* upscaled to fit the box if smaller
* @param int $box the max width and/or height
* @param bool $force If true, the dimensions will be
* upscaled to fit the box if smaller
* @return self object with recalculated dimensions
*/
public function fit(int $box, bool $force = false)
@@ -159,10 +159,10 @@ class Dimensions
*
* </code>
*
* @param int $fit the max height
* @param bool $force If true, the dimensions will be
* upscaled to fit the box if smaller
* @return self object with recalculated dimensions
* @param int $fit the max height
* @param bool $force If true, the dimensions will be
* upscaled to fit the box if smaller
* @return self object with recalculated dimensions
*/
public function fitHeight(int $fit = null, bool $force = false)
{
@@ -172,11 +172,11 @@ class Dimensions
/**
* Helper for fitWidth and fitHeight methods
*
* @param string $ref reference (width or height)
* @param int $fit the max width
* @param bool $force If true, the dimensions will be
* upscaled to fit the box if smaller
* @return self object with recalculated dimensions
* @param string $ref reference (width or height)
* @param int $fit the max width
* @param bool $force If true, the dimensions will be
* upscaled to fit the box if smaller
* @return self object with recalculated dimensions
*/
protected function fitSize(string $ref, int $fit = null, bool $force = false)
{
@@ -212,10 +212,10 @@ class Dimensions
*
* </code>
*
* @param int $fit the max width
* @param bool $force If true, the dimensions will be
* upscaled to fit the box if smaller
* @return self object with recalculated dimensions
* @param int $fit the max width
* @param bool $force If true, the dimensions will be
* upscaled to fit the box if smaller
* @return self object with recalculated dimensions
*/
public function fitWidth(int $fit = null, bool $force = false)
{
@@ -225,10 +225,10 @@ class Dimensions
/**
* Recalculates the dimensions by the width and height
*
* @param int $width the max height
* @param int $height the max width
* @param bool $force
* @return self
* @param int $width the max height
* @param int $height the max width
* @param bool $force
* @return self
*/
public function fitWidthAndHeight(int $width = null, int $height = null, bool $force = false)
{
@@ -362,10 +362,10 @@ class Dimensions
}
/**
* @param int $width
* @param int $height
* @param bool $force
* @return self
* @param int $width
* @param int $height
* @param bool $force
* @return self
*/
public function resize(int $width = null, int $height = null, bool $force = false)
{
@@ -385,7 +385,7 @@ class Dimensions
/**
* Resize and crop
*
* @param array $options
* @param array $options
* @return self
*/
public function thumb(array $options = [])

View File

@@ -173,7 +173,7 @@ class Exif
/**
* Checks if this is a color picture
*
* @return boolean|null
* @return bool|null
*/
public function isColor()
{
@@ -183,7 +183,7 @@ class Exif
/**
* Checks if this is a bw picture
*
* @return boolean|null
* @return bool|null
*/
public function isBW(): bool
{

View File

@@ -42,8 +42,8 @@ class Image extends File
/**
* Constructor
*
* @param string $root
* @param string|null $url
* @param string $root
* @param string|null $url
*/
public function __construct(string $root = null, string $url = null)
{
@@ -126,7 +126,7 @@ class Image extends File
/**
* Sends an appropriate header for the asset
*
* @param boolean $send
* @param bool $send
* @return \Kirby\Http\Response|string
*/
public function header(bool $send = true)
@@ -147,7 +147,7 @@ class Image extends File
}
/**
* @param array $attr
* @param array $attr
* @return string
*/
public function html(array $attr = []): string
@@ -168,7 +168,7 @@ class Image extends File
/**
* Checks if the dimensions of the asset are portrait
*
* @return boolean
* @return bool
*/
public function isPortrait(): bool
{
@@ -178,7 +178,7 @@ class Image extends File
/**
* Checks if the dimensions of the asset are landscape
*
* @return boolean
* @return bool
*/
public function isLandscape(): bool
{
@@ -188,7 +188,7 @@ class Image extends File
/**
* Checks if the dimensions of the asset are square
*
* @return boolean
* @return bool
*/
public function isSquare(): bool
{

View File

@@ -68,8 +68,8 @@ class Location
/**
* Converts the gps coordinates
*
* @param string|array $coord
* @param string $hemi
* @param string|array $coord
* @param string $hemi
* @return float
*/
protected function gps($coord, string $hemi): float
@@ -87,7 +87,7 @@ class Location
/**
* Converts coordinates to floats
*
* @param string $part
* @param string $part
* @return float
*/
protected function num(string $part): float