@@ -122,7 +122,7 @@  | 
                                                    ||
| 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 | |
@@ -22,7 +22,7 @@  | 
                                                    ||
| 22 | 22 | |
| 23 | 23 | public function getError(): ?Error  | 
                                                        
| 24 | 24 |      { | 
                                                        
| 25 | -        if (! $this->hasError()) { | 
                                                        |
| 25 | +        if (!$this->hasError()) { | 
                                                        |
| 26 | 26 | return null;  | 
                                                        
| 27 | 27 | }  | 
                                                        
| 28 | 28 | |
@@ -43,10 +43,10 @@ discard block  | 
                                                    ||
| 43 | 43 | 'soap_version' => \SOAP_1_1,  | 
                                                        
| 44 | 44 | 'trace' => 1,  | 
                                                        
| 45 | 45 | 'classmap' => [  | 
                                                        
| 46 | - 'item' => Packet\Event::class, // Item согласно wsdl-описанию называется item  | 
                                                        |
| 47 | - 'file' => Packet\Value::class, // value согласно wsdl-описанию называется file  | 
                                                        |
| 48 | - 'error' => Packet\Error::class, // корневая ошибка  | 
                                                        |
| 49 | - 'Error' => Packet\Error::class, // ошибка конкретного трека  | 
                                                        |
| 46 | + 'item' => Packet\Event::class, // Item согласно wsdl-описанию называется item  | 
                                                        |
| 47 | + 'file' => Packet\Value::class, // value согласно wsdl-описанию называется file  | 
                                                        |
| 48 | + 'error' => Packet\Error::class, // корневая ошибка  | 
                                                        |
| 49 | + 'Error' => Packet\Error::class, // ошибка конкретного трека  | 
                                                        |
| 50 | 50 | 'operation' => Packet\Operation::class, // Operation согласно wsdl-описанию называется operation  | 
                                                        
| 51 | 51 | 'ticketResponse' => TicketResponse::class,  | 
                                                        
| 52 | 52 | 'answerByTicketResponse' => TrackingResponse::class,  | 
                                                        
@@ -122,7 +122,7 @@ discard block  | 
                                                    ||
| 122 | 122 | |
| 123 | 123 | public 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 | |
@@ -25,19 +25,19 @@  | 
                                                    ||
| 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']);  | 
                                                        
@@ -75,7 +75,7 @@  | 
                                                    ||
| 75 | 75 |      { | 
                                                        
| 76 | 76 |          if (null === $this->serializer) { | 
                                                        
| 77 | 77 | $this->serializer = SerializerBuilder::create()  | 
                                                        
| 78 | -                ->configureHandlers(function (HandlerRegistryInterface $registry) { | 
                                                        |
| 78 | +                ->configureHandlers(function(HandlerRegistryInterface $registry) { | 
                                                        |
| 79 | 79 |                      foreach ($this->customDeserializators as $class => $handler) { | 
                                                        
| 80 | 80 |                          $registry->registerHandler('deserialization', $class, 'json', new $handler); | 
                                                        
| 81 | 81 | }  |