Completed
Pull Request — master (#95)
by
unknown
05:41
created
src/eXpansion/Framework/Core/Model/Gui/Grid/DataCollection.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
     /**
75 75
      * Get the number of the last page.
76 76
      *
77
-     * @return int
77
+     * @return double
78 78
      */
79 79
     public function getLastPageNumber()
80 80
     {
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/Model/Gui/Widget.php 2 patches
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.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -8,10 +8,7 @@
 block discarded – undo
8 8
 use FML\Controls\Label;
9 9
 use FML\Elements\Dico;
10 10
 use FML\Elements\Format;
11
-use FML\Elements\SimpleScript;
12 11
 use FML\Script\Features\ToggleInterface;
13
-use FML\Script\Script;
14
-use FML\Script\ScriptInclude;
15 12
 use FML\Types\Container;
16 13
 use FML\Types\Renderable;
17 14
 
Please login to merge, or discard this patch.
GameManiaplanet/DataProviders/Listener/ListenerInterfaceMpScriptMatch.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -92,14 +92,14 @@
 block discarded – undo
92 92
      */
93 93
     public function onEndTurnEnd($count, $time);
94 94
 
95
-     /**
96
-     * Callback sent when the "StartRound" section start.
97
-     *
98
-     * @param int $count Each time this section is played, this number is incremented by one
99
-     * @param int $time  Server time when the callback was sent
100
-     *
101
-     * @return mixed
102
-     */
95
+        /**
96
+         * Callback sent when the "StartRound" section start.
97
+         *
98
+         * @param int $count Each time this section is played, this number is incremented by one
99
+         * @param int $time  Server time when the callback was sent
100
+         *
101
+         * @return mixed
102
+         */
103 103
     public function onStartRoundStart($count, $time);
104 104
 
105 105
     /**
Please login to merge, or discard this patch.
src/eXpansion/Framework/AdminGroups/Helpers/AdminGroups.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
     /**
94 94
      * Checks if a login or player has a certain permission or not.
95 95
      *
96
-     * @param string|Player $login Login of the player to check for permission.
96
+     * @param string $login Login of the player to check for permission.
97 97
      * @param string $permission The permission to check for.
98 98
      *
99 99
      * @return bool
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/Plugins/Gui/WindowHelpFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
             },
139 139
             array_filter(
140 140
                 $this->chatCommands->getChatCommands(),
141
-                function ($command) use ($login) {
141
+                function($command) use ($login) {
142 142
                     if ($command instanceof AbstractAdminChatCommand) {
143 143
                         return $command->hasPermission($login);
144 144
                     }
Please login to merge, or discard this patch.
src/eXpansion/Bundle/LocalRecords/Plugins/ChatNotification.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -222,7 +222,7 @@
 block discarded – undo
222 222
                 }
223 223
             }
224 224
 
225
-            return '-' . $securedBy;
225
+            return '-'.$securedBy;
226 226
         }
227 227
 
228 228
         return $securedBy = $this->timeFormater->timeToText(0);
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/Plugins/Gui/WindowHelpDetailsFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -69,8 +69,8 @@  discard block
 block discarded – undo
69 69
         /** @var AbstractChatCommand $command */
70 70
         $command = $manialink->getData('command');
71 71
 
72
-        $column1Width = $manialink->getContentFrame()->getWidth() * (2/3);
73
-        $column2Width = $manialink->getContentFrame()->getWidth() * (1/3) - 1;
72
+        $column1Width = $manialink->getContentFrame()->getWidth() * (2 / 3);
73
+        $column2Width = $manialink->getContentFrame()->getWidth() * (1 / 3) - 1;
74 74
 
75 75
         /*
76 76
          * COLUMN 1 Description of the chat command
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
             $column1Width - 21,
125 125
             [
126 126
                 [
127
-                    'text' => "Use '/" . $this->currentCommand->getCommand() . " -h' to get help on the usage of the command.",
127
+                    'text' => "Use '/".$this->currentCommand->getCommand()." -h' to get help on the usage of the command.",
128 128
                     'width' => 1,
129 129
                     'translatable' => false
130 130
 
Please login to merge, or discard this patch.
src/eXpansion/Framework/Gui/Layouts/layoutLine.php 2 patches
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -28,8 +28,8 @@  discard block
 block discarded – undo
28 28
 
29 29
     /**
30 30
      * layoutLine constructor.
31
-     * @param $startX
32
-     * @param $startY
31
+     * @param integer $startX
32
+     * @param integer $startY
33 33
      * @param Control[] $elements
34 34
      * @param $margin
35 35
      * @throws \Exception
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     }
112 112
 
113 113
     /**
114
-     * @return mixed
114
+     * @return integer
115 115
      */
116 116
     public function getX()
117 117
     {
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
     }
120 120
 
121 121
     /**
122
-     * @return mixed
122
+     * @return integer
123 123
      */
124 124
     public function getY()
125 125
     {
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
     }
128 128
 
129 129
     /**
130
-     * @return float
130
+     * @return integer
131 131
      */
132 132
     public function getWidth()
133 133
     {
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
     }
144 144
 
145 145
     /**
146
-     * @return float
146
+     * @return integer
147 147
      */
148 148
     public function getHeight()
149 149
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use FML\Controls\Control;
6 6
 use FML\Controls\Frame;
7 7
 use FML\Script\Features\ScriptFeature;
8
-use FML\Types\Container;
9 8
 use FML\Types\Renderable;
10 9
 use FML\Types\ScriptFeatureable;
11 10
 
Please login to merge, or discard this patch.