Passed
Push — master ( 2fa329...7c46a5 )
by Jhao
02:30
created
src/Tracking/Packet/TrackingResponse.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 getIterator()
47 47
     {
48
-        return (function () {
48
+        return (function() {
49 49
             foreach ($this->getItems() as $item) {
50 50
                 yield $item;
51 51
             }
Please login to merge, or discard this patch.
src/Tracking/PacketAccessClient.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,10 +49,10 @@
 block discarded – undo
49 49
         'trace'        => 1,
50 50
         'classmap'     => [
51 51
             // в wsdl-файле некоторые элементы называются не так, как в документации
52
-            'item'                   => Packet\Item::class,          // Item → item
53
-            'error'                  => Packet\Error::class,         // корневая ошибка
54
-            'Error'                  => Packet\Error::class,         // ошибка конкретного РПО
55
-            'file'                   => Packet\ItemsWrapper::class,  // value → file
52
+            'item'                   => Packet\Item::class, // Item → item
53
+            'error'                  => Packet\Error::class, // корневая ошибка
54
+            'Error'                  => Packet\Error::class, // ошибка конкретного РПО
55
+            'file'                   => Packet\ItemsWrapper::class, // value → file
56 56
             'operation'              => Packet\TrackingEvent::class, // Operation → operation
57 57
 
58 58
             'ticketResponse'         => TicketResponse::class,
Please login to merge, or discard this patch.
src/Tracking/Single/CashOnDeliveryEventsResponse.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
 
31 31
     public function getIterator()
32 32
     {
33
-        return (function () {
33
+        return (function() {
34 34
             foreach ($this->getEvents() as $event) {
35 35
                 yield $event;
36 36
             }
Please login to merge, or discard this patch.
src/Tracking/Single/TrackingEventsResponse.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
 
31 31
     public function getIterator()
32 32
     {
33
-        return (function () {
33
+        return (function() {
34 34
             foreach ($this->getEvents() as $event) {
35 35
                 yield $event;
36 36
             }
Please login to merge, or discard this patch.
src/Tracking/Packet/Item.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
 
31 31
     public function getIterator()
32 32
     {
33
-        return (function () {
33
+        return (function() {
34 34
             foreach ($this->getEvents() as $event) {
35 35
                 yield $event;
36 36
             }
Please login to merge, or discard this patch.
src/LaravelServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
     public function register()
29 29
     {
30
-        $this->app->singleton(SingleAccessClient::class, function (Container $app) {
30
+        $this->app->singleton(SingleAccessClient::class, function(Container $app) {
31 31
             $config = $app['config']['services.russianpost.tracking'];
32 32
 
33 33
             return $this->setLoggerToClient(
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
             );
36 36
         });
37 37
 
38
-        $this->app->singleton(PacketAccessClient::class, function (Container $app) {
38
+        $this->app->singleton(PacketAccessClient::class, function(Container $app) {
39 39
             $config = $app['config']['services.russianpost.tracking'];
40 40
 
41 41
             return $this->setLoggerToClient(
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
             );
44 44
         });
45 45
 
46
-        $this->app->singleton(DispatchingClient::class, function (Container $app) {
46
+        $this->app->singleton(DispatchingClient::class, function(Container $app) {
47 47
             $config = $app['config']['services.russianpost.dispatching'];
48 48
 
49 49
             $client = new DispatchingClient(
Please login to merge, or discard this patch.
src/Dispatching/Endpoints/Services/Entities/NormalizedAddress.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -155,6 +155,6 @@
 block discarded – undo
155 155
 
156 156
     public function isUnuseful(): bool
157 157
     {
158
-        return ! $this->isUseful();
158
+        return !$this->isUseful();
159 159
     }
160 160
 }
Please login to merge, or discard this patch.
src/Core/Enum.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
             $value = $value->getValue();
26 26
         }
27 27
 
28
-        if (! \in_array($value, static::toArray(), true)) {
28
+        if (!\in_array($value, static::toArray(), true)) {
29 29
             throw new \UnexpectedValueException("Value '$value' is not part of the enum ".static::class);
30 30
         }
31 31
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     {
37 37
         $class = static::class;
38 38
 
39
-        if (! isset(static::$cache[$class])) {
39
+        if (!isset(static::$cache[$class])) {
40 40
             static::$cache[$class] = (new \ReflectionClass($class))->getConstants();
41 41
         }
42 42
 
Please login to merge, or discard this patch.
src/Dispatching/Http/ApiClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@
 block discarded – undo
143 143
 
144 144
     private function serializeRequestData(array $data): array
145 145
     {
146
-        return \array_map(function ($value) {
146
+        return \array_map(function($value) {
147 147
             if (\is_object($value) && $value instanceof \JsonSerializable) {
148 148
                 return $value->jsonSerialize();
149 149
             }
Please login to merge, or discard this patch.