Completed
Push — master ( cbc937...756244 )
by Scott
02:53
created
src/data_types/AbstractCollection.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 
8 8
     abstract protected function ends();
9 9
 
10
-    public function __construct(array $elements=[])
10
+    public function __construct(array $elements = [])
11 11
     {
12 12
         $this->collection = $elements;
13 13
     }
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
             ? $this->collection[$key] : null;
19 19
     }
20 20
 
21
-    public function set($value, $key=null)
21
+    public function set($value, $key = null)
22 22
     {
23 23
         if (null !== $key) {
24 24
             $this->collection[$key] = $value;
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
             $separator = $first ? '' : ', ';
58 58
             $first = false;
59 59
             $string .=
60
-                $separator.
61
-                (is_string($key) ? $key. ' ' : '').
60
+                $separator .
61
+                (is_string($key) ? $key . ' ' : '') .
62 62
                 (method_exists('__toString', $val) ? $val->__toString() : $val);
63 63
         }
64 64
         return $this->ends()[0] . $string . $this->ends()[1];
Please login to merge, or discard this patch.