@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | /** |
| 37 | - * @param $resource |
|
| 37 | + * @param resource $resource |
|
| 38 | 38 | * @param array $options |
| 39 | 39 | * @return static |
| 40 | 40 | */ |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | - * @param array $options |
|
| 47 | + * @param string[] $options |
|
| 48 | 48 | * @return static |
| 49 | 49 | */ |
| 50 | 50 | public static function auto(array $options = []) |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | /** |
| 18 | 18 | * @var array $options |
| 19 | 19 | */ |
| 20 | - protected static $options = []; |
|
| 20 | + protected static $options = [ ]; |
|
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | 23 | * Curl constructor. |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | */ |
| 27 | 27 | public function __construct($value) |
| 28 | 28 | { |
| 29 | - if (! is_resource($value) || get_resource_type($value) !== 'curl') { |
|
| 29 | + if (!is_resource($value) || get_resource_type($value) !== 'curl') { |
|
| 30 | 30 | throw new InvalidTypeException($value, [ 'curl resource' ]); |
| 31 | 31 | } |
| 32 | 32 | |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | * @param array $options |
| 39 | 39 | * @return static |
| 40 | 40 | */ |
| 41 | - public static function fromOptions($resource, array $options = []) |
|
| 41 | + public static function fromOptions($resource, array $options = [ ]) |
|
| 42 | 42 | { |
| 43 | 43 | return new static(self::setOptions($resource, self::$options + $options)); |
| 44 | 44 | } |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | * @param array $options |
| 48 | 48 | * @return static |
| 49 | 49 | */ |
| 50 | - public static function auto(array $options = []) |
|
| 50 | + public static function auto(array $options = [ ]) |
|
| 51 | 51 | { |
| 52 | 52 | return self::fromOptions(curl_init(), $options); |
| 53 | 53 | } |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | */ |
| 27 | 27 | public static function fromPath($path) |
| 28 | 28 | {
|
| 29 | - if (! is_string($path)) {
|
|
| 29 | + if (!is_string($path)) {
|
|
| 30 | 30 | throw new InvalidTypeException($path, [ 'path' ]); |
| 31 | 31 | } |
| 32 | 32 | |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | */ |
| 23 | 23 | public function __construct($value) |
| 24 | 24 | { |
| 25 | - if (!is_float($value) && ! is_int($value)) { |
|
| 25 | + if (!is_float($value) && !is_int($value)) { |
|
| 26 | 26 | throw new InvalidTypeException($value, [ 'float' ]); |
| 27 | 27 | } |
| 28 | 28 | |
@@ -3,8 +3,6 @@ |
||
| 3 | 3 | namespace BestServedCold\PhalueObjects\VOArray; |
| 4 | 4 | |
| 5 | 5 | use BestServedCold\PhalueObjects\VOArray; |
| 6 | -use BestServedCold\PhalueObjects\Exception\InvalidTypeException; |
|
| 7 | -use BestServedCold\PhalueObjects\Contract\ValueObject; |
|
| 8 | 6 | |
| 9 | 7 | /** |
| 10 | 8 | * Trait Metric |