@@ -57,7 +57,6 @@ |
||
57 | 57 | * @param $Page |
58 | 58 | * |
59 | 59 | * @return array |
60 | - |
|
61 | 60 | * @throws \Throwable |
62 | 61 | * |
63 | 62 | * @see https://tech.yandex.ru/direct/doc/ref-v5/adextensions/get-docpage/ |
@@ -24,7 +24,6 @@ |
||
24 | 24 | * @throws \Throwable |
25 | 25 | * |
26 | 26 | * @see https://tech.yandex.ru/direct/doc/ref-v5/retargetinglists/add-docpage/ |
27 | - |
|
28 | 27 | */ |
29 | 28 | public function add($RetargetingLists) |
30 | 29 | { |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | */ |
31 | 31 | class Client implements ServiceFactoryInterface |
32 | 32 | { |
33 | - private const SERVICE_NAMESPACE = __NAMESPACE__ . '\\Service\\'; |
|
33 | + private const SERVICE_NAMESPACE = __NAMESPACE__.'\\Service\\'; |
|
34 | 34 | |
35 | 35 | /** |
36 | 36 | * @var \Gladyshev\Yandex\Direct\ServiceInterface[] |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | public function createService(string $serviceName): \Gladyshev\Yandex\Direct\ServiceInterface |
59 | 59 | { |
60 | 60 | if (!isset($this->services[$serviceName])) { |
61 | - $className = self::SERVICE_NAMESPACE . ucfirst($serviceName); |
|
61 | + $className = self::SERVICE_NAMESPACE.ucfirst($serviceName); |
|
62 | 62 | |
63 | 63 | if (!class_exists($className)) { |
64 | 64 | throw new \Gladyshev\Yandex\Direct\Exception\ServiceNotFoundException( |
@@ -73,12 +73,12 @@ |
||
73 | 73 | */ |
74 | 74 | public function __toString(): string |
75 | 75 | { |
76 | - $str = 'Exception ' . __CLASS__ . " code {$this->code} with message '{$this->message}' in `{$this->file}`" . PHP_EOL; |
|
77 | - $str .= 'Details: ' . $this->detail . PHP_EOL; |
|
78 | - $str .= 'Stack trace:' . PHP_EOL . $this->getTraceAsString() . PHP_EOL; |
|
79 | - $str .= 'Request-Response:' . PHP_EOL; |
|
80 | - $str .= '>>>' . \GuzzleHttp\Psr7\Message::toString($this->getRequest()) . PHP_EOL; |
|
81 | - $str .= '<<<' . \GuzzleHttp\Psr7\Message::toString($this->getResponse()) . PHP_EOL; |
|
76 | + $str = 'Exception '.__CLASS__." code {$this->code} with message '{$this->message}' in `{$this->file}`".PHP_EOL; |
|
77 | + $str .= 'Details: '.$this->detail.PHP_EOL; |
|
78 | + $str .= 'Stack trace:'.PHP_EOL.$this->getTraceAsString().PHP_EOL; |
|
79 | + $str .= 'Request-Response:'.PHP_EOL; |
|
80 | + $str .= '>>>'.\GuzzleHttp\Psr7\Message::toString($this->getRequest()).PHP_EOL; |
|
81 | + $str .= '<<<'.\GuzzleHttp\Psr7\Message::toString($this->getResponse()).PHP_EOL; |
|
82 | 82 | |
83 | 83 | return $str; |
84 | 84 | } |
@@ -27,7 +27,7 @@ |
||
27 | 27 | ['Date', 'Clicks', 'Cost', 'AdNetworkType'], |
28 | 28 | |
29 | 29 | /* ReportName */ |
30 | - 'Campaign #10002, ' . date('M'), |
|
30 | + 'Campaign #10002, '.date('M'), |
|
31 | 31 | |
32 | 32 | /* ReportType */ |
33 | 33 | 'CUSTOM_REPORT', |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | */ |
61 | 61 | protected function getUri(): string |
62 | 62 | { |
63 | - return $this->getCredentials()->getBaseUrl() . '/json/v5/' . mb_strtolower($this->getServiceName()); |
|
63 | + return $this->getCredentials()->getBaseUrl().'/json/v5/'.mb_strtolower($this->getServiceName()); |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | /** |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | $headers = [ |
72 | 72 | 'Content-Type' => 'application/json; charset=utf-8', |
73 | 73 | 'Accept' => 'application/json', |
74 | - 'Authorization' => 'Bearer ' . $this->getCredentials()->getToken(), |
|
74 | + 'Authorization' => 'Bearer '.$this->getCredentials()->getToken(), |
|
75 | 75 | 'Accept-Language' => $this->getCredentials()->getLanguage() |
76 | 76 | ]; |
77 | 77 |