@@ -17,42 +17,42 @@ discard block |
||
| 17 | 17 | mayHaveAsArray as public getMessages; |
| 18 | 18 | } |
| 19 | 19 | |
| 20 | - public function getName() |
|
| 20 | + public function getName () |
|
| 21 | 21 | { |
| 22 | 22 | return $this->mayHaveAsAsciiString('name'); |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | - public function getCompany() |
|
| 25 | + public function getCompany () |
|
| 26 | 26 | { |
| 27 | 27 | return $this->mayHaveAsAsciiString('company'); |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | - public function getStreet1() |
|
| 30 | + public function getStreet1 () |
|
| 31 | 31 | { |
| 32 | 32 | return $this->mayHaveAsAsciiString('street1'); |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | - public function getStreet2() |
|
| 35 | + public function getStreet2 () |
|
| 36 | 36 | { |
| 37 | 37 | return $this->mayHaveAsAsciiString('street2'); |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | - public function getStreetNo() |
|
| 40 | + public function getStreetNo () |
|
| 41 | 41 | { |
| 42 | 42 | return $this->mayHaveAsAsciiString('street_no'); |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | - public function getCity() |
|
| 45 | + public function getCity () |
|
| 46 | 46 | { |
| 47 | 47 | return $this->mayHaveAsAsciiString('city'); |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | - public function getState() |
|
| 50 | + public function getState () |
|
| 51 | 51 | { |
| 52 | 52 | return $this->mayHaveAsAsciiString('state'); |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | - public function getIsResidential() |
|
| 55 | + public function getIsResidential () |
|
| 56 | 56 | { |
| 57 | 57 | $is_residential = $this->attributes->mayHave('is_residential')->value(); |
| 58 | 58 | if ($is_residential === null) { |
@@ -62,21 +62,21 @@ discard block |
||
| 62 | 62 | return (bool)$is_residential; |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | - private function mayHaveAsAsciiString($propertyName, callable $validate = null) |
|
| 65 | + private function mayHaveAsAsciiString ($propertyName, callable $validate = null) |
|
| 66 | 66 | { |
| 67 | 67 | return $this->transliterateToAscii( |
| 68 | 68 | $this->attributes->mayHave($propertyName)->asString($validate) |
| 69 | 69 | ); |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | - private function mustHaveAsAsciiString($propertyName, callable $validate = null) |
|
| 72 | + private function mustHaveAsAsciiString ($propertyName, callable $validate = null) |
|
| 73 | 73 | { |
| 74 | 74 | return $this->transliterateToAscii( |
| 75 | 75 | $this->attributes->mustHave($propertyName)->asString($validate) |
| 76 | 76 | ); |
| 77 | 77 | } |
| 78 | 78 | |
| 79 | - private function transliterateToAscii($str) |
|
| 79 | + private function transliterateToAscii ($str) |
|
| 80 | 80 | { |
| 81 | 81 | $ret = ''; |
| 82 | 82 | foreach (preg_split('//u', $str) as $ch) { |