@@ -47,7 +47,7 @@ |
||
| 47 | 47 | Dispatcher $dispatcher |
| 48 | 48 | ) { |
| 49 | 49 | |
| 50 | - $this->config = (object)Yaml::parse(file_get_contents('./app/config/plugins/mxkarma.yml'))['parameters']; |
|
| 50 | + $this->config = (object) Yaml::parse(file_get_contents('./app/config/plugins/mxkarma.yml'))['parameters']; |
|
| 51 | 51 | $this->console = $console; |
| 52 | 52 | $this->dispatcher = $dispatcher; |
| 53 | 53 | $this->chatNotification = $chatNotification; |
@@ -30,6 +30,6 @@ |
||
| 30 | 30 | */ |
| 31 | 31 | public function __toString() |
| 32 | 32 | { |
| 33 | - return (string)$this->response['response']; |
|
| 33 | + return (string) $this->response['response']; |
|
| 34 | 34 | } |
| 35 | 35 | } |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | public function get($url, callable $callback, $additionalData = null, $options = []) |
| 62 | 62 | { |
| 63 | 63 | $options[CURLOPT_FOLLOWLOCATION] = true; |
| 64 | - $options[CURLOPT_USERAGENT] = "eXpansionPluginPack v " . AbstractApplication::EXPANSION_VERSION; |
|
| 64 | + $options[CURLOPT_USERAGENT] = "eXpansionPluginPack v ".AbstractApplication::EXPANSION_VERSION; |
|
| 65 | 65 | |
| 66 | 66 | $additionalData['callback'] = $callback; |
| 67 | 67 | |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | { |
| 83 | 83 | $options[CURLOPT_POST] = true; |
| 84 | 84 | $options[CURLOPT_FOLLOWLOCATION] = true; |
| 85 | - $options[CURLOPT_USERAGENT] = "eXpansionPluginPack v " . AbstractApplication::EXPANSION_VERSION; |
|
| 85 | + $options[CURLOPT_USERAGENT] = "eXpansionPluginPack v ".AbstractApplication::EXPANSION_VERSION; |
|
| 86 | 86 | |
| 87 | 87 | $query = ''; |
| 88 | 88 | if (!empty($postFields)) { |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | ); |
| 86 | 86 | } |
| 87 | 87 | |
| 88 | - public function xConnect( $answer) |
|
| 88 | + public function xConnect($answer) |
|
| 89 | 89 | { |
| 90 | 90 | |
| 91 | 91 | $data = $this->getObject($answer); |
@@ -238,7 +238,7 @@ discard block |
||
| 238 | 238 | */ |
| 239 | 239 | public function getObject($data) |
| 240 | 240 | { |
| 241 | - $obj = (object)json_decode($data); |
|
| 241 | + $obj = (object) json_decode($data); |
|
| 242 | 242 | if ($obj->success === false) { |
| 243 | 243 | $this->handleErrors($obj); |
| 244 | 244 | |
@@ -304,7 +304,7 @@ |
||
| 304 | 304 | |
| 305 | 305 | public function callbackSearch($login, $params, $args) |
| 306 | 306 | { |
| 307 | - $params = (object)$params; |
|
| 307 | + $params = (object) $params; |
|
| 308 | 308 | |
| 309 | 309 | $this->modebox->setSelectedIndex($this->findIndex($this->tracksearch, $params->mode)); |
| 310 | 310 | $this->orderbox->setSelectedIndex($this->findIndex($this->order, $params->order)); |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | */ |
| 53 | 53 | public function getMap($uid) |
| 54 | 54 | { |
| 55 | - return AssociativeArray::getFromKey($this->maps, $uid, new Map()); |
|
| 55 | + return AssociativeArray::getFromKey($this->maps, $uid, new Map()); |
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | /** |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | */ |
| 65 | 65 | public function getMapByIndex($index) |
| 66 | 66 | { |
| 67 | - $map = array_slice($this->maps, (int)$index, 1, false); |
|
| 67 | + $map = array_slice($this->maps, (int) $index, 1, false); |
|
| 68 | 68 | |
| 69 | 69 | return end($map); |
| 70 | 70 | } |