Completed
Push — master ( c64181...1843e0 )
by Adam
13:40
created
src/DateTime/DateTimeTrait.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace BestServedCold\PhalueObjects\DateTime;
4 4
 
5
+use BestServedCold\PhalueObjects\Contract\DateTime as DateTimeInterface;
5 6
 use BestServedCold\PhalueObjects\Mathematical\Operator\ArithmeticTrait;
6 7
 use BestServedCold\PhalueObjects\Mathematical\Operator\ComparisonTrait;
7 8
 use BestServedCold\PhalueObjects\Mathematical\Operator\TypeTrait;
8
-use BestServedCold\PhalueObjects\Contract\DateTime as DateTimeInterface;
9 9
 
10 10
 /**
11 11
  * Class DateTimeTrait
Please login to merge, or discard this patch.
src/DateTime/Time.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@
 block discarded – undo
2 2
 
3 3
 namespace BestServedCold\PhalueObjects\DateTime;
4 4
 
5
+use BestServedCold\PhalueObjects\Contract\DateTime as DateTimeInterface;
5 6
 use BestServedCold\PhalueObjects\DateTime\Unit\Hour;
6 7
 use BestServedCold\PhalueObjects\DateTime\Unit\Minute;
7 8
 use BestServedCold\PhalueObjects\DateTime\Unit\Second;
8 9
 use BestServedCold\PhalueObjects\Variadic;
9
-use BestServedCold\PhalueObjects\Contract\DateTime as DateTimeInterface;
10 10
 
11 11
 /**
12 12
  * Class Time
Please login to merge, or discard this patch.
src/File.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php namespace BestServedCold\PhalueObjects;
2 2
 
3
-use BestServedCold\PhalueObjects\Format\Json;
4
-use BestServedCold\PhalueObjects\Format\Xml;
3
+use BestServedCold\PhalueObjects\Format\Json;
4
+use BestServedCold\PhalueObjects\Format\Xml;
5 5
 use BestServedCold\PhalueObjects\Format\Yaml;
6 6
 
7 7
 /**
Please login to merge, or discard this patch.
src/VOArray/Key.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      */
15 15
     public function getKey($key)
16 16
     {
17
-        return $this->keyExists($key) ? $this->getValue()[$key] : false;
17
+        return $this->keyExists($key) ? $this->getValue()[ $key ] : false;
18 18
     }
19 19
 
20 20
     /**
Please login to merge, or discard this patch.
src/VOString.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@
 block discarded – undo
26 26
      */
27 27
     public function __construct($value)
28 28
     {
29
-        if (! is_string($value)) {
30
-            throw new InvalidTypeException($value, ['string']);
29
+        if (!is_string($value)) {
30
+            throw new InvalidTypeException($value, [ 'string' ]);
31 31
         }
32 32
 
33 33
         parent::__construct($value);
Please login to merge, or discard this patch.
src/VONull.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@
 block discarded – undo
24 24
      */
25 25
     public function __construct($value)
26 26
     {
27
-        if (! is_null($value)) {
28
-            throw new InvalidTypeException($value, ['object']);
27
+        if (!is_null($value)) {
28
+            throw new InvalidTypeException($value, [ 'object' ]);
29 29
         }
30 30
 
31 31
         parent::__construct($value);
Please login to merge, or discard this patch.
src/Contract/AutoDependency.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 {
12 12
     /**
13 13
      * @param  $options
14
-     * @return mixed
14
+     * @return \BestServedCold\PhalueObjects\Request\Curl
15 15
      */
16 16
     public static function auto(array $options = []);
17 17
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,5 +13,5 @@
 block discarded – undo
13 13
      * @param  $options
14 14
      * @return mixed
15 15
      */
16
-    public static function auto(array $options = []);
16
+    public static function auto(array $options = [ ]);
17 17
 }
Please login to merge, or discard this patch.
src/File/Url.php 2 patches
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php namespace BestServedCold\PhalueObjects\File;
2 2
 
3
-use BestServedCold\PhalueObjects\Exception\InvalidTypeException;
4
-use BestServedCold\PhalueObjects\File;
3
+use BestServedCold\PhalueObjects\Exception\InvalidTypeException;
4
+use BestServedCold\PhalueObjects\File;
5 5
 use BestServedCold\PhalueObjects\Request\Curl\Url as CurlUrl;
6 6
 
7 7
 /**
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,10 +26,10 @@
 block discarded – undo
26 26
      */
27 27
     public static function fromUrl($url)
28 28
     {
29
-        if (! filter_var($url, FILTER_VALIDATE_URL)) {
29
+        if (!filter_var($url, FILTER_VALIDATE_URL)) {
30 30
             throw new InvalidTypeException($url, [ 'url' ]);
31 31
         }
32 32
 
33
-        return static::fromCurlUrl(CurlUrl::auto([CURLOPT_URL => $url]));
33
+        return static::fromCurlUrl(CurlUrl::auto([ CURLOPT_URL => $url ]));
34 34
     }
35 35
 }
Please login to merge, or discard this patch.
src/Request/Curl.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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 = [])
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.