Completed
Push — master ( a4e176...8c9478 )
by Adam
02:50
created
src/Format/Attribute.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 Attribute
18 18
      */
19 19
     public static function fromArray(array $array)
20 20
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
      */
28 28
     private static function fromArrayString()
29 29
     {
30
-        return function ($key, $value) {
30
+        return function($key, $value) {
31 31
             return is_null($value) ? $key : $key.'="'.$value.'"';
32 32
         };
33 33
     }
Please login to merge, or discard this patch.
src/Utility/Configuration.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 
34 34
     /**
35 35
      * @param  string $key
36
-     * @return mixed
36
+     * @return boolean
37 37
      */
38 38
     public static function get($key)
39 39
     {
Please login to merge, or discard this patch.
src/VOArray.php 1 patch
Unused Use Statements   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -2,14 +2,14 @@
 block discarded – undo
2 2
 
3 3
 namespace BestServedCold\PhalueObjects;
4 4
 
5
-use BestServedCold\PhalueObjects\Contract\Arrayable;
6
-use BestServedCold\PhalueObjects\Contract\Countable;
7
-use BestServedCold\PhalueObjects\VOArray\Find;
8
-use BestServedCold\PhalueObjects\VOArray\Key;
9
-use BestServedCold\PhalueObjects\VOArray\Iterator as IteratorTrait;
10
-use BestServedCold\PhalueObjects\VOArray\Mutate;
11
-use BestServedCold\PhalueObjects\VOArray\Pointer;
12
-use BestServedCold\PhalueObjects\VOArray\Metric;
5
+use BestServedCold\PhalueObjects\Contract\Arrayable;
6
+use BestServedCold\PhalueObjects\Contract\Countable;
7
+use BestServedCold\PhalueObjects\VOArray\Find;
8
+use BestServedCold\PhalueObjects\VOArray\Iterator as IteratorTrait;
9
+use BestServedCold\PhalueObjects\VOArray\Key;
10
+use BestServedCold\PhalueObjects\VOArray\Metric;
11
+use BestServedCold\PhalueObjects\VOArray\Mutate;
12
+use BestServedCold\PhalueObjects\VOArray\Pointer;
13 13
 use Iterator;
14 14
 
15 15
 /**
Please login to merge, or discard this patch.
src/VOArray/Map.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,9 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace BestServedCold\PhalueObjects\VOArray;
4 4
 
5
-use BestServedCold\PhalueObjects\Variadic;
6 5
 use BestServedCold\PhalueObjects\VOArray;
7
-use BestServedCold\PhalueObjects\VOClosure;
8 6
 
9 7
 /**
10 8
  * Class Map
Please login to merge, or discard this patch.
src/VOArray/Metric.php 2 patches
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace BestServedCold\PhalueObjects\VOArray;
4 4
 
5
-use BestServedCold\PhalueObjects\VOArray;
6
-use BestServedCold\PhalueObjects\Exception\InvalidTypeException;
7 5
 use BestServedCold\PhalueObjects\Contract\ValueObject;
6
+use BestServedCold\PhalueObjects\Exception\InvalidTypeException;
7
+use BestServedCold\PhalueObjects\VOArray;
8 8
 
9 9
 /**
10 10
  * Trait Metric
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      */
34 34
     public function equals(ValueObject $object)
35 35
     {
36
-        if (! $object instanceof VOArray) {
36
+        if (!$object instanceof VOArray) {
37 37
             throw new InvalidTypeException($object, [ VOArray::class ]);
38 38
         }
39 39
 
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/ExtendedArray/ExtendedArrayTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function arrayToPairString(array $array)
27 27
     {
28
-        return implode(',', array_map(function ($key, $value) {
28
+        return implode(',', array_map(function($key, $value) {
29 29
             return $key.'='.$value;
30 30
         }, array_keys($array), $array));
31 31
     }
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      */
37 37
     public function arrayToAttributeArray(array $array)
38 38
     {
39
-        return implode(' ', array_map(function ($key, $value) {
39
+        return implode(' ', array_map(function($key, $value) {
40 40
             return is_null($value) ? $key : $key.'="'.$value.'"';
41 41
         }, array_keys($array), $array));
42 42
     }
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/Format/Csv.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
      */
20 20
     public static function fromArray(array $array, $space = null)
21 21
     {
22
-        return new static(implode(',' . $space, $array));
22
+        return new static(implode(','.$space, $array));
23 23
     }
24 24
 
25 25
     /**
Please login to merge, or discard this patch.