@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | return false; |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | - $class = '\leocata\M1\Methods\Callback\\'.ucfirst($data->method); |
|
| 65 | + $class = '\leocata\M1\Methods\Callback\\' . ucfirst($data->method); |
|
| 66 | 66 | |
| 67 | 67 | if (!class_exists($class)) { |
| 68 | 68 | throw new MethodNotFound(sprintf( |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | /** @var \leocata\M1\Abstracts\CallbackMethods $method */ |
| 75 | 75 | $method = new $class(); |
| 76 | 76 | $method->import($data->params ?? new \stdClass()); |
| 77 | - self::$callbacks += ['after'.$method->getMethodName() => $method]; |
|
| 77 | + self::$callbacks += ['after' . $method->getMethodName() => $method]; |
|
| 78 | 78 | |
| 79 | 79 | return $method; |
| 80 | 80 | } |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | public function getBasicAuth(): array |
| 38 | 38 | { |
| 39 | 39 | return [ |
| 40 | - 'Authorization' => 'Basic '.base64_encode($this->username.':'.$this->password), |
|
| 40 | + 'Authorization' => 'Basic ' . base64_encode($this->username . ':' . $this->password), |
|
| 41 | 41 | ]; |
| 42 | 42 | } |
| 43 | 43 | } |