GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — master (#8)
by Sho
07:59
created
src/Entity/Address.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace ShippoClient\Entity;
4 4
 
5
-use TurmericSpice\Container;
6 5
 use TurmericSpice\ReadableAttributes;
7 6
 
8 7
 class Address extends ObjectInformation
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         mayHaveAsArray  as public getMessages;
25 25
     }
26 26
 
27
-    public function getIsResidential()
27
+    public function getIsResidential ()
28 28
     {
29 29
         $is_residential = $this->attributes->mayHave('is_residential')->value();
30 30
         if ($is_residential === null) {
Please login to merge, or discard this patch.
src/Entity/Rate.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace ShippoClient\Entity;
4 4
 
5
-use TurmericSpice\Container;
6 5
 use TurmericSpice\ReadableAttributes;
7 6
 
8 7
 /**
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      *
49 49
      * @return mixed|null
50 50
      */
51
-    public function getAvailableShippo()
51
+    public function getAvailableShippo ()
52 52
     {
53 53
         return $this->attributes->mayHave('available_shippo')->value();
54 54
     }
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      *
59 59
      * @return mixed|null
60 60
      */
61
-    public function getOutboundEndpoint()
61
+    public function getOutboundEndpoint ()
62 62
     {
63 63
         return $this->attributes->mayHave('outbound_endpoint')->value();
64 64
     }
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      *
69 69
      * @return mixed|null
70 70
      */
71
-    public function getInboundEndpoint()
71
+    public function getInboundEndpoint ()
72 72
     {
73 73
         return $this->attributes->mayHave('inbound_endpoint')->value();
74 74
     }
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      *
79 79
      * @return mixed|null
80 80
      */
81
-    public function getArrivesBy()
81
+    public function getArrivesBy ()
82 82
     {
83 83
         return $this->attributes->mayHave('arrives_by')->value();
84 84
     }
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      *
89 89
      * @return mixed|null
90 90
      */
91
-    public function getDeliveryAttempts()
91
+    public function getDeliveryAttempts ()
92 92
     {
93 93
         return $this->attributes->mayHave('delivery_attempts')->value();
94 94
     }
Please login to merge, or discard this patch.
src/Entity/Refund.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace ShippoClient\Entity;
4 4
 
5
-use TurmericSpice\Container;
6 5
 use TurmericSpice\ReadableAttributes;
7 6
 
8 7
 class Refund extends ObjectInformation
Please login to merge, or discard this 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
      * @return string
21 21
      */
22
-    public function getObjectStatus()
22
+    public function getObjectStatus ()
23 23
     {
24 24
         return $this->attributes->mayHave('object_status')->asString();
25 25
     }
Please login to merge, or discard this patch.
src/Entity/Transaction.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace ShippoClient\Entity;
4 4
 
5
-use TurmericSpice\Container;
6 5
 use TurmericSpice\ReadableAttributes;
7 6
 
8 7
 class Transaction extends ObjectInformation
Please login to merge, or discard this patch.
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      *
30 30
      * @return string
31 31
      */
32
-    public function getObjectStatus()
32
+    public function getObjectStatus ()
33 33
     {
34 34
         return $this->attributes->mayHave('object_status')->asString();
35 35
     }
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      *
40 40
      * @return bool
41 41
      */
42
-    public function getWasTest()
42
+    public function getWasTest ()
43 43
     {
44 44
         return $this->attributes->mayHave('was_test')->asBoolean();
45 45
     }
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      *
50 50
      * @return string
51 51
      */
52
-    public function getRate()
52
+    public function getRate ()
53 53
     {
54 54
         return $this->attributes->mayHave('rate')->asString();
55 55
     }
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     /**
58 58
      * @return mixed|null
59 59
      */
60
-    public function getPickupDate()
60
+    public function getPickupDate ()
61 61
     {
62 62
         return $this->attributes->mayHave('pickup_date')->value();
63 63
     }
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      *
69 69
      * @return string
70 70
      */
71
-    public function getTrackingNumber()
71
+    public function getTrackingNumber ()
72 72
     {
73 73
         return $this->attributes->mayHave('tracking_number')->asString();
74 74
     }
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      *
79 79
      * @return TrackingStatus
80 80
      */
81
-    public function getTrackingStatus()
81
+    public function getTrackingStatus ()
82 82
     {
83 83
         return new TrackingStatus($this->attributes->mayHave('tracking_status')->asArray());
84 84
     }
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     /**
87 87
      * @return TrackingHistory
88 88
      */
89
-    public function getTrackingHistory()
89
+    public function getTrackingHistory ()
90 90
     {
91 91
         $entities = $this->attributes->mayHave('tracking_history')
92 92
             ->asInstanceArray('ShippoClient\\Entity\\TrackingStatus');
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      *
101 101
      * @return string
102 102
      */
103
-    public function getTrackingUrlProvider()
103
+    public function getTrackingUrlProvider ()
104 104
     {
105 105
         return $this->attributes->mayHave('tracking_url_provider')->asString();
106 106
     }
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      *
112 112
      * @return string
113 113
      */
114
-    public function getLabelUrl()
114
+    public function getLabelUrl ()
115 115
     {
116 116
         return $this->attributes->mayHave('label_url')->asString();
117 117
     }
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      *
123 123
      * @return string
124 124
      */
125
-    public function getCommercialInvoiceUrl()
125
+    public function getCommercialInvoiceUrl ()
126 126
     {
127 127
         return $this->attributes->mayHave('commercial_invoice_url')->asString();
128 128
     }
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      *
135 135
      * @return array
136 136
      */
137
-    public function getMessages()
137
+    public function getMessages ()
138 138
     {
139 139
         return $this->attributes->mayHave('messages')->asArray();
140 140
     }
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
     /**
143 143
      * @return mixed|null
144 144
      */
145
-    public function getOrder()
145
+    public function getOrder ()
146 146
     {
147 147
         return $this->attributes->mayHave('order')->value();
148 148
     }
@@ -150,12 +150,12 @@  discard block
 block discarded – undo
150 150
     /**
151 151
      * @return string
152 152
      */
153
-    public function getMetadata()
153
+    public function getMetadata ()
154 154
     {
155 155
         return $this->attributes->mayHave('metadata')->asString();
156 156
     }
157 157
 
158
-    public function toArray()
158
+    public function toArray ()
159 159
     {
160 160
         $array = $this->__toArray();
161 161
         $array['tracking_status'] = $this->getTrackingStatus()->toArray();
Please login to merge, or discard this patch.
src/Http/Request/Addresses/CreateObject.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace ShippoClient\Http\Request\Addresses;
4 4
 
5 5
 use ShippoClient\Http\Request\CommonParameter;
6
-use TurmericSpice\Container;
7 6
 use TurmericSpice\Container\InvalidAttributeException;
8 7
 use TurmericSpice\ReadWriteAttributes;
9 8
 
Please login to merge, or discard this patch.
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      * @return string
33 33
      * @throws InvalidAttributeException
34 34
      */
35
-    public function getObjectPurpose()
35
+    public function getObjectPurpose ()
36 36
     {
37 37
         $allowed = [static::OBJECT_PURPOSE_QUOTE, static::OBJECT_PURPOSE_PURCHASE];
38 38
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      * @return string
50 50
      * @throws InvalidAttributeException
51 51
      */
52
-    public function getName()
52
+    public function getName ()
53 53
     {
54 54
         if ($this->getObjectPurpose() === static::OBJECT_PURPOSE_PURCHASE) {
55 55
             return $this->attributes->mustHave('name')->asString();
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      *
65 65
      * @return string
66 66
      */
67
-    public function getCompany()
67
+    public function getCompany ()
68 68
     {
69 69
         return $this->attributes->mayHave('company')->asString();
70 70
     }
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      * @return string
79 79
      * @throws InvalidAttributeException
80 80
      */
81
-    public function getStreet1()
81
+    public function getStreet1 ()
82 82
     {
83 83
         if ($this->getObjectPurpose() === static::OBJECT_PURPOSE_PURCHASE) {
84 84
             return $this->attributes->mustHave('street1')->asString();
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      *
95 95
      * @return string
96 96
      */
97
-    public function getStreetNo()
97
+    public function getStreetNo ()
98 98
     {
99 99
         return $this->attributes->mayHave('street_no')->asString();
100 100
     }
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
      *
107 107
      * @return string
108 108
      */
109
-    public function getStreet2()
109
+    public function getStreet2 ()
110 110
     {
111 111
         return $this->attributes->mayHave('street2')->asString();
112 112
     }
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      * @return string
122 122
      * @throws InvalidAttributeException
123 123
      */
124
-    public function getCity()
124
+    public function getCity ()
125 125
     {
126 126
         if ($this->getObjectPurpose() === static::OBJECT_PURPOSE_PURCHASE) {
127 127
             return $this->attributes->mustHave('city')->asString();
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      * @return string
139 139
      * @throws InvalidAttributeException
140 140
      */
141
-    public function getZip()
141
+    public function getZip ()
142 142
     {
143 143
         if ($this->getObjectPurpose() === static::OBJECT_PURPOSE_PURCHASE) {
144 144
             return $this->attributes->mustHave('zip')->asString();
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
      * @return string
157 157
      * @throws InvalidAttributeException
158 158
      */
159
-    public function getState()
159
+    public function getState ()
160 160
     {
161 161
         if (in_array($this->getCountry(), ['US', 'CA'], true)) {
162 162
             return $this->attributes->mustHave('state')->asString();
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
      * @return string
175 175
      * @throws InvalidAttributeException
176 176
      */
177
-    public function getCountry()
177
+    public function getCountry ()
178 178
     {
179 179
         return $this->attributes->mustHave('country')->asString(function ($country) {
180 180
             return (bool)preg_match('/^[A-Z]{2}$/', $country);
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
      * @return string
191 191
      * @throws InvalidAttributeException
192 192
      */
193
-    public function getPhone()
193
+    public function getPhone ()
194 194
     {
195 195
         return $this->attributes->mayHave('phone')->asString();
196 196
     }
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
      * @return string
204 204
      * @throws InvalidAttributeException
205 205
      */
206
-    public function getEmail()
206
+    public function getEmail ()
207 207
     {
208 208
         $validation = function ($email) {
209 209
             return filter_var($email, FILTER_VALIDATE_EMAIL);
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
      *
222 222
      * @return null|bool
223 223
      */
224
-    public function getIsResidential()
224
+    public function getIsResidential ()
225 225
     {
226 226
         $is_residential = $this->attributes->mayHave('is_residential')->value();
227 227
         if ($is_residential === null) {
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
         return (bool)$is_residential;
232 232
     }
233 233
 
234
-    public function toArray()
234
+    public function toArray ()
235 235
     {
236 236
         return array_filter($this->__toArray());
237 237
     }
Please login to merge, or discard this patch.
src/Http/Request/Parcels/CreateObject.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace ShippoClient\Http\Request\Parcels;
4 4
 
5 5
 use ShippoClient\Http\Request\CommonParameter;
6
-use TurmericSpice\Container;
7 6
 use TurmericSpice\Container\InvalidAttributeException;
8 7
 use TurmericSpice\ReadWriteAttributes;
9 8
 
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      * @return int
30 30
      * @throws InvalidAttributeException
31 31
      */
32
-    public function getLength()
32
+    public function getLength ()
33 33
     {
34 34
         return $this->attributes->mustHave('length')->asInteger();
35 35
     }
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * @return int
46 46
      * @throws InvalidAttributeException
47 47
      */
48
-    public function getWidth()
48
+    public function getWidth ()
49 49
     {
50 50
         return $this->attributes->mustHave('width')->asInteger();
51 51
     }
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      * @return int
62 62
      * @throws InvalidAttributeException
63 63
      */
64
-    public function getHeight()
64
+    public function getHeight ()
65 65
     {
66 66
         return $this->attributes->mustHave('height')->asInteger();
67 67
     }
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      * @return string
75 75
      * @throws InvalidAttributeException
76 76
      */
77
-    public function getDistanceUnit()
77
+    public function getDistanceUnit ()
78 78
     {
79 79
         return $this->attributes->mustHave('distance_unit')->asString(function ($distanceUnit) {
80 80
             return in_array($distanceUnit, ['cm', 'in', 'ft', 'mm', 'm', 'yd'], true);
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      * @return int
90 90
      * @throws InvalidAttributeException
91 91
      */
92
-    public function getWeight()
92
+    public function getWeight ()
93 93
     {
94 94
         return $this->attributes->mustHave('weight')->asInteger();
95 95
     }
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      * @return string
103 103
      * @throws InvalidAttributeException
104 104
      */
105
-    public function getMassUnit()
105
+    public function getMassUnit ()
106 106
     {
107 107
         return $this->attributes->mustHave('mass_unit')->asString(function ($massUnit) {
108 108
             return in_array($massUnit, ['g', 'oz', 'lb', 'kg'], true);
@@ -119,12 +119,12 @@  discard block
 block discarded – undo
119 119
      *
120 120
      * @return string
121 121
      */
122
-    public function getTemplate()
122
+    public function getTemplate ()
123 123
     {
124 124
         return $this->attributes->mayHave('template')->asString();
125 125
     }
126 126
 
127
-    public function toArray()
127
+    public function toArray ()
128 128
     {
129 129
         return array_filter($this->__toArray());
130 130
     }
Please login to merge, or discard this patch.
src/Http/Request/Shipments/CreateObject.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace ShippoClient\Http\Request\Shipments;
4 4
 
5 5
 use ShippoClient\Http\Request\CommonParameter;
6
-use TurmericSpice\Container;
7 6
 use TurmericSpice\Container\InvalidAttributeException;
8 7
 use TurmericSpice\ReadWriteAttributes;
9 8
 
Please login to merge, or discard this patch.
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      * @return string
34 34
      * @throws InvalidAttributeException
35 35
      */
36
-    public function getObjectPurpose()
36
+    public function getObjectPurpose ()
37 37
     {
38 38
         $allowed = [static::OBJECT_PURPOSE_QUOTE, static::OBJECT_PURPOSE_PURCHASE];
39 39
 
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      * @return string
51 51
      * @throws InvalidAttributeException
52 52
      */
53
-    public function getAddressFrom()
53
+    public function getAddressFrom ()
54 54
     {
55 55
         return $this->attributes->mustHave('address_from')->asString();
56 56
     }
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      * @return string
64 64
      * @throws InvalidAttributeException
65 65
      */
66
-    public function getAddressTo()
66
+    public function getAddressTo ()
67 67
     {
68 68
         return $this->attributes->mustHave('address_to')->asString();
69 69
     }
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      * @return string
77 77
      * @throws InvalidAttributeException
78 78
      */
79
-    public function getParcel()
79
+    public function getParcel ()
80 80
     {
81 81
         return $this->attributes->mustHave('parcel')->asString();
82 82
     }
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      * @return string
92 92
      * @throws InvalidAttributeException
93 93
      */
94
-    public function getSubmissionType()
94
+    public function getSubmissionType ()
95 95
     {
96 96
         $allowed = [static::SUBMISSION_TYPE_DROPOFF, static::SUBMISSION_TYPE_PICKUP];
97 97
 
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      *
115 115
      * @return string
116 116
      */
117
-    public function getReturnOf()
117
+    public function getReturnOf ()
118 118
     {
119 119
         return $this->attributes->mayHave('return_of')->asString();
120 120
     }
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
      * @return string
132 132
      * @throws InvalidAttributeException
133 133
      */
134
-    public function getSubmissionDate()
134
+    public function getSubmissionDate ()
135 135
     {
136 136
         $isIOS8601Format = function ($datetime) {
137 137
             // this pattern is not strict but is sufficient
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
      *
160 160
      * @return string
161 161
      */
162
-    public function getAddressReturn()
162
+    public function getAddressReturn ()
163 163
     {
164 164
         return $this->attributes->mayHave('address_return')->asString();
165 165
     }
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
      *
172 172
      * @return string
173 173
      */
174
-    public function getCustomsDeclaration()
174
+    public function getCustomsDeclaration ()
175 175
     {
176 176
         return $this->attributes->mayHave('customs_declaration')->asString();
177 177
     }
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
      *
186 186
      * @return float
187 187
      */
188
-    public function getInsuranceAmount()
188
+    public function getInsuranceAmount ()
189 189
     {
190 190
         return $this->attributes->mayHave('insurance_amount')->asFloat();
191 191
     }
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
      * @return string
200 200
      * @throws InvalidAttributeException
201 201
      */
202
-    public function getInsuranceCurrency()
202
+    public function getInsuranceCurrency ()
203 203
     {
204 204
         if ($this->attributes->mayHave('insurance_amount')->value() === null) {
205 205
             return $this->attributes->mayHave('insurance_currency')->asString();
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
      *
226 226
      * @return array
227 227
      */
228
-    public function getExtra()
228
+    public function getExtra ()
229 229
     {
230 230
         return $this->attributes->mayHave('extra')->asArray();
231 231
     }
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
      *
238 238
      * @return string
239 239
      */
240
-    public function getReference1()
240
+    public function getReference1 ()
241 241
     {
242 242
         return $this->attributes->mayHave('reference_1')->asString();
243 243
     }
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
      *
250 250
      * @return string
251 251
      */
252
-    public function getReference2()
252
+    public function getReference2 ()
253 253
     {
254 254
         return $this->attributes->mayHave('reference_2')->asString();
255 255
     }
@@ -261,12 +261,12 @@  discard block
 block discarded – undo
261 261
      *
262 262
      * @return string
263 263
      */
264
-    public function getCarrierAccounts()
264
+    public function getCarrierAccounts ()
265 265
     {
266 266
         return $this->attributes->mayHave('carrier_accounts')->asArray();
267 267
     }
268 268
 
269
-    public function toArray()
269
+    public function toArray ()
270 270
     {
271 271
         return array_filter($this->__toArray());
272 272
     }
Please login to merge, or discard this patch.
src/Http/Request/Shipments/CreateObjectByNested.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use ShippoClient\Http\Request\CommonParameter;
6 6
 use ShippoClient\Http\Request\Addresses\CreateObject as AddressCreate;
7 7
 use ShippoClient\Http\Request\Parcels\CreateObject as ParcelCreate;
8
-use TurmericSpice\Container;
9 8
 use TurmericSpice\ReadableAttributes;
10 9
 
11 10
 class CreateObjectByNested extends CommonParameter
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
         toArray          as public __toArray;
17 17
     }
18 18
 
19
-    public function getAddressFrom()
19
+    public function getAddressFrom ()
20 20
     {
21 21
         $addressFrom = $this->attributes->mustHave('address_from')->asArray();
22 22
         $addressFromObj = new AddressCreate($addressFrom);
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
         return $addressFromObj->toArray();
25 25
     }
26 26
 
27
-    public function getAddressTo()
27
+    public function getAddressTo ()
28 28
     {
29 29
         $addressTo = $this->attributes->mustHave('address_to')->asArray();
30 30
         $addressToObj = new AddressCreate($addressTo);
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         return $addressToObj->toArray();
33 33
     }
34 34
 
35
-    public function getParcel()
35
+    public function getParcel ()
36 36
     {
37 37
         $parcel = $this->attributes->mustHave('parcel')->asArray();
38 38
         $parcelObj = new ParcelCreate($parcel);
@@ -40,17 +40,17 @@  discard block
 block discarded – undo
40 40
         return $parcelObj->toArray();
41 41
     }
42 42
 
43
-    public function getReference1()
43
+    public function getReference1 ()
44 44
     {
45 45
         return $this->attributes->mayHave('reference_1')->asString();
46 46
     }
47 47
 
48
-    public function getReference2()
48
+    public function getReference2 ()
49 49
     {
50 50
         return $this->attributes->mayHave('reference_2')->asString();
51 51
     }
52 52
 
53
-    public function toArray()
53
+    public function toArray ()
54 54
     {
55 55
         return array_filter($this->__toArray());
56 56
     }
Please login to merge, or discard this patch.
src/Http/Response/AddressList.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use ShippoClient\Entity\Address;
6 6
 use ShippoClient\Entity\AddressCollection;
7
-use TurmericSpice\Container;
8 7
 
9 8
 class AddressList extends ListResponse
10 9
 {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     /**
12 12
      * @return AddressCollection
13 13
      */
14
-    public function getResults()
14
+    public function getResults ()
15 15
     {
16 16
         $entities = [];
17 17
         foreach ($this->attributes->mayHave('results')->asArray() as $attributes) {
Please login to merge, or discard this patch.