Completed
Branch v4.x (236e76)
by Dmitry
40:20 queued 32s
created
src/Service/AdExtensions.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,6 @@
 block discarded – undo
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/
Please login to merge, or discard this patch.
src/Service/RetargetingLists.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Client.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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(
Please login to merge, or discard this patch.
src/Exception/ErrorResponseException.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -73,12 +73,12 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
examples/reports.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
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',
Please login to merge, or discard this patch.
src/AbstractService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.