Completed
Pull Request — master (#104)
by
unknown
03:06
created
src/eXpansion/Bundle/MxKarma/Plugins/MxKarma.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
         Dispatcher $dispatcher
48 48
     ) {
49 49
 
50
-        $this->config = (object)Yaml::parse(file_get_contents('./app/config/plugins/mxkarma.yml'))['parameters'];
50
+        $this->config = (object) Yaml::parse(file_get_contents('./app/config/plugins/mxkarma.yml'))['parameters'];
51 51
         $this->console = $console;
52 52
         $this->dispatcher = $dispatcher;
53 53
         $this->chatNotification = $chatNotification;
Please login to merge, or discard this patch.
src/eXpansion/Bundle/MxKarma/Plugins/Connection.php 4 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -249,7 +249,6 @@
 block discarded – undo
249 249
     }
250 250
 
251 251
     /**
252
-     * @param object $object
253 252
      */
254 253
     public function handleErrors($obj)
255 254
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,6 @@
 block discarded – undo
23 23
 use eXpansion\Framework\Core\Helpers\Http;
24 24
 use eXpansion\Framework\Core\Services\Application\Dispatcher;
25 25
 use Maniaplanet\DedicatedServer\Structures\GameInfos;
26
-use oliverde8\AsynchronousJobs\Job\CallbackCurl;
27 26
 
28 27
 /**
29 28
  * Description of Connection
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 class Connection
34 34
 {
35 35
 
36
-   // private $address = "http://karma.mania-exchange.com/api2/";
36
+    // private $address = "http://karma.mania-exchange.com/api2/";
37 37
     private $address = "http://localhost/index.html?";
38 38
 
39 39
     private $connected = false;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
         );
86 86
     }
87 87
 
88
-    public function xConnect( $answer)
88
+    public function xConnect($answer)
89 89
     {
90 90
 
91 91
         $data = $this->getObject($answer);
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
      */
239 239
     public function getObject($data)
240 240
     {
241
-        $obj = (object)json_decode($data);
241
+        $obj = (object) json_decode($data);
242 242
         if ($obj->success === false) {
243 243
             $this->handleErrors($obj);
244 244
 
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/Helpers/Http.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -6,8 +6,6 @@
 block discarded – undo
6 6
 use eXpansion\Framework\Core\Helpers\Structures\HttpRequest;
7 7
 use eXpansion\Framework\Core\Helpers\Structures\HttpResult;
8 8
 use eXpansion\Framework\Core\Services\Application\AbstractApplication;
9
-use oliverde8\AsynchronousJobs\Job\CallbackCurl;
10
-use oliverde8\AsynchronousJobs\JobRunner;
11 9
 
12 10
 /**
13 11
  * Class Http
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     public function get($url, callable $callback, $additionalData = null, $options = [])
62 62
     {
63 63
         $options[CURLOPT_FOLLOWLOCATION] = true;
64
-        $options[CURLOPT_USERAGENT] = "eXpansionPluginPack v " . AbstractApplication::EXPANSION_VERSION;
64
+        $options[CURLOPT_USERAGENT] = "eXpansionPluginPack v ".AbstractApplication::EXPANSION_VERSION;
65 65
 
66 66
         $additionalData['callback'] = $callback;
67 67
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     {
83 83
         $options[CURLOPT_POST] = true;
84 84
         $options[CURLOPT_FOLLOWLOCATION] = true;
85
-        $options[CURLOPT_USERAGENT] = "eXpansionPluginPack v " . AbstractApplication::EXPANSION_VERSION;
85
+        $options[CURLOPT_USERAGENT] = "eXpansionPluginPack v ".AbstractApplication::EXPANSION_VERSION;
86 86
 
87 87
         $query = '';
88 88
         if (!empty($postFields)) {
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/Helpers/JobRunner/Factory.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,13 +29,13 @@
 block discarded – undo
29 29
     }
30 30
 
31 31
     /**
32
-     * @param $url
33
-     * @param $callback
32
+     * @param string $url
33
+     * @param callable $callback
34 34
      * @param null|mixed $additionalData
35 35
      * @param array $options
36 36
      *
37 37
      * @param array|\stdClass $parameters one dimensional array or \stdClass with post key-value pairs
38
-     * @return CallbackCurl
38
+     * @return Job
39 39
      */
40 40
     public function createCurlJob($url, $callback, $additionalData = null, $options = [], $parameters = [])
41 41
     {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,10 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace eXpansion\Framework\Core\Helpers\JobRunner;
4 4
 
5
-use eXpansion\Framework\Core\DataProviders\Listener\ListenerInterfaceExpApplication;
6 5
 use eXpansion\Framework\Core\DataProviders\Listener\ListenerInterfaceExpTimer;
7 6
 use eXpansion\Framework\Core\Helpers\Structures\HttpRequest;
8
-use eXpansion\Framework\Core\Helpers\Structures\HttpResult;
9 7
 use oliverde8\AsynchronousJobs\Job;
10 8
 use oliverde8\AsynchronousJobs\Job\CallbackCurl;
11 9
 use oliverde8\AsynchronousJobs\JobRunner;
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/Helpers/Structures/HttpRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,6 +30,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/eXpansion/Bundle/Maps/ChatCommand/Remove.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,10 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace eXpansion\Bundle\Maps\ChatCommand;
4 4
 
5
-use eXpansion\Bundle\AdminChat\ChatCommand\AbstractConnectionCommand;
6 5
 use eXpansion\Bundle\Maps\Plugins\ManiaExchange;
7 6
 use eXpansion\Bundle\Maps\Plugins\Maps;
8
-use eXpansion\Bundle\Maps\Services\JukeboxService;
9 7
 use eXpansion\Framework\AdminGroups\Helpers\AdminGroups;
10 8
 use Symfony\Component\Console\Input\InputArgument;
11 9
 use Symfony\Component\Console\Input\InputInterface;
Please login to merge, or discard this patch.
src/eXpansion/Bundle/Maps/Plugins/Gui/ManiaExchangeWindowFactory.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace eXpansion\Bundle\Maps\Plugins\Gui;
4 4
 
5
-use eXpansion\Bundle\Maps\Plugins\Jukebox;
6 5
 use eXpansion\Bundle\Maps\Plugins\ManiaExchange;
7 6
 use eXpansion\Bundle\Maps\Structure\MxInfo;
8 7
 use eXpansion\Framework\Core\Helpers\Http;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -304,7 +304,7 @@
 block discarded – undo
304 304
 
305 305
     public function callbackSearch($login, $params, $args)
306 306
     {
307
-        $params = (object)$params;
307
+        $params = (object) $params;
308 308
 
309 309
         $this->modebox->setSelectedIndex($this->findIndex($this->tracksearch, $params->mode));
310 310
         $this->orderbox->setSelectedIndex($this->findIndex($this->order, $params->order));
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/Storage/MapStorage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.