@@ -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']); |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types = 1); |
|
| 12 | +declare(strict_types=1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Appwilio\RussianPostSDK\Dispatching; |
| 15 | 15 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Appwilio\RussianPostSDK\Dispatching\Endpoints\Orders\Requests; |
| 6 | 6 | |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | private function convertAddress(Address $address): \Generator |
| 130 | 130 | { |
| 131 | 131 | foreach ($address->toArray() as $key => $value) { |
| 132 | - if ($key === 'index' && ! \preg_match(self::RUSSIA_POSTAL_CODE, $value)) { |
|
| 132 | + if ($key === 'index' && !\preg_match(self::RUSSIA_POSTAL_CODE, $value)) { |
|
| 133 | 133 | yield 'str-index-to' => $value; |
| 134 | 134 | } elseif ($key === 'mail-direct') { |
| 135 | 135 | yield $key => $value; |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Appwilio\RussianPostSDK\Dispatching\Endpoints\Orders\Entites; |
| 6 | 6 | |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types = 1); |
|
| 12 | +declare(strict_types=1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Appwilio\RussianPostSDK\Dispatching\Endpoints\Orders\Entites; |
| 15 | 15 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Appwilio\RussianPostSDK\Dispatching\Endpoints\Orders\Entites; |
| 6 | 6 | |