@@ -19,10 +19,10 @@  | 
                                                    ||
| 19 | 19 | |
| 20 | 20 | // не работает, требует JWT авторизацию  | 
                                                        
| 21 | 21 | /**  | 
                                                        
| 22 | - * @param string $ApiKey  | 
                                                        |
| 23 | - * @param int|null $month  | 
                                                        |
| 24 | - * @return array  | 
                                                        |
| 25 | - */  | 
                                                        |
| 22 | + * @param string $ApiKey  | 
                                                        |
| 23 | + * @param int|null $month  | 
                                                        |
| 24 | + * @return array  | 
                                                        |
| 25 | + */  | 
                                                        |
| 26 | 26 | public function prolongateKey($ApiKey, $month = 12)  | 
                                                        
| 27 | 27 |      { | 
                                                        
| 28 | 28 | $this->calledMethod = 'prolongateApiKey';  | 
                                                        
@@ -15,9 +15,9 @@ discard block  | 
                                                    ||
| 15 | 15 | protected $methodProperties = [];  | 
                                                        
| 16 | 16 | |
| 17 | 17 | /**  | 
                                                        
| 18 | - * @param string|null $find  | 
                                                        |
| 19 | - * @return array  | 
                                                        |
| 20 | - */  | 
                                                        |
| 18 | + * @param string|null $find  | 
                                                        |
| 19 | + * @return array  | 
                                                        |
| 20 | + */  | 
                                                        |
| 21 | 21 | public function getCounterparties($find = null)  | 
                                                        
| 22 | 22 |      { | 
                                                        
| 23 | 23 | $this->calledMethod = 'getCounterparties';  | 
                                                        
@@ -34,9 +34,9 @@ discard block  | 
                                                    ||
| 34 | 34 | }  | 
                                                        
| 35 | 35 | |
| 36 | 36 | /**  | 
                                                        
| 37 | - * @param string $ref  | 
                                                        |
| 38 | - * @return array  | 
                                                        |
| 39 | - */  | 
                                                        |
| 37 | + * @param string $ref  | 
                                                        |
| 38 | + * @return array  | 
                                                        |
| 39 | + */  | 
                                                        |
| 40 | 40 | public function getCounterpartyContactPerson($ref)  | 
                                                        
| 41 | 41 |      { | 
                                                        
| 42 | 42 | $this->calledMethod = 'getCounterpartyContactPersons';  | 
                                                        
@@ -49,13 +49,13 @@ discard block  | 
                                                    ||
| 49 | 49 | }  | 
                                                        
| 50 | 50 | |
| 51 | 51 | /**  | 
                                                        
| 52 | - * @param string $firstName  | 
                                                        |
| 53 | - * @param string|null $lastName  | 
                                                        |
| 54 | - * @param string|null $middleName  | 
                                                        |
| 55 | - * @param string|int|null $phone  | 
                                                        |
| 56 | - * @param string|null $email  | 
                                                        |
| 57 | - * @return array  | 
                                                        |
| 58 | - */  | 
                                                        |
| 52 | + * @param string $firstName  | 
                                                        |
| 53 | + * @param string|null $lastName  | 
                                                        |
| 54 | + * @param string|null $middleName  | 
                                                        |
| 55 | + * @param string|int|null $phone  | 
                                                        |
| 56 | + * @param string|null $email  | 
                                                        |
| 57 | + * @return array  | 
                                                        |
| 58 | + */  | 
                                                        |
| 59 | 59 | public function save($firstName, $lastName = null, $middleName = null, $phone = null, $email = null)  | 
                                                        
| 60 | 60 |      { | 
                                                        
| 61 | 61 | $this->calledMethod = 'save';  | 
                                                        
@@ -85,9 +85,9 @@ discard block  | 
                                                    ||
| 85 | 85 | }  | 
                                                        
| 86 | 86 | |
| 87 | 87 | /**  | 
                                                        
| 88 | - * @param string $ref  | 
                                                        |
| 89 | - * @return array  | 
                                                        |
| 90 | - */  | 
                                                        |
| 88 | + * @param string $ref  | 
                                                        |
| 89 | + * @return array  | 
                                                        |
| 90 | + */  | 
                                                        |
| 91 | 91 | public function getCounterpartyOptions($ref)  | 
                                                        
| 92 | 92 |      { | 
                                                        
| 93 | 93 | $this->calledMethod = 'getCounterpartyOptions';  | 
                                                        
@@ -98,9 +98,9 @@ discard block  | 
                                                    ||
| 98 | 98 | }  | 
                                                        
| 99 | 99 | |
| 100 | 100 | /**  | 
                                                        
| 101 | - * @param string $ref  | 
                                                        |
| 102 | - * @return array  | 
                                                        |
| 103 | - */  | 
                                                        |
| 101 | + * @param string $ref  | 
                                                        |
| 102 | + * @return array  | 
                                                        |
| 103 | + */  | 
                                                        |
| 104 | 104 | public function getCounterpartyAddresses($ref)  | 
                                                        
| 105 | 105 |      { | 
                                                        
| 106 | 106 | $this->calledMethod = 'getCounterpartyAddresses';  | 
                                                        
@@ -112,10 +112,10 @@ discard block  | 
                                                    ||
| 112 | 112 | }  | 
                                                        
| 113 | 113 | |
| 114 | 114 | /**  | 
                                                        
| 115 | - * @param string|int $phone  | 
                                                        |
| 116 | - * @param string $lastname  | 
                                                        |
| 117 | - * @return array  | 
                                                        |
| 118 | - */  | 
                                                        |
| 115 | + * @param string|int $phone  | 
                                                        |
| 116 | + * @param string $lastname  | 
                                                        |
| 117 | + * @return array  | 
                                                        |
| 118 | + */  | 
                                                        |
| 119 | 119 | public function getCatalogCounterparty($phone, $lastname)  | 
                                                        
| 120 | 120 |      { | 
                                                        
| 121 | 121 | $this->calledMethod = 'getCatalogCounterparty';  | 
                                                        
@@ -48,9 +48,9 @@ discard block  | 
                                                    ||
| 48 | 48 | }  | 
                                                        
| 49 | 49 | |
| 50 | 50 | /**  | 
                                                        
| 51 | - * @param string|null $find  | 
                                                        |
| 52 | - * @return array  | 
                                                        |
| 53 | - */  | 
                                                        |
| 51 | + * @param string|null $find  | 
                                                        |
| 52 | + * @return array  | 
                                                        |
| 53 | + */  | 
                                                        |
| 54 | 54 | public function getCargoDescriptionList($find = null)  | 
                                                        
| 55 | 55 |      { | 
                                                        
| 56 | 56 | $this->calledMethod = 'getCargoDescriptionList';  | 
                                                        
@@ -122,10 +122,10 @@ discard block  | 
                                                    ||
| 122 | 122 | }  | 
                                                        
| 123 | 123 | |
| 124 | 124 | /**  | 
                                                        
| 125 | - * @param string $recipientCityRef  | 
                                                        |
| 126 | - * @param string|Carbon|date|null $find  | 
                                                        |
| 127 | - * @return array  | 
                                                        |
| 128 | - */  | 
                                                        |
| 125 | + * @param string $recipientCityRef  | 
                                                        |
| 126 | + * @param string|Carbon|date|null $find  | 
                                                        |
| 127 | + * @return array  | 
                                                        |
| 128 | + */  | 
                                                        |
| 129 | 129 | public function getTimeIntervals($recipientCityRef, $dateTime = null)  | 
                                                        
| 130 | 130 |      { | 
                                                        
| 131 | 131 | $this->calledMethod = 'getTimeIntervals';  | 
                                                        
@@ -87,15 +87,15 @@  | 
                                                    ||
| 87 | 87 | */  | 
                                                        
| 88 | 88 | public function checkDate($date)  | 
                                                        
| 89 | 89 |      { | 
                                                        
| 90 | -          if ($date instanceof Carbon) { | 
                                                        |
| 90 | +            if ($date instanceof Carbon) { | 
                                                        |
| 91 | 91 | $date = $date->format($this->format);  | 
                                                        
| 92 | -          } else { | 
                                                        |
| 92 | +            } else { | 
                                                        |
| 93 | 93 |              try { | 
                                                        
| 94 | - $date = Carbon::parse($date)->format($this->format);  | 
                                                        |
| 94 | + $date = Carbon::parse($date)->format($this->format);  | 
                                                        |
| 95 | 95 |              } catch (\Exception $e) { | 
                                                        
| 96 | - $date = Carbon::now()->format($this->format);  | 
                                                        |
| 96 | + $date = Carbon::now()->format($this->format);  | 
                                                        |
| 97 | + }  | 
                                                        |
| 97 | 98 | }  | 
                                                        
| 98 | - }  | 
                                                        |
| 99 | 99 | |
| 100 | 100 | return $date;  | 
                                                        
| 101 | 101 | }  |