Passed
Push — main ( fe37b5...35dd6d )
by Vasil
04:19 queued 41s
created
src/Model/Email.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      */
40 40
     private function setValue(string $value): void
41 41
     {
42
-        if (! \filter_var($value, FILTER_VALIDATE_EMAIL)) {
42
+        if (!\filter_var($value, FILTER_VALIDATE_EMAIL)) {
43 43
             throw new \InvalidArgumentException();
44 44
         }
45 45
         $this->value = $value;
Please login to merge, or discard this patch.
src/Model/CountryCode.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function setCode(int $code): self
56 56
     {
57
-        if (! in_array($code, self::CODES)) {
57
+        if (!in_array($code, self::CODES)) {
58 58
             throw new \InvalidArgumentException();
59 59
         }
60 60
         $this->code = $code;
@@ -72,6 +72,6 @@  discard block
 block discarded – undo
72 72
 
73 73
     public function toArray(): array
74 74
     {
75
-        return [ ];
75
+        return [];
76 76
     }
77 77
 }
Please login to merge, or discard this patch.
src/Model/Payment.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      */
80 80
     public function setCourierServicePayer(string $courierServicePayer): void
81 81
     {
82
-        if (! $this->isValidPayer($courierServicePayer)) {
82
+        if (!$this->isValidPayer($courierServicePayer)) {
83 83
             throw new InvalidArgumentException();
84 84
         }
85 85
         $this->courierServicePayer = $courierServicePayer;
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      */
99 99
     public function setDeclaredValuePayer(string $declaredValuePayer): void
100 100
     {
101
-        if (! $this->isValidPayer($declaredValuePayer)) {
101
+        if (!$this->isValidPayer($declaredValuePayer)) {
102 102
             throw new InvalidArgumentException();
103 103
         }
104 104
         $this->declaredValuePayer = $declaredValuePayer;
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      */
118 118
     public function setPackagePayer(string $packagePayer): void
119 119
     {
120
-        if (! $this->isValidPayer($packagePayer)) {
120
+        if (!$this->isValidPayer($packagePayer)) {
121 121
             throw new InvalidArgumentException();
122 122
         }
123 123
         $this->packagePayer = $packagePayer;
Please login to merge, or discard this patch.
src/Service/Client/GetContractClientsRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
     {
46 46
         $array = [];
47 47
 
48
-        if (! is_null($this->clientSystemId)) {
48
+        if (!is_null($this->clientSystemId)) {
49 49
             $array['clientSystemId'] = $this->clientSystemId;
50 50
         }
51 51
 
Please login to merge, or discard this patch.
src/Serializer/SerializerFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
                         new Serializer\Naming\IdenticalPropertyNamingStrategy()
31 31
                     )
32 32
                 )
33
-                ->setSerializationContextFactory(function () {
33
+                ->setSerializationContextFactory(function() {
34 34
                     return SerializationContext::create()
35 35
                         ->setSerializeNull(true);
36 36
                 })
Please login to merge, or discard this patch.
src/Service/Location/Country/FindCountryResponse.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
     public function findCountryById(int $id): ?Country
53 53
     {
54
-        $collection = $this->getCountries()->filter(function (Country $country) use ($id) {
54
+        $collection = $this->getCountries()->filter(function(Country $country) use ($id) {
55 55
             return $country->getId() === $id;
56 56
         });
57 57
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     {
73 73
         $name = mb_strtoupper($name, 'UTF-8');
74 74
 
75
-        $collection = $this->countries->filter(function (Country $country) use ($name) {
75
+        $collection = $this->countries->filter(function(Country $country) use ($name) {
76 76
             return $country->getName() === $name;
77 77
         });
78 78
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      */
91 91
     public function findCountryByIsoAlpha2(string $isoAlpha2): ?Country
92 92
     {
93
-        $collection = $this->getCountries()->filter(function (Country $country) use ($isoAlpha2) {
93
+        $collection = $this->getCountries()->filter(function(Country $country) use ($isoAlpha2) {
94 94
             return $country->getIsoAlpha2() === $isoAlpha2;
95 95
         });
96 96
 
Please login to merge, or discard this patch.
src/Service/Shipment/Payer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
      */
46 46
     public function setValue(string $value): void
47 47
     {
48
-        if (! in_array($value, self::OPTIONS, true)) {
48
+        if (!in_array($value, self::OPTIONS, true)) {
49 49
             throw new \InvalidArgumentException();
50 50
         }
51 51
         $this->value = $value;
Please login to merge, or discard this patch.
src/Service/Shipment/CreateShipmentRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -278,7 +278,7 @@
 block discarded – undo
278 278
             "service" => $this->service->toArray(), // ok
279 279
             "content" => $this->content->toArray(), // ok
280 280
             "payment" => $this->payment->toArray(), // ok
281
-            "sender"  => $this->sender->toArray(),  // ok
281
+            "sender"  => $this->sender->toArray(), // ok
282 282
             /* "sender" => [
283 283
                 "phone1" => [
284 284
                     "number" => "0888323020"
Please login to merge, or discard this patch.