@@ -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 | } |
@@ -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 | } |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | PlayerStorage $playerStorage |
| 80 | 80 | ) { |
| 81 | 81 | |
| 82 | - $this->config = (object)Yaml::parse(file_get_contents('./app/config/plugins/mxkarma.yml'))['parameters']; |
|
| 82 | + $this->config = (object) Yaml::parse(file_get_contents('./app/config/plugins/mxkarma.yml'))['parameters']; |
|
| 83 | 83 | $this->console = $console; |
| 84 | 84 | $this->dispatcher = $dispatcher; |
| 85 | 85 | $this->chatNotification = $chatNotification; |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | "vote" => $vote, |
| 98 | 98 | ]; |
| 99 | 99 | |
| 100 | - $this->changedVotes[$player->getLogin()] = new MxVote((object)$obj); |
|
| 100 | + $this->changedVotes[$player->getLogin()] = new MxVote((object) $obj); |
|
| 101 | 101 | $this->chatNotification->sendMessage('expansion_mxkarma.chat.votechanged', $login); |
| 102 | 102 | } |
| 103 | 103 | |
@@ -15,6 +15,6 @@ |
||
| 15 | 15 | public function __construct($obj) |
| 16 | 16 | { |
| 17 | 17 | $this->login = $obj->login; |
| 18 | - $this->vote = (int)$obj->vote; |
|
| 18 | + $this->vote = (int) $obj->vote; |
|
| 19 | 19 | } |
| 20 | 20 | } |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | $curlJob->setUrl($url); |
| 45 | 45 | $curlJob->setOptions($options); |
| 46 | 46 | if (is_object($parameters)) { |
| 47 | - $parameters = (array)$parameters; |
|
| 47 | + $parameters = (array) $parameters; |
|
| 48 | 48 | } |
| 49 | 49 | $curlJob->setParameters($parameters); |
| 50 | 50 | $curlJob->setAdditionalData($additionalData); |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | */ |
| 51 | 51 | public function request() |
| 52 | 52 | { |
| 53 | - $this->connection->triggerModeScriptEvent("Trackmania.GetScores", ["responseid" => (string)time()]); |
|
| 53 | + $this->connection->triggerModeScriptEvent("Trackmania.GetScores", ["responseid" => (string) time()]); |
|
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | /** |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | * |
| 36 | 36 | * @return ItemInterface |
| 37 | 37 | */ |
| 38 | - public function create($class, $id, $path, $label, $permission, $options =[]) |
|
| 38 | + public function create($class, $id, $path, $label, $permission, $options = []) |
|
| 39 | 39 | { |
| 40 | 40 | foreach ($this->itemFactories as $itemFactory) { |
| 41 | 41 | if ($itemFactory->supports($class)) { |
@@ -37,5 +37,5 @@ |
||
| 37 | 37 | * |
| 38 | 38 | * @return ItemInterface |
| 39 | 39 | */ |
| 40 | - public function build($class, $id, $path, $label, $permission, $options =[]); |
|
| 40 | + public function build($class, $id, $path, $label, $permission, $options = []); |
|
| 41 | 41 | } |
| 42 | 42 | \ No newline at end of file |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | $posY, |
| 44 | 44 | WidgetFactoryContext $context, |
| 45 | 45 | MenuContentFactory $menuContentFactory |
| 46 | - ){ |
|
| 46 | + ) { |
|
| 47 | 47 | parent::__construct($name, $sizeX, $sizeY, $posX, $posY, $context); |
| 48 | 48 | |
| 49 | 49 | $this->menuContentFactory = $menuContentFactory; |