Passed
Push — feature/post-pay ( 50af39...9c8201 )
by Remco
05:53
created
src/CustomerInformation.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 	 *
62 62
 	 * @param string|null $email_address E-mailadress of the consumer.
63 63
 	 */
64
-	public function set_email_address( $email_address ) {
64
+	public function set_email_address($email_address) {
65 65
 		$this->email_address = $email_address;
66 66
 	}
67 67
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 	 *
71 71
 	 * @param DateTime|null $date_of_birth Date of birth.
72 72
 	 */
73
-	public function set_date_of_birth( DateTime $date_of_birth = null ) {
73
+	public function set_date_of_birth(DateTime $date_of_birth = null) {
74 74
 		$this->date_of_birth = $date_of_birth;
75 75
 	}
76 76
 
@@ -80,9 +80,9 @@  discard block
 block discarded – undo
80 80
 	 * @param string|null $gender Gender.
81 81
 	 * @throws InvalidArgumentException Throws invalid argument exception when gender is not null, 'F' or 'M'.
82 82
 	 */
83
-	public function set_gender( $gender ) {
84
-		if ( ! in_array( $gender, array( null, 'F', 'M' ), true ) ) {
85
-			throw new InvalidArgumentException( 'Gender "%s" must be equal to `null`, "F" or "M".' );
83
+	public function set_gender($gender) {
84
+		if ( ! in_array($gender, array(null, 'F', 'M'), true)) {
85
+			throw new InvalidArgumentException('Gender "%s" must be equal to `null`, "F" or "M".');
86 86
 		}
87 87
 
88 88
 		$this->gender = $gender;
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 	 *
94 94
 	 * @param string|null $initials Initials.
95 95
 	 */
96
-	public function set_initials( $initials ) {
96
+	public function set_initials($initials) {
97 97
 		$this->initials = $initials;
98 98
 	}
99 99
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 	 *
103 103
 	 * @param string|null $telephone_number Telephone number.
104 104
 	 */
105
-	public function set_telephone_number( $telephone_number ) {
105
+	public function set_telephone_number($telephone_number) {
106 106
 		$this->telephone_number = $telephone_number;
107 107
 	}
108 108
 
@@ -114,23 +114,23 @@  discard block
 block discarded – undo
114 114
 	public function get_json() {
115 115
 		$object = (object) array();
116 116
 
117
-		if ( null !== $this->email_address ) {
117
+		if (null !== $this->email_address) {
118 118
 			$object->emailAddress = $this->email_address;
119 119
 		}
120 120
 
121
-		if ( null !== $this->date_of_birth ) {
122
-			$object->dateOfBirth = $this->date_of_birth->format( 'd-m-Y' );
121
+		if (null !== $this->date_of_birth) {
122
+			$object->dateOfBirth = $this->date_of_birth->format('d-m-Y');
123 123
 		}
124 124
 
125
-		if ( null !== $this->gender ) {
125
+		if (null !== $this->gender) {
126 126
 			$object->gender = $this->gender;
127 127
 		}
128 128
 
129
-		if ( null !== $this->initials ) {
129
+		if (null !== $this->initials) {
130 130
 			$object->initials = $this->initials;
131 131
 		}
132 132
 
133
-		if ( null !== $this->telephone_number ) {
133
+		if (null !== $this->telephone_number) {
134 134
 			$object->telephoneNumber = $this->telephone_number;
135 135
 		}
136 136
 
@@ -143,9 +143,9 @@  discard block
 block discarded – undo
143 143
 	 * @param array $fields Fields.
144 144
 	 * @return array
145 145
 	 */
146
-	public function get_signature_fields( $fields = array() ) {
146
+	public function get_signature_fields($fields = array()) {
147 147
 		$fields[] = $this->email_address;
148
-		$fields[] = ( null === $this->date_of_birth ) ? null : $this->date_of_birth->format( 'd-m-Y' );
148
+		$fields[] = (null === $this->date_of_birth) ? null : $this->date_of_birth->format('d-m-Y');
149 149
 		$fields[] = $this->gender;
150 150
 		$fields[] = $this->initials;
151 151
 		$fields[] = $this->telephone_number;
Please login to merge, or discard this patch.