Passed
Push — feature/post-pay ( 906e88...faf3dd )
by Remco
04:39
created
src/CustomerInformation.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 	 *
61 61
 	 * @param string $email_address E-mailadress of the consumer.
62 62
 	 */
63
-	public function set_email_address( $email_address ) {
63
+	public function set_email_address($email_address) {
64 64
 		$this->email_address = $email_address;
65 65
 	}
66 66
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 	 *
70 70
 	 * @param DateTimeInterface $date_of_birth Date of birth.
71 71
 	 */
72
-	public function set_date_of_birth( DateTimeInterface $date_of_birth ) {
72
+	public function set_date_of_birth(DateTimeInterface $date_of_birth) {
73 73
 		$this->date_of_birth = $date_of_birth;
74 74
 	}
75 75
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 	 *
79 79
 	 * @param string $gender Gender.
80 80
 	 */
81
-	public function set_gender( $gender ) {
81
+	public function set_gender($gender) {
82 82
 		$this->gender = $gender;
83 83
 	}
84 84
 
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 	 *
88 88
 	 * @param string $initials Initials.
89 89
 	 */
90
-	public function set_initials( $initials ) {
90
+	public function set_initials($initials) {
91 91
 		$this->initials = $initials;
92 92
 	}
93 93
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 	 *
97 97
 	 * @param string $telephone_number Telephone number.
98 98
 	 */
99
-	public function set_telephone_number( $telephone_number ) {
99
+	public function set_telephone_number($telephone_number) {
100 100
 		$this->telephone_number = $telephone_number;
101 101
 	}
102 102
 
@@ -108,23 +108,23 @@  discard block
 block discarded – undo
108 108
 	public function get_json() {
109 109
 		$object = (object) array();
110 110
 
111
-		if ( null !== $this->email_address ) {
111
+		if (null !== $this->email_address) {
112 112
 			$object->emailAddress = $this->email_address;
113 113
 		}
114 114
 
115
-		if ( null !== $this->date_of_birth ) {
116
-			$object->dateOfBirth = $this->date_of_birth->format( 'd-m-Y' );
115
+		if (null !== $this->date_of_birth) {
116
+			$object->dateOfBirth = $this->date_of_birth->format('d-m-Y');
117 117
 		}
118 118
 
119
-		if ( null !== $this->gender ) {
119
+		if (null !== $this->gender) {
120 120
 			$object->gender = $this->gender;
121 121
 		}
122 122
 
123
-		if ( null !== $this->initials ) {
123
+		if (null !== $this->initials) {
124 124
 			$object->initials = $this->initials;
125 125
 		}
126 126
 
127
-		if ( null !== $this->telephone_number ) {
127
+		if (null !== $this->telephone_number) {
128 128
 			$object->telephoneNumber = $this->telephone_number;
129 129
 		}
130 130
 
@@ -137,9 +137,9 @@  discard block
 block discarded – undo
137 137
 	 * @param array $fields Fields.
138 138
 	 * @return array
139 139
 	 */
140
-	public function get_signature_fields( $fields = array() ) {
140
+	public function get_signature_fields($fields = array()) {
141 141
 		$fields[] = $this->email_address;
142
-		$fields[] = ( null === $this->date_of_birth ) ? null : $this->date_of_birth->format( 'd-m-Y' );
142
+		$fields[] = (null === $this->date_of_birth) ? null : $this->date_of_birth->format('d-m-Y');
143 143
 		$fields[] = $this->gender;
144 144
 		$fields[] = $this->initials;
145 145
 		$fields[] = $this->telephone_number;
Please login to merge, or discard this patch.
src/OrderItem.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 	 * @param Money  $amount   Amount.
83 83
 	 * @param string $category Category.
84 84
 	 */
85
-	public function __construct( $name, $quantity, Money $amount, $category ) {
85
+	public function __construct($name, $quantity, Money $amount, $category) {
86 86
 		$this->name     = $name;
87 87
 		$this->quantity = $quantity;
88 88
 		$this->amount   = $amount;
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 	 *
104 104
 	 * @param string|null $id ID.
105 105
 	 */
106
-	public function set_id( $id = null ) {
106
+	public function set_id($id = null) {
107 107
 		$this->id = $id;
108 108
 	}
109 109
 
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 	 *
131 131
 	 * @param string $description Description.
132 132
 	 */
133
-	public function set_description( $description ) {
133
+	public function set_description($description) {
134 134
 		$this->description = $description;
135 135
 	}
136 136
 
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 	 *
167 167
 	 * @param Money|null $tax Tax.
168 168
 	 */
169
-	public function set_tax( Money $tax = null ) {
169
+	public function set_tax(Money $tax = null) {
170 170
 		$this->tax = $tax;
171 171
 	}
172 172
 
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
 	 *
194 194
 	 * @param int $vat_category VAT category.
195 195
 	 */
196
-	public function set_vat_category( $vat_category ) {
196
+	public function set_vat_category($vat_category) {
197 197
 		$this->vat_category = $vat_category;
198 198
 	}
199 199
 
@@ -205,26 +205,26 @@  discard block
 block discarded – undo
205 205
 	public function get_json() {
206 206
 		$object = (object) array();
207 207
 
208
-		if ( null !== $this->id ) {
208
+		if (null !== $this->id) {
209 209
 			$object->id = $this->id;
210 210
 		}
211 211
 
212 212
 		$object->name = $this->name;
213 213
 
214
-		if ( null !== $this->description ) {
214
+		if (null !== $this->description) {
215 215
 			$object->description = $this->description;
216 216
 		}
217 217
 
218 218
 		$object->quantity = $this->quantity;
219 219
 		$object->amount   = $this->amount->get_json();
220 220
 
221
-		if ( null !== $this->tax ) {
221
+		if (null !== $this->tax) {
222 222
 			$object->tax = $this->tax->get_json();
223 223
 		}
224 224
 
225 225
 		$object->category = $this->category;
226 226
 
227
-		if ( null !== $this->vat_category ) {
227
+		if (null !== $this->vat_category) {
228 228
 			$object->vatCategory = $this->vat_category;
229 229
 		}
230 230
 
@@ -237,8 +237,8 @@  discard block
 block discarded – undo
237 237
 	 * @param array $data Data.
238 238
 	 * @return array
239 239
 	 */
240
-	public function get_signature_fields( $data = array() ) {
241
-		if ( null !== $this->id ) {
240
+	public function get_signature_fields($data = array()) {
241
+		if (null !== $this->id) {
242 242
 			$data[] = $this->id;
243 243
 		}
244 244
 
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
 		$data[] = $this->amount->get_currency();
249 249
 		$data[] = $this->amount->get_amount();
250 250
 
251
-		if ( null === $this->tax ) {
251
+		if (null === $this->tax) {
252 252
 			$data[] = null;
253 253
 		} else {
254 254
 			$data[] = $this->tax->get_currency();
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
 
258 258
 		$data[] = $this->category;
259 259
 
260
-		if ( null !== $this->vat_category ) {
260
+		if (null !== $this->vat_category) {
261 261
 			$data[] = $this->vat_category;
262 262
 		}
263 263
 
Please login to merge, or discard this patch.
src/OrderItems.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -30,10 +30,10 @@  discard block
 block discarded – undo
30 30
 	 *
31 31
 	 * @param array $items Order items.
32 32
 	 */
33
-	public function __construct( $items = null ) {
34
-		if ( is_array( $items ) ) {
35
-			foreach ( $items as $item ) {
36
-				$this->add_item( $item );
33
+	public function __construct($items = null) {
34
+		if (is_array($items)) {
35
+			foreach ($items as $item) {
36
+				$this->add_item($item);
37 37
 			}
38 38
 		}
39 39
 	}
@@ -47,10 +47,10 @@  discard block
 block discarded – undo
47 47
 	 * @param string $category Category.
48 48
 	 * @return OrderItem
49 49
 	 */
50
-	public function new_item( $name, $quantity, Money $amount, $category ) {
51
-		$item = new OrderItem( $name, $quantity, $amount, $category );
50
+	public function new_item($name, $quantity, Money $amount, $category) {
51
+		$item = new OrderItem($name, $quantity, $amount, $category);
52 52
 
53
-		$this->add_item( $item );
53
+		$this->add_item($item);
54 54
 
55 55
 		return $item;
56 56
 	}
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 	 *
61 61
 	 * @param OrderItem $item Order item.
62 62
 	 */
63
-	public function add_item( OrderItem $item ) {
63
+	public function add_item(OrderItem $item) {
64 64
 		$this->order_items[] = $item;
65 65
 	}
66 66
 
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 	 */
81 81
 	public function get_json() {
82 82
 		$data = array_map(
83
-			function( $item ) {
83
+			function($item) {
84 84
 				return $item->get_json();
85 85
 			},
86 86
 			$this->get_order_items()
@@ -95,9 +95,9 @@  discard block
 block discarded – undo
95 95
 	 * @param array $fields Fields.
96 96
 	 * @return array
97 97
 	 */
98
-	public function get_signature_fields( $fields = array() ) {
99
-		foreach ( $this->get_order_items() as $item ) {
100
-			$fields = $item->get_signature_fields( $fields );
98
+	public function get_signature_fields($fields = array()) {
99
+		foreach ($this->get_order_items() as $item) {
100
+			$fields = $item->get_signature_fields($fields);
101 101
 		}
102 102
 
103 103
 		return $fields;
Please login to merge, or discard this patch.