Completed
Branch master (44388d)
by De Cramer
09:47
created
src/eXpansion/Core/Storage/Data/Player.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -428,7 +428,7 @@  discard block
 block discarded – undo
428 428
     }
429 429
 
430 430
     /**
431
-     * @return \string[]
431
+     * @return string[]
432 432
      */
433 433
     public function getAllies()
434 434
     {
@@ -460,7 +460,7 @@  discard block
 block discarded – undo
460 460
     }
461 461
 
462 462
     /**
463
-     * @return \int[]
463
+     * @return integer[]
464 464
      */
465 465
     public function getBestCheckpoints()
466 466
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -506,7 +506,7 @@
 block discarded – undo
506 506
      */
507 507
     function merge(\Maniaplanet\DedicatedServer\Structures\Player $data)
508 508
     {
509
-        foreach($data as $key => $value) {
509
+        foreach ($data as $key => $value) {
510 510
             $this->$key = $value;
511 511
         }
512 512
 
Please login to merge, or discard this patch.
var/SymfonyRequirements.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
      * Adds a mandatory requirement in form of a php.ini configuration.
224 224
      *
225 225
      * @param string        $cfgName           The configuration name used for ini_get()
226
-     * @param bool|callback $evaluation        Either a boolean indicating whether the configuration should evaluate to true or false,
226
+     * @param boolean|string $evaluation        Either a boolean indicating whether the configuration should evaluate to true or false,
227 227
      *                                         or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement
228 228
      * @param bool          $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false.
229 229
      *                                         This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin.
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
      * Adds an optional recommendation in form of a php.ini configuration.
242 242
      *
243 243
      * @param string        $cfgName           The configuration name used for ini_get()
244
-     * @param bool|callback $evaluation        Either a boolean indicating whether the configuration should evaluate to true or false,
244
+     * @param string|false $evaluation        Either a boolean indicating whether the configuration should evaluate to true or false,
245 245
      *                                         or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement
246 246
      * @param bool          $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false.
247 247
      *                                         This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin.
Please login to merge, or discard this patch.
web/config.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -382,7 +382,10 @@  discard block
 block discarded – undo
382 382
                         <?php if ($hasMinorProblems): ?>
383 383
                             <h2>Recommendations</h2>
384 384
                             <p>
385
-                                <?php if ($hasMajorProblems): ?>Additionally, to<?php else: ?>To<?php endif; ?> enhance your Symfony experience,
385
+                                <?php if ($hasMajorProblems): ?>Additionally, to<?php else {
386
+    : ?>To<?php endif;
387
+}
388
+?> enhance your Symfony experience,
386 389
                                 it’s recommended that you fix the following:
387 390
                             </p>
388 391
                             <ol>
@@ -398,9 +401,12 @@  discard block
 block discarded – undo
398 401
                             <p id="phpini">*
399 402
                                 <?php if ($symfonyRequirements->getPhpIniConfigPath()): ?>
400 403
                                     Changes to the <strong>php.ini</strong> file must be done in "<strong><?php echo $symfonyRequirements->getPhpIniConfigPath() ?></strong>".
401
-                                <?php else: ?>
404
+                                <?php else {
405
+    : ?>
402 406
                                     To change settings, create a "<strong>php.ini</strong>".
403
-                                <?php endif; ?>
407
+                                <?php endif;
408
+}
409
+?>
404 410
                             </p>
405 411
                         <?php endif; ?>
406 412
 
Please login to merge, or discard this patch.
src/eXpansion/Core/DependencyInjection/Compiler/DataProviderPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
         $dataProviders = $container->findTaggedServiceIds('expansion.data_provider.listener');
55 55
         foreach ($dataProviders as $id => $tags) {
56 56
             foreach ($tags as $attributes) {
57
-                $providerData[$id]['listener'][$attributes['event_name']] =  $attributes['method'];
57
+                $providerData[$id]['listener'][$attributes['event_name']] = $attributes['method'];
58 58
             }
59 59
         }
60 60
 
Please login to merge, or discard this patch.
src/eXpansion/Core/Services/Application.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -78,12 +78,12 @@  discard block
 block discarded – undo
78 78
 
79 79
         $output->writeln("And takeoff");
80 80
 
81
-        while(true) {
81
+        while (true) {
82 82
             $this->dataProviderManager->dispatch(self::EVENT_PRE_LOOP, []);
83 83
 
84 84
             $calls = $this->connection->executeCallbacks();
85
-            if(!empty($calls)) {
86
-                foreach($calls as $call) {
85
+            if (!empty($calls)) {
86
+                foreach ($calls as $call) {
87 87
                     $method = preg_replace('/^[[:alpha:]]+\./', '', $call[0]); // remove trailing "Whatever."
88 88
                     $params = (array) $call[1];
89 89
 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
             do {
99 99
                 $nextCycleStart += $cycleTime;
100 100
             }
101
-            while($nextCycleStart < $endCycleTime);
101
+            while ($nextCycleStart < $endCycleTime);
102 102
             @time_sleep_until($nextCycleStart);
103 103
         }
104 104
     }
Please login to merge, or discard this patch.
src/eXpansion/Core/Services/DataProviderManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@
 block discarded – undo
153 153
      *
154 154
      * @throws UncompatibleException
155 155
      */
156
-    public function registerPlugin($provider, $pluginId,  $title, $mode, $script)
156
+    public function registerPlugin($provider, $pluginId, $title, $mode, $script)
157 157
     {
158 158
         /** @var AbstractDataProvider $providerService */
159 159
         $providerService = $this->container->get($this->getCompatibleProviderId($provider, $title, $mode, $script));
Please login to merge, or discard this patch.
src/eXpansion/Core/Services/PluginManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         foreach ($this->plugins as $pluginId => $providers) {
57 57
             $isCompatible = true;
58 58
             foreach ($providers as $provider) {
59
-                if(!$this->dataProviderManager->isProviderCompatible($provider, $title, $mode, $script)) {
59
+                if (!$this->dataProviderManager->isProviderCompatible($provider, $title, $mode, $script)) {
60 60
                     $isCompatible = false;
61 61
                     break;
62 62
                 }
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
         foreach ($this->plugins[$pluginId] as $provider)
88 88
         {
89
-            $this->dataProviderManager->registerPlugin($provider, $pluginId,  $title, $mode, $script);
89
+            $this->dataProviderManager->registerPlugin($provider, $pluginId, $title, $mode, $script);
90 90
         }
91 91
     }
92 92
 
Please login to merge, or discard this patch.