Completed
Push — master ( e9fa87...c69996 )
by hook
02:18
created
src/Collection.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -47,14 +47,14 @@  discard block
 block discarded – undo
47 47
 
48 48
     public function offsetExists($offset)
49 49
     {
50
-        return isset($this->data[$offset]);
50
+        return isset($this->data[ $offset ]);
51 51
     }
52 52
 
53 53
 
54 54
     public function offsetGet($offset)
55 55
     {
56
-        if (isset($this->data[$offset])) {
57
-            return $this->getMarshaler()->unmarshalItem($this->data[$offset]);
56
+        if (isset($this->data[ $offset ])) {
57
+            return $this->getMarshaler()->unmarshalItem($this->data[ $offset ]);
58 58
         }
59 59
         return null;
60 60
     }
@@ -62,29 +62,29 @@  discard block
 block discarded – undo
62 62
 
63 63
     public function offsetSet($offset, $value)
64 64
     {
65
-        $this->data[$offset] = $value;
65
+        $this->data[ $offset ] = $value;
66 66
     }
67 67
 
68 68
 
69 69
     public function offsetUnset($offset)
70 70
     {
71
-        unset($this->data[$offset]);
71
+        unset($this->data[ $offset ]);
72 72
     }
73 73
 
74 74
     public function toArray()
75 75
     {
76
-        if (!isset($this->data["Items"]) || !$this->data["Items"]) {
76
+        if (!isset($this->data[ "Items" ]) || !$this->data[ "Items" ]) {
77 77
             return null;
78 78
         }
79 79
         if (!$this->many) {
80 80
             return $this->getMarshaler()->unmarshalItem(
81
-                reset($this->data["Items"])
81
+                reset($this->data[ "Items" ])
82 82
             );
83 83
         }
84 84
 
85
-        $result = [];
86
-        foreach ($this->data["Items"] as $item) {
87
-            $result[] = $this->getMarshaler()->unmarshalItem($item);
85
+        $result = [ ];
86
+        foreach ($this->data[ "Items" ] as $item) {
87
+            $result[ ] = $this->getMarshaler()->unmarshalItem($item);
88 88
         }
89 89
         return $result;
90 90
     }
Please login to merge, or discard this patch.