Removed use function imports for mocked/stubbed functions, disabling phpcs import rule

While the rule is now disabled, it still is very much valuable to import most pure functions from the core
PHP scope, allowing us some marginal gains on anything that can be inlined by the engine (now or in future).

The rule does not allow selective exclusions, so we will need to keep it off for now.
This commit is contained in:
Marco Pivetta
2020-02-03 18:18:43 +01:00
committed by Ben Ramsey
parent a252f29847
commit dee551deb1
8 changed files with 1 additions and 17 deletions
-1
View File
@@ -241,7 +241,6 @@
<rule ref="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly">
<properties>
<property name="allowFallbackGlobalConstants" value="false"/>
<property name="allowFallbackGlobalFunctions" value="false"/>
<property name="allowFullyQualifiedGlobalConstants" value="false"/>
<property name="allowFullyQualifiedGlobalFunctions" value="false"/>
<property name="allowFullyQualifiedExceptions" value="true"/>
-1
View File
@@ -24,7 +24,6 @@ use Ramsey\Uuid\Type\Time;
use function count;
use function dechex;
use function explode;
use function ini_get;
use function is_float;
use function is_int;
use function str_pad;
+1 -1
View File
@@ -27,7 +27,7 @@ use function dechex;
use function hex2bin;
use function is_int;
use function pack;
use function random_int;
use function sprintf;
use function str_pad;
use function strlen;
-2
View File
@@ -16,8 +16,6 @@ namespace Ramsey\Uuid\Generator;
use Ramsey\Uuid\Exception\RandomSourceException;
use function random_bytes;
/**
* RandomBytesGenerator generates strings of random binary data using the
* built-in `random_bytes()` PHP function
@@ -18,11 +18,8 @@ use Ramsey\Uuid\Exception\DceSecurityException;
use Ramsey\Uuid\Provider\DceSecurityProviderInterface;
use Ramsey\Uuid\Type\IntegerValue;
use function constant;
use function escapeshellarg;
use function ini_get;
use function preg_split;
use function shell_exec;
use function str_getcsv;
use function strpos;
use function strrpos;
-1
View File
@@ -21,7 +21,6 @@ use function bin2hex;
use function dechex;
use function hex2bin;
use function hexdec;
use function random_bytes;
use function str_pad;
use function substr;
-6
View File
@@ -19,16 +19,10 @@ use Ramsey\Uuid\Provider\NodeProviderInterface;
use function array_filter;
use function array_map;
use function array_walk;
use function constant;
use function count;
use function file_get_contents;
use function glob;
use function ini_get;
use function is_array;
use function is_readable;
use function ob_get_clean;
use function ob_start;
use function passthru;
use function preg_match;
use function preg_match_all;
use function reset;
-2
View File
@@ -17,8 +17,6 @@ namespace Ramsey\Uuid\Provider\Time;
use Ramsey\Uuid\Provider\TimeProviderInterface;
use Ramsey\Uuid\Type\Time;
use function gettimeofday;
/**
* SystemTimeProvider retrieves the current time using built-in PHP functions
*/