| @@ -27,7 +27,7 @@ | ||
| 27 | 27 |          if (!$this->checkLevel($level)) { | 
| 28 | 28 |              throw new InvalidArgumentException("Invalid log level {$level}"); | 
| 29 | 29 | } | 
| 30 | - echo "[$level] $message" . PHP_EOL; | |
| 30 | + echo "[$level] $message".PHP_EOL; | |
| 31 | 31 | } | 
| 32 | 32 | |
| 33 | 33 | private function checkLevel($level) | 
| @@ -41,9 +41,9 @@ | ||
| 41 | 41 | */ | 
| 42 | 42 | public function __toString() | 
| 43 | 43 |      { | 
| 44 | -        $str = 'Exception ' . __CLASS__ . " code {$this->code} with message '{$this->message}' in `{$this->file}`" . PHP_EOL; | |
| 45 | - $str .= 'Details: ' . $this->details . PHP_EOL; | |
| 46 | - $str .= 'Stack trace:' . PHP_EOL . $this->getTraceAsString(); | |
| 44 | +        $str = 'Exception '.__CLASS__." code {$this->code} with message '{$this->message}' in `{$this->file}`".PHP_EOL; | |
| 45 | + $str .= 'Details: '.$this->details.PHP_EOL; | |
| 46 | + $str .= 'Stack trace:'.PHP_EOL.$this->getTraceAsString(); | |
| 47 | 47 | return $str; | 
| 48 | 48 | } | 
| 49 | 49 | } | 
| @@ -18,7 +18,7 @@ discard block | ||
| 18 | 18 | public function setOptions(array $options, $ignoreMissingOptions = false) | 
| 19 | 19 |      { | 
| 20 | 20 |          foreach ($options as $option => $value) { | 
| 21 | - $setter = 'set' . ucfirst($option); | |
| 21 | + $setter = 'set'.ucfirst($option); | |
| 22 | 22 | |
| 23 | 23 |              if (method_exists($this, $setter)) { | 
| 24 | 24 | $this->$setter($value); | 
| @@ -32,7 +32,7 @@ discard block | ||
| 32 | 32 | |
| 33 | 33 |              if (!$ignoreMissingOptions) { | 
| 34 | 34 | throw new InvalidArgumentException( | 
| 35 | -                    "Property `{$option}` not found in class `" . __CLASS__ . "`." | |
| 35 | +                    "Property `{$option}` not found in class `".__CLASS__."`." | |
| 36 | 36 | ); | 
| 37 | 37 | } | 
| 38 | 38 | } | 
| @@ -98,10 +98,10 @@ discard block | ||
| 98 | 98 |              if (preg_match('#http[s]*://#u', $this->serviceUrls[$serviceName])) { | 
| 99 | 99 | return $this->serviceUrls[$serviceName]; | 
| 100 | 100 | } | 
| 101 | - return $this->baseUrl . $this->serviceUrls[$serviceName]; | |
| 101 | + return $this->baseUrl.$this->serviceUrls[$serviceName]; | |
| 102 | 102 | } | 
| 103 | 103 | |
| 104 | - return $this->baseUrl . '/json/v5/' . strtolower($serviceName); | |
| 104 | + return $this->baseUrl.'/json/v5/'.strtolower($serviceName); | |
| 105 | 105 | } | 
| 106 | 106 | |
| 107 | 107 | /** | 
| @@ -218,7 +218,7 @@ discard block | ||
| 218 | 218 | private function prepareHeaders(RequestInterface $request) | 
| 219 | 219 |      { | 
| 220 | 220 | $headers = array_merge([ | 
| 221 | - 'Authorization' => 'Bearer ' . $request->getCredentials()->getToken(), | |
| 221 | + 'Authorization' => 'Bearer '.$request->getCredentials()->getToken(), | |
| 222 | 222 | 'Client-Login' => $request->getCredentials()->getLogin(), | 
| 223 | 223 | ], $this->headers, $request->getHeaders()); | 
| 224 | 224 | |
| @@ -22,7 +22,7 @@ | ||
| 22 | 22 | ['Date', 'Clicks', 'Cost', 'AdNetworkType'], | 
| 23 | 23 | |
| 24 | 24 | /* Report name */ | 
| 25 | -    'Campaign #10002, ' . date('M'), | |
| 25 | +    'Campaign #10002, '.date('M'), | |
| 26 | 26 | |
| 27 | 27 | /* Report type */ | 
| 28 | 28 | 'CUSTOM_REPORT', | 
| @@ -23,7 +23,6 @@ | ||
| 23 | 23 | * @throws Exception | 
| 24 | 24 | * | 
| 25 | 25 | * @see https://tech.yandex.ru/direct/doc/ref-v5/retargetinglists/add-docpage/ | 
| 26 | - | |
| 27 | 26 | */ | 
| 28 | 27 | public function add($RetargetingLists) | 
| 29 | 28 |      { | 
| @@ -21,7 +21,7 @@ discard block | ||
| 21 | 21 | /** | 
| 22 | 22 | * @var string | 
| 23 | 23 | */ | 
| 24 | - protected $serviceNamespace = __NAMESPACE__ . '\\' . 'Service'; | |
| 24 | + protected $serviceNamespace = __NAMESPACE__.'\\'.'Service'; | |
| 25 | 25 | |
| 26 | 26 | /** | 
| 27 | 27 | * @inheritdoc | 
| @@ -38,7 +38,7 @@ discard block | ||
| 38 | 38 |              throw new InvalidArgumentException('Credentials is required.'); | 
| 39 | 39 | } | 
| 40 | 40 | |
| 41 | - $className = $this->getServiceNamespace() . '\\' . ucfirst($serviceName); | |
| 41 | + $className = $this->getServiceNamespace().'\\'.ucfirst($serviceName); | |
| 42 | 42 | |
| 43 | 43 |          if (!class_exists($className)) { | 
| 44 | 44 |              throw new ServiceNotFoundException("Service class `{$className}` is not found."); | 
| @@ -48,7 +48,7 @@ discard block | ||
| 48 | 48 | |
| 49 | 49 |          if (!$instance instanceof Service) { | 
| 50 | 50 | throw new ServiceNotFoundException( | 
| 51 | -                "Service class `{$className}` is not instance of `" . Service::class . "`." | |
| 51 | +                "Service class `{$className}` is not instance of `".Service::class."`." | |
| 52 | 52 | ); | 
| 53 | 53 | } | 
| 54 | 54 | |