Completed
Push — master ( 85a630...b97b88 )
by Dmitry
02:41
created
src/ConfigurableTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     {
21 21
         foreach ($options as $option => $value)
22 22
         {
23
-            $setter = 'set' . ucfirst($option);
23
+            $setter = 'set'.ucfirst($option);
24 24
 
25 25
             if (method_exists($this, $setter)) {
26 26
                 $this->$setter($value);
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
             if (!$ignoreMissingOptions) {
36 36
                 throw new InvalidArgumentException(
37
-                    "Property `{$option}` not found in class `" . __CLASS__ . "`."
37
+                    "Property `{$option}` not found in class `".__CLASS__."`."
38 38
                 );
39 39
             }
40 40
         }
Please login to merge, or discard this patch.
src/Transport/JsonTransport.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -84,10 +84,10 @@  discard block
 block discarded – undo
84 84
             if (preg_match('#http[s]*://#u', $this->serviceUrls[$serviceName])) {
85 85
                 return $this->serviceUrls[$serviceName];
86 86
             }
87
-            return $this->baseUrl . $this->serviceUrls[$serviceName];
87
+            return $this->baseUrl.$this->serviceUrls[$serviceName];
88 88
         }
89 89
 
90
-        return $this->baseUrl . '/json/v5/' . strtolower($serviceName);
90
+        return $this->baseUrl.'/json/v5/'.strtolower($serviceName);
91 91
     }
92 92
 
93 93
     /**
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
     private function prepareHeaders(TransportRequest $request)
198 198
     {
199 199
         return array_merge([
200
-            'Authorization' => 'Bearer ' . $request->getCredentials()->getToken(),
200
+            'Authorization' => 'Bearer '.$request->getCredentials()->getToken(),
201 201
             'Client-Login' => $request->getCredentials()->getLogin(),
202 202
             'Use-Operator-Units' => $request->getUseOperatorUnits(),
203 203
             'Accept-Language' => $this->language,
Please login to merge, or discard this patch.
src/Logger/EchoLog.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
         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)
Please login to merge, or discard this patch.
src/Exception/ErrorResponseException.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,9 +41,9 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/ServiceFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public function createService($serviceName, array $options = [])
50 50
     {
51
-        $className = $this->getServiceNamespace() . '\\' . ucfirst($serviceName);
51
+        $className = $this->getServiceNamespace().'\\'.ucfirst($serviceName);
52 52
 
53 53
         // Override service base options
54 54
         $options = array_merge($this->defaultOptions, [
@@ -112,6 +112,6 @@  discard block
 block discarded – undo
112 112
      */
113 113
     protected function getServiceNamespace()
114 114
     {
115
-        return __NAMESPACE__ . '\\' . 'Service';
115
+        return __NAMESPACE__.'\\'.'Service';
116 116
     }
117 117
 }
Please login to merge, or discard this patch.