Completed
Push — master ( 50437b...6d2b5a )
by Adam
02:31
created
src/Format/Byte.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,8 +8,8 @@
 block discarded – undo
8 8
 use BestServedCold\PhalueObjects\VOClosure\Value;
9 9
 use BestServedCold\PhalueObjects\VOFloat;
10 10
 use BestServedCold\PhalueObjects\VOString;
11
-use BestServedCold\PhalueObjects\VOString\Word;
12 11
 use BestServedCold\PhalueObjects\VOString\Mixin as VOStringTrait;
12
+use BestServedCold\PhalueObjects\VOString\Word;
13 13
 
14 14
 /**
15 15
  * Class Byte
Please login to merge, or discard this patch.
src/Format/Csv.php 2 patches
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\Format;
4 4
 
5 5
 use BestServedCold\PhalueObjects\Contract\VOArrayable;
6
-use BestServedCold\PhalueObjects\VOString;
7 6
 use BestServedCold\PhalueObjects\VOArray\Mixin as VOArrayMixin;
7
+use BestServedCold\PhalueObjects\VOString;
8 8
 
9 9
 /**
10 10
  * Class Csv
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      */
23 23
     public static function fromArray(array $array, $space = null)
24 24
     {
25
-        return new static(implode(',' . $space, $array));
25
+        return new static(implode(','.$space, $array));
26 26
     }
27 27
 
28 28
     private static function fromMultiArray(array $array, $space = null)
Please login to merge, or discard this patch.
src/Format/Xml.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace BestServedCold\PhalueObjects\Format;
4 4
 
5
-use BestServedCold\PhalueObjects\Contract\VOArrayable;
6
-use BestServedCold\PhalueObjects\VOString;
7
-use BestServedCold\PhalueObjects\VOArray\Mixin as VOArrayMixin;
5
+use BestServedCold\PhalueObjects\Contract\VOArrayable;
6
+use BestServedCold\PhalueObjects\VOArray\Mixin as VOArrayMixin;
7
+use BestServedCold\PhalueObjects\VOString;
8 8
 use Sabre\Xml\Service;
9 9
 
10 10
 /**
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\Diffable;
7
-use BestServedCold\PhalueObjects\Contract\ValueObject as ValueObjectInterface;
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;
5
+use BestServedCold\PhalueObjects\Contract\Arrayable;
6
+use BestServedCold\PhalueObjects\Contract\Diffable;
7
+use BestServedCold\PhalueObjects\Contract\ValueObject as ValueObjectInterface;
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/VOClosure/ArrayDepth.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,10 +14,10 @@
 block discarded – undo
14 14
     public static function toDepth()
15 15
     {
16 16
         return new static(
17
-            function (&$max) {
18
-                return function ($line) use (&$max) {
17
+            function(&$max) {
18
+                return function($line) use (&$max) {
19 19
                     // every line-indent equals 4 spaces
20
-                    $max = max([$max, (strlen($line) - strlen(ltrim($line))) / 4]);
20
+                    $max = max([ $max, (strlen($line) - strlen(ltrim($line))) / 4 ]);
21 21
                 };
22 22
             }
23 23
         );
Please login to merge, or discard this patch.
src/VOClosure/KeyValue.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     public static function fromVars($prefix = null, $glue = null, $suffix = null)
22 22
     {
23 23
         return new static(
24
-            function ($key, $value) use ($prefix, $glue, $suffix) {
24
+            function($key, $value) use ($prefix, $glue, $suffix) {
25 25
                 return $prefix.$key.$glue.$value.$suffix;
26 26
             }
27 27
         );
Please login to merge, or discard this patch.
src/VOClosure/Value.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 toArrayWithPlural($pluralValue = false, $pluralKey = false)
21 21
     {
22 22
         return new static(
23
-            function ($value) use ($pluralValue, $pluralKey) {
23
+            function($value) use ($pluralValue, $pluralKey) {
24 24
                 return array_filter([
25 25
                     key($value),
26 26
                     reset($value),
Please login to merge, or discard this patch.
src/VOArray/Metric.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,10 +38,10 @@
 block discarded – undo
38 38
     public function getDepth()
39 39
     {
40 40
         $max = 0;
41
-        $depth = function (&$max) {
41
+        $depth = function(&$max) {
42 42
             return function($line) use (&$max) {
43 43
                 // every line-indent equals 4 spaces
44
-                $max = max([$max, (strlen($line) - strlen(ltrim($line))) / 4]);
44
+                $max = max([ $max, (strlen($line) - strlen(ltrim($line))) / 4 ]);
45 45
             };
46 46
         };
47 47
 
Please login to merge, or discard this patch.
src/VOString/Word.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@
 block discarded – undo
22 22
     {
23 23
         parent::__construct($value);
24 24
 
25
-        if (! preg_match('/[A-za-z]/', $this->getValue())) {
26
-            throw new InvalidTypeException($value, ['word']);
25
+        if (!preg_match('/[A-za-z]/', $this->getValue())) {
26
+            throw new InvalidTypeException($value, [ 'word' ]);
27 27
         }
28 28
     }
29 29
 
Please login to merge, or discard this patch.