Completed
Pull Request — master (#37)
by De Cramer
08:24
created
src/eXpansion/Bundle/Emotes/ChatCommand/BasicEmote.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      * BasicEmote constructor.
29 29
      *
30 30
      * @param string $command The chat command
31
-     * @param string $message The emote message to send
31
+     * @param string $nbMessages The emote message to send
32 32
      * @param ChatNotification $chatNotification
33 33
      * @param array $aliases
34 34
      * @param bool $parametersAsArray
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,8 +45,8 @@
 block discarded – undo
45 45
         $this->chatNotification = $chatNotification;
46 46
         $this->playerStorage = $playerStorage;
47 47
 
48
-        for($i = 1; $i <= $nbMessages; $i++) {
49
-            $this->messages[] = "expansion_emotes.$command" . $i;
48
+        for ($i = 1; $i <= $nbMessages; $i++) {
49
+            $this->messages[] = "expansion_emotes.$command".$i;
50 50
         }
51 51
     }
52 52
 
Please login to merge, or discard this patch.
src/eXpansion/Core/Services/ChatCommands.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     /**
63 63
      * Get a chat command.
64 64
      *
65
-     * @param $command
65
+     * @param string $command
66 66
      * @return ChatCommandInterface|null
67 67
      */
68 68
     public function getChatCommand($command)
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
     /**
74 74
      *
75
-     * @param $pluginId
75
+     * @param string $pluginId
76 76
      * @param $cmdTxt
77 77
      * @param ChatCommandInterface $command
78 78
      *
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     {
33 33
         $commands = $pluginService->getChatCommands();
34 34
 
35
-        foreach($commands as $command)
35
+        foreach ($commands as $command)
36 36
         {
37 37
             $this->addCommand($pluginId, $command->getCommand(), $command);
38 38
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public function deletePlugin($pluginId)
51 51
     {
52
-        if(!isset($this->commandPlugin[$pluginId])) {
52
+        if (!isset($this->commandPlugin[$pluginId])) {
53 53
             return;
54 54
         }
55 55
 
@@ -87,6 +87,6 @@  discard block
 block discarded – undo
87 87
         }
88 88
 
89 89
         $this->commands[$cmdTxt] = $command;
90
-        $this->commandPlugin[$pluginId][$cmdTxt]  = $command;
90
+        $this->commandPlugin[$pluginId][$cmdTxt] = $command;
91 91
     }
92 92
 }
93 93
\ No newline at end of file
Please login to merge, or discard this patch.
src/eXpansion/Bundle/Acme/Plugins/Test.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,12 +93,12 @@
 block discarded – undo
93 93
 
94 94
     public function onPreLoop()
95 95
     {
96
-      // do nothing
96
+        // do nothing
97 97
     }
98 98
 
99 99
     public function onPostLoop()
100 100
     {
101
-      // do nothing
101
+        // do nothing
102 102
     }
103 103
 
104 104
 
Please login to merge, or discard this patch.
src/eXpansion/Core/DataProviders/ChatCommandDataProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
         $parameter = count($cmdAndArgs) > 1 ? $cmdAndArgs[1] : '';
63 63
 
64 64
         // Internal dedicated serer command to ignore.
65
-        if($cmdTxt === 'version') {
65
+        if ($cmdTxt === 'version') {
66 66
             return;
67 67
         }
68 68
 
Please login to merge, or discard this patch.
src/eXpansion/Core/Helpers/ChatNotification.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,13 +36,13 @@
 block discarded – undo
36 36
         Translations $translations,
37 37
         PlayerStorage $playerStorage,
38 38
         $colorCodes
39
-    ){
39
+    ) {
40 40
         $this->connection = $connection;
41 41
         $this->translations = $translations;
42 42
         $this->playerStorage = $playerStorage;
43 43
 
44 44
         foreach ($colorCodes as $code => $colorCode) {
45
-            $this->colorCodes["{" . $code . "}"] = '$z' . $colorCode;
45
+            $this->colorCodes["{".$code."}"] = '$z'.$colorCode;
46 46
         }
47 47
     }
48 48
 
Please login to merge, or discard this patch.