Completed
Push — master ( 0f7d17...393ba8 )
by Adam
02:40
created
src/VOArray/Map/Attribute.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
3 3
 namespace BestServedCold\PhalueObjects\VOArray\Map;
4 4
 
5 5
 use BestServedCold\PhalueObjects\VOArray;
6
-use BestServedCold\PhalueObjects\VOClosure\KeyValue;
7 6
 use BestServedCold\PhalueObjects\VOArray\Map;
7
+use BestServedCold\PhalueObjects\VOClosure\KeyValue;
8 8
 
9 9
 /**
10 10
  * Class Attribute
Please login to merge, or discard this patch.
src/VOString/Attribute.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 {
16 16
     /**
17 17
      * @param  array  $array
18
-     * @return string
18
+     * @return Attribute
19 19
      */
20 20
     public static function fromArray(array $array)
21 21
     {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,9 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace BestServedCold\PhalueObjects\VOString;
4 4
 
5
-use BestServedCold\PhalueObjects\VOString;
6
-
7 5
 use BestServedCold\PhalueObjects\VOArray\Map\Attribute as VOArrayAttribute;
6
+use BestServedCold\PhalueObjects\VOString;
8 7
 
9 8
 /**
10 9
  * Class Attribute
Please login to merge, or discard this patch.
src/VOString/Pair.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 {
15 15
     /**
16 16
      * @param array $array
17
-     * @return string
17
+     * @return Pair
18 18
      */
19 19
     public static function fromArray(array $array)
20 20
     {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace BestServedCold\PhalueObjects\VOString;
4 4
 
5
-use BestServedCold\PhalueObjects\VOString;
6 5
 use BestServedCold\PhalueObjects\VOArray\Map\Pair as VOArrayPair;
6
+use BestServedCold\PhalueObjects\VOString;
7 7
 
8 8
 /**
9 9
  * Class Pair
Please login to merge, or discard this patch.
src/VOArray/Map.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     public static function fromVariadic(VOClosure $value, array ...$array)
21 21
     {
22 22
         return new static(
23
-            call_user_func_array('array_map', array_merge([$value->getValue()], $array))
23
+            call_user_func_array('array_map', array_merge([ $value->getValue() ], $array))
24 24
         );
25 25
     }
26 26
 }
Please login to merge, or discard this patch.
src/VOClosure/KeyValue.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,8 @@
 block discarded – undo
20 20
     public static function fromVars($prefix = null, $glue = null, $suffix = null)
21 21
     {
22 22
         return new static(
23
-            function ($key, $value) use ($prefix, $glue, $suffix) {
24
-                return $prefix . $key . $glue . $value . $suffix;
23
+            function($key, $value) use ($prefix, $glue, $suffix) {
24
+                return $prefix.$key.$glue.$value.$suffix;
25 25
             }
26 26
         );
27 27
     }
Please login to merge, or discard this patch.
src/VOObject.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@
 block discarded – undo
23 23
      */
24 24
     public function __construct($value)
25 25
     {
26
-        if (! is_object($value)) {
27
-            throw new InvalidTypeException($value, ['object']);
26
+        if (!is_object($value)) {
27
+            throw new InvalidTypeException($value, [ 'object' ]);
28 28
         }
29 29
 
30 30
         $this->reflection = new \ReflectionClass($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.