Passed
Push — master ( 997785...de53d8 )
by Jhao
02:17
created
src/Tracking/SingleAccessClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
122 122
 
123 123
     protected function getClient(): \SoapClient
124 124
     {
125
-        if (! $this->client) {
125
+        if (!$this->client) {
126 126
             $this->client = new \SoapClient(self::WSDL_URL, $this->options);
127 127
         }
128 128
 
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
@@ -25,19 +25,19 @@
 block discarded – undo
25 25
 
26 26
     public function register()
27 27
     {
28
-        $this->app->singleton(SingleAccessClient::class, static function (Container $app) {
28
+        $this->app->singleton(SingleAccessClient::class, static function(Container $app) {
29 29
             $config = $app['config']['services.russianpost.tracking'];
30 30
 
31 31
             return new SingleAccessClient($config['login'], $config['password']);
32 32
         });
33 33
 
34
-        $this->app->singleton(PacketAccessClient::class, static function (Container $app) {
34
+        $this->app->singleton(PacketAccessClient::class, static function(Container $app) {
35 35
             $config = $app['config']['services.russianpost.tracking'];
36 36
 
37 37
             return new PacketAccessClient($config['login'], $config['password']);
38 38
         });
39 39
 
40
-        $this->app->singleton(DispatchingClient::class, static function (Container $app) {
40
+        $this->app->singleton(DispatchingClient::class, static function(Container $app) {
41 41
             $config = $app['config']['services.russianpost.dispatching'];
42 42
 
43 43
             return new DispatchingClient($config['login'], $config['password'], $config['token']);
Please login to merge, or discard this patch.
src/Tracking/Single/TrackingResponse.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->getOperations() as $operation) {
35 35
                 yield $operation;
36 36
             }
Please login to merge, or discard this patch.
src/Tracking/Single/CashOnDeliveryResponse.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/PacketAccessClient.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -48,10 +48,10 @@  discard block
 block discarded – undo
48 48
         'soap_version' => \SOAP_1_1,
49 49
         'trace'        => 1,
50 50
         'classmap'     => [
51
-            'item'                   => Packet\Item::class,      // Item согласно wsdl-описанию называется item
52
-            'error'                  => Packet\Error::class,     // корневая ошибка
53
-            'Error'                  => Packet\Error::class,     // ошибка конкретного трека
54
-            'file'                   => Packet\Wrapper::class,   // value согласно wsdl-описанию называется file
51
+            'item'                   => Packet\Item::class, // Item согласно wsdl-описанию называется item
52
+            'error'                  => Packet\Error::class, // корневая ошибка
53
+            'Error'                  => Packet\Error::class, // ошибка конкретного трека
54
+            'file'                   => Packet\Wrapper::class, // value согласно wsdl-описанию называется file
55 55
             'operation'              => Packet\Operation::class, // Operation согласно wsdl-описанию называется operation
56 56
 
57 57
             'ticketResponse'         => TicketResponse::class,
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 
94 94
     protected function getClient(): \SoapClient
95 95
     {
96
-        if (! $this->client) {
96
+        if (!$this->client) {
97 97
             $this->client = new \SoapClient(self::WSDL_URL, $this->options);
98 98
         }
99 99
 
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->getOperations() as $operation) {
35 35
                 yield $operation;
36 36
             }
Please login to merge, or discard this patch.
src/Tracking/Packet/ErrorAware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
      */
28 28
     public function getError(): ?Error
29 29
     {
30
-        if (! $this->hasError()) {
30
+        if (!$this->hasError()) {
31 31
             return null;
32 32
         }
33 33
 
Please login to merge, or discard this patch.
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.