Passed
Pull Request — master (#29)
by
unknown
02:19
created
src/Geography/Address/District.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 
38 38
     public function equals(?ValueObject $object) : bool
39 39
     {
40
-        if (! $object instanceof self) {
40
+        if (!$object instanceof self) {
41 41
             return false;
42 42
         }
43 43
 
Please login to merge, or discard this patch.
src/Linguistics/Languages/ISO6391Languages.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     {
36 36
         return new ArrayIterator(
37 37
             array_map(
38
-                function ($definition) {
38
+                function($definition) {
39 39
                     return new Language($definition['name'], $definition['code']);
40 40
                 },
41 41
                 $this->getLanguages()
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      */
63 63
     private function loadLanguages() : array
64 64
     {
65
-        $file = __DIR__ . '/../../../resources/languages/iso6391.php';
65
+        $file = __DIR__.'/../../../resources/languages/iso6391.php';
66 66
 
67 67
         if (file_exists($file)) {
68 68
             return require $file;
Please login to merge, or discard this patch.
src/Geography/Address/Physical/MessyPhysicalAddress.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
 
64 64
     protected function setFormattedAddress() : void
65 65
     {
66
-        $notNull = array_filter([$this->city, $this->region, $this->country], function ($element) {
66
+        $notNull = array_filter([$this->city, $this->region, $this->country], function($element) {
67 67
             return $element !== null;
68 68
         });
69 69
 
Please login to merge, or discard this patch.
src/Geography/Address/Physical/GenericPhysicalAddress.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
         $values = [$street, $city, $region, $postalCode, $country];
125 125
         $nonEmptyValues = [];
126 126
         foreach ($values as $value) {
127
-            if($value !== ''){
127
+            if ($value !== '') {
128 128
                 $nonEmptyValues[] = $value;
129 129
             }
130 130
         }
Please login to merge, or discard this patch.
src/Geography/Address/Physical/ByCountry/Br/BrPhysicalAddress.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -174,7 +174,7 @@
 block discarded – undo
174 174
         $values = [$street, $municipality, $state, $postalCode, $country];
175 175
         $nonEmptyValues = [];
176 176
         foreach ($values as $value) {
177
-            if($value !== ''){
177
+            if ($value !== '') {
178 178
                 $nonEmptyValues[] = $value;
179 179
             }
180 180
         }
Please login to merge, or discard this patch.
src/Geography/Address/Physical/ByCountry/Us/UsPhysicalAddress.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -124,30 +124,30 @@
 block discarded – undo
124 124
             (
125 125
                 (null === $this->getStreet() && null === $object->getStreet()) ||
126 126
                 (is_object($this->getStreet()) && $this->getStreet()
127
-                                                       ->equals($object->getStreet())) ||
127
+                                                        ->equals($object->getStreet())) ||
128 128
                 (is_object($object->getStreet()) && $object->getStreet()
129
-                                                           ->equals($this->getStreet()))
129
+                                                            ->equals($this->getStreet()))
130 130
             ) &&
131 131
             (
132 132
                 (null === $this->getCity() && null === $object->getCity()) ||
133 133
                 (is_object($this->getCity()) && $this->getCity()
134
-                                                     ->equals($object->getCity())) ||
134
+                                                        ->equals($object->getCity())) ||
135 135
                 (is_object($object->getCity()) && $object->getCity()
136
-                                                         ->equals($this->getCity()))
136
+                                                            ->equals($this->getCity()))
137 137
             ) &&
138 138
             (
139 139
                 (null === $this->getCounty() && null === $object->getCounty()) ||
140 140
                 (is_object($this->getCounty()) && $this->getCounty()
141
-                                                       ->equals($object->getCounty())) ||
141
+                                                        ->equals($object->getCounty())) ||
142 142
                 (is_object($object->getCounty()) && $object->getCounty()
143
-                                                           ->equals($this->getCounty()))
143
+                                                            ->equals($this->getCounty()))
144 144
             ) &&
145 145
             (
146 146
                 (null === $this->getState() && null === $object->getState()) ||
147 147
                 (is_object($this->getState()) && $this->getState()
148
-                                                      ->equals($object->getState())) ||
148
+                                                        ->equals($object->getState())) ||
149 149
                 (is_object($object->getState()) && $object->getState()
150
-                                                          ->equals($this->getState()))
150
+                                                            ->equals($this->getState()))
151 151
             ) &&
152 152
             (
153 153
                 (null === $this->getZipCode() && null === $object->getZipCode()) ||
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@
 block discarded – undo
185 185
         $values = [$street, $city, $state, $postalCode, $country];
186 186
         $nonEmptyValues = [];
187 187
         foreach ($values as $value) {
188
-            if($value !== ''){
188
+            if ($value !== '') {
189 189
                 $nonEmptyValues[] = $value;
190 190
             }
191 191
         }
Please login to merge, or discard this patch.
src/Geography/Address/Street.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
     {
99 99
         $firstPart = sprintf('%s %s', $this->getNumber(), $this->getName());
100 100
         if ($this->getOtherIdentifiers() && $this->getOtherIdentifiers() !== '') {
101
-            return $firstPart . ', ' . $this->getOtherIdentifiers();
101
+            return $firstPart.', '.$this->getOtherIdentifiers();
102 102
         }
103 103
 
104 104
         return $firstPart;
Please login to merge, or discard this patch.
src/Geography/Address/ByCountry/Us/ZipCode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
         $characters = strlen($changedValue);
20 20
 
21 21
         if ($characters == 4) {
22
-            $value = '0' . $value;
22
+            $value = '0'.$value;
23 23
             $characters++;
24 24
         }
25 25
 
Please login to merge, or discard this patch.