Completed
Push — master ( 4fa17f...b91547 )
by Kirill
03:03
created
var/SymfonyRequirements.php 2 patches
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.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -739,7 +739,7 @@  discard block
 block discarded – undo
739 739
 
740 740
         if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
741 741
             $this->addRecommendation(
742
-                $this->getRealpathCacheSize() >= 5 * 1024 * 1024,
742
+                $this->getRealpathCacheSize() >= 5*1024*1024,
743 743
                 'realpath_cache_size should be at least 5M in php.ini',
744 744
                 'Setting "<strong>realpath_cache_size</strong>" to e.g. "<strong>5242880</strong>" or "<strong>5M</strong>" in php.ini<a href="#phpini">*</a> may improve performance on Windows significantly in some cases.'
745 745
             );
@@ -787,11 +787,11 @@  discard block
 block discarded – undo
787 787
         }
788 788
         switch ($unit) {
789 789
             case 'g':
790
-                return $size * 1024 * 1024 * 1024;
790
+                return $size*1024*1024*1024;
791 791
             case 'm':
792
-                return $size * 1024 * 1024;
792
+                return $size*1024*1024;
793 793
             case 'k':
794
-                return $size * 1024;
794
+                return $size*1024;
795 795
             default:
796 796
                 return (int) $size;
797 797
         }
Please login to merge, or discard this patch.