Completed
Push — master ( d328e7...8a058c )
by Adam
06:50 queued 04:21
created
src/ValueObject.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
                 return null;
139 139
             case 'unknown type':
140 140
             default:
141
-                throw new InvalidArgumentException('Cannot diff type [' . $this->type . '].');
141
+                throw new InvalidArgumentException('Cannot diff type ['.$this->type.'].');
142 142
         }
143 143
     }
144 144
 
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
                 return strlen($this->getValue());
160 160
             case 'unknown type':
161 161
             default:
162
-                throw new InvalidArgumentException('Cannot count type [' . $this->type . '].');
162
+                throw new InvalidArgumentException('Cannot count type ['.$this->type.'].');
163 163
         }
164 164
     }
165 165
 }
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/VOArray/Metric.php 1 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/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.
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/File/Local.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/File/Url.php 1 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 1 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.