Completed
Branch master (396dac)
by Jhao
03:06 queued 57s
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/Tracking/Packet/ErrorAware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
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
 
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
@@ -43,10 +43,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
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/Dispatching/Endpoints/Orders/Requests/OrderRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.