@@ -8,7 +8,7 @@ |
||
| 8 | 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | -declare(strict_types=1); |
|
| 11 | +declare(strict_types = 1); |
|
| 12 | 12 | |
| 13 | 13 | namespace Appwilio\RussianPostSDK\Tracking\Single; |
| 14 | 14 | |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | -declare(strict_types=1); |
|
| 11 | +declare(strict_types = 1); |
|
| 12 | 12 | |
| 13 | 13 | namespace Appwilio\RussianPostSDK\Tracking\Packet; |
| 14 | 14 | |
@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | -declare(strict_types=1); |
|
| 11 | +declare(strict_types = 1); |
|
| 12 | 12 | |
| 13 | 13 | namespace Appwilio\RussianPostSDK\Tracking\Packet; |
| 14 | 14 | |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | |
| 49 | 49 | public function getError(): ?Error |
| 50 | 50 | { |
| 51 | - if (! $this->hasError()) { |
|
| 51 | + if (!$this->hasError()) { |
|
| 52 | 52 | return null; |
| 53 | 53 | } |
| 54 | 54 | |
@@ -124,7 +124,7 @@ |
||
| 124 | 124 | |
| 125 | 125 | protected function getClient(): \SoapClient |
| 126 | 126 | { |
| 127 | - if (! $this->client) { |
|
| 127 | + if (!$this->client) { |
|
| 128 | 128 | $this->client = new \SoapClient(self::TRACKING_WSDL_URL, $this->options); |
| 129 | 129 | } |
| 130 | 130 | |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | -declare(strict_types=1); |
|
| 11 | +declare(strict_types = 1); |
|
| 12 | 12 | |
| 13 | 13 | namespace Appwilio\RussianPostSDK\Tracking\Exceptions; |
| 14 | 14 | |
@@ -41,11 +41,11 @@ discard block |
||
| 41 | 41 | 'soap_version' => SOAP_1_1, |
| 42 | 42 | 'trace' => 1, |
| 43 | 43 | 'classmap' => [ |
| 44 | - 'item' => Packet\Item::class, // Item согласно wsdl-описанию называется item |
|
| 45 | - 'file' => Packet\Value::class, // value согласно wsdl-описанию называется file |
|
| 46 | - 'error' => Packet\Error::class, // корневая ошибка |
|
| 47 | - 'Error' => Packet\Error::class, // ошибка конкретного трека |
|
| 48 | - 'operation' => Packet\Operation::class, // Operation согласно wsdl-описанию называется operation |
|
| 44 | + 'item' => Packet\Item::class, // Item согласно wsdl-описанию называется item |
|
| 45 | + 'file' => Packet\Value::class, // value согласно wsdl-описанию называется file |
|
| 46 | + 'error' => Packet\Error::class, // корневая ошибка |
|
| 47 | + 'Error' => Packet\Error::class, // ошибка конкретного трека |
|
| 48 | + 'operation' => Packet\Operation::class, // Operation согласно wsdl-описанию называется operation |
|
| 49 | 49 | 'ticketResponse' => TicketResponse::class, |
| 50 | 50 | 'answerByTicketResponse' => TrackingResponse::class, |
| 51 | 51 | ], |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | |
| 125 | 125 | public function getClient(): \SoapClient |
| 126 | 126 | { |
| 127 | - if (! $this->client) { |
|
| 127 | + if (!$this->client) { |
|
| 128 | 128 | $this->client = new \SoapClient(self::TRACKING_WSDL_URL, $this->options); |
| 129 | 129 | } |
| 130 | 130 | |
@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | -declare(strict_types=1); |
|
| 11 | +declare(strict_types = 1); |
|
| 12 | 12 | |
| 13 | 13 | namespace Appwilio\RussianPostSDK; |
| 14 | 14 | |
@@ -23,13 +23,13 @@ discard block |
||
| 23 | 23 | |
| 24 | 24 | public function register() |
| 25 | 25 | { |
| 26 | - $this->app->singleton(SingleAccessClient::class, function (Application $app) { |
|
| 26 | + $this->app->singleton(SingleAccessClient::class, function(Application $app) { |
|
| 27 | 27 | $config = $app['config']['services.russianpost.tracking']; |
| 28 | 28 | |
| 29 | 29 | return new SingleAccessClient($config['login'], $config['password']); |
| 30 | 30 | }); |
| 31 | 31 | |
| 32 | - $this->app->singleton(PacketAccessClient::class, function (Application $app) { |
|
| 32 | + $this->app->singleton(PacketAccessClient::class, function(Application $app) { |
|
| 33 | 33 | $config = $app['config']['services.russianpost.tracking']; |
| 34 | 34 | |
| 35 | 35 | return new PacketAccessClient($config['login'], $config['password']); |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | -declare(strict_types=1); |
|
| 11 | +declare(strict_types = 1); |
|
| 12 | 12 | |
| 13 | 13 | namespace Appwilio\RussianPostSDK\Tracking\Single; |
| 14 | 14 | |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | -declare(strict_types=1); |
|
| 11 | +declare(strict_types = 1); |
|
| 12 | 12 | |
| 13 | 13 | namespace Appwilio\RussianPostSDK\Tracking\Single; |
| 14 | 14 | |