@@ -39,11 +39,11 @@ |
||
| 39 | 39 | $this->supportedLocales = $supportedLocales; |
| 40 | 40 | |
| 41 | 41 | foreach ($colorCodes as $code => $colorCode) { |
| 42 | - $this->replacementPatterns["{" . $code . "}"] = '$z' . $colorCode; |
|
| 42 | + $this->replacementPatterns["{".$code."}"] = '$z'.$colorCode; |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | foreach ($glyphIcons as $name => $icon) { |
| 46 | - $this->replacementPatterns["|" . $name . "|"] = $icon; |
|
| 46 | + $this->replacementPatterns["|".$name."|"] = $icon; |
|
| 47 | 47 | } |
| 48 | 48 | } |
| 49 | 49 | |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | */ |
| 20 | 20 | public function load(array $configs, ContainerBuilder $container) |
| 21 | 21 | { |
| 22 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 22 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 23 | 23 | $loader->load('chat_commands.yml'); |
| 24 | 24 | $loader->load('plugins.yml'); |
| 25 | 25 | } |
@@ -50,13 +50,13 @@ |
||
| 50 | 50 | { |
| 51 | 51 | $className = $this->className; |
| 52 | 52 | |
| 53 | - $filePath = $this->fileLocator->locate('@' . $this->relativePath); |
|
| 53 | + $filePath = $this->fileLocator->locate('@'.$this->relativePath); |
|
| 54 | 54 | |
| 55 | 55 | return new $className($filePath, $params); |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | public function getFileLocation() { |
| 59 | - return $this->fileLocator->locate('@' . $this->relativePath); |
|
| 59 | + return $this->fileLocator->locate('@'.$this->relativePath); |
|
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | } |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | */ |
| 78 | 78 | public function setPublic($bool) |
| 79 | 79 | { |
| 80 | - $this->isPublic = (bool)$bool; |
|
| 80 | + $this->isPublic = (bool) $bool; |
|
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | } |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | public function create($totalWidth, $columns, $index = 0) |
| 56 | 56 | { |
| 57 | 57 | $totalCoef |
| 58 | - = ($totalWidth - 1) / array_reduce($columns, function ($carry, $item) { |
|
| 58 | + = ($totalWidth - 1) / array_reduce($columns, function($carry, $item) { |
|
| 59 | 59 | return $carry + $item['width']; |
| 60 | 60 | }); |
| 61 | 61 | |