Completed
Pull Request — master (#75)
by
unknown
02:24
created
src/eXpansion/Framework/Core/Helpers/Translations.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,11 +39,11 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
     public function getTranslations($id, $parameters = [])
79 79
     {
80 80
         $messages = [];
81
-       // $parameters = array_merge($this->replacementPatterns, $parameters);
81
+        // $parameters = array_merge($this->replacementPatterns, $parameters);
82 82
 
83 83
         foreach ($this->supportedLocales as $locale) {
84 84
             $message = $this->getTranslation($id, $parameters, $locale);
Please login to merge, or discard this patch.
src/eXpansion/Bundle/AdminChat/DependencyInjection/AdminChatExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/Helpers/ChatNotification.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,10 +64,10 @@
 block discarded – undo
64 64
      * Usage: used for retrieving partials for chat messages
65 65
      *  * defaults to English locale, without parameters
66 66
      *
67
-     * @param $messageId
67
+     * @param string $messageId
68 68
      * @param array $parameters
69 69
      * @param string $locale
70
-     * @return mixed
70
+     * @return string
71 71
      */
72 72
     public function getMessage($messageId, $parameters = [], $locale = "en")
73 73
     {
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/Model/Gui/ManiaScriptFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,13 +50,13 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/eXpansion/Bundle/Acme/Plugins/TotoPlugin.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,12 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace eXpansion\Bundle\Acme\Plugins;
4 4
 
5
-use eXpansion\Framework\Core\DataProviders\Listener\ChatDataListenerInterface;
6 5
 use eXpansion\Framework\Core\Model\UserGroups\Group;
7 6
 use eXpansion\Framework\Core\Plugins\Gui\ManialinkFactory;
8 7
 use eXpansion\Framework\Core\Plugins\StatusAwarePluginInterface;
9 8
 use eXpansion\Framework\Core\Services\Console;
10
-use eXpansion\Framework\Core\Storage\Data\Player;
11 9
 
12 10
 /**
13 11
  * TotoPlugin is a test plugin to be removed.
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/Model/Gui/Widget.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
122 122
     /**
123 123
      * Recursive search all dome tree in order to find all translatable labels.
124 124
      *
125
-     * @param Container|\FML\ManiaLink $control
125
+     * @param \FML\ManiaLink $control
126 126
      * @param $translations
127 127
      */
128 128
     protected function getDictionaryInformation($control, &$translations)
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/Model/Gui/Factory/LineFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/eXpansion/Bundle/AdminChat/ChatCommand/AbstractConnectionCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
      */
77 77
     public function setPublic($bool)
78 78
     {
79
-        $this->isPublic = (bool)$bool;
79
+        $this->isPublic = (bool) $bool;
80 80
     }
81 81
 
82 82
     /**
Please login to merge, or discard this patch.
src/eXpansion/Bundle/Maps/Plugins/Maps.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
     }
63 63
 
64 64
     /**
65
-     * @return array
65
+     * @return Map[]
66 66
      */
67 67
     public function getMaps()
68 68
     {
Please login to merge, or discard this patch.