mirror of
https://github.com/dg/dibi.git
synced 2025-08-06 06:07:39 +02:00
optimized global function calls
This commit is contained in:
@@ -13,6 +13,7 @@ use Dibi;
|
||||
use Nette;
|
||||
use Nette\Schema\Expect;
|
||||
use Tracy;
|
||||
use function is_array;
|
||||
|
||||
|
||||
/**
|
||||
|
@@ -13,6 +13,7 @@ use Dibi;
|
||||
use Dibi\Event;
|
||||
use Dibi\Helpers;
|
||||
use Tracy;
|
||||
use function count, is_string, strlen;
|
||||
|
||||
|
||||
/**
|
||||
|
@@ -11,6 +11,8 @@ namespace Dibi;
|
||||
|
||||
use JetBrains\PhpStorm\Language;
|
||||
use Traversable;
|
||||
use function array_key_exists, is_array, sprintf;
|
||||
use const PHP_SAPI;
|
||||
|
||||
|
||||
/**
|
||||
|
@@ -9,6 +9,8 @@ declare(strict_types=1);
|
||||
|
||||
namespace Dibi;
|
||||
|
||||
use function func_get_args, is_array, strpbrk;
|
||||
|
||||
|
||||
/**
|
||||
* Default implementation of IDataSource.
|
||||
|
@@ -11,6 +11,7 @@ namespace Dibi\Drivers;
|
||||
|
||||
use Dibi;
|
||||
use Dibi\Helpers;
|
||||
use function is_resource;
|
||||
|
||||
|
||||
/**
|
||||
|
@@ -11,6 +11,7 @@ namespace Dibi\Drivers;
|
||||
|
||||
use Dibi;
|
||||
use Dibi\Helpers;
|
||||
use function is_resource;
|
||||
|
||||
|
||||
/**
|
||||
|
@@ -10,6 +10,8 @@ declare(strict_types=1);
|
||||
namespace Dibi\Drivers;
|
||||
|
||||
use Dibi;
|
||||
use function in_array;
|
||||
use const MYSQLI_REPORT_OFF, MYSQLI_STORE_RESULT, MYSQLI_USE_RESULT, PREG_SET_ORDER;
|
||||
|
||||
|
||||
/**
|
||||
|
@@ -10,6 +10,7 @@ declare(strict_types=1);
|
||||
namespace Dibi\Drivers;
|
||||
|
||||
use Dibi;
|
||||
use const MYSQLI_TYPE_LONG, MYSQLI_TYPE_SHORT, MYSQLI_TYPE_TIME, MYSQLI_TYPE_TINY;
|
||||
|
||||
|
||||
/**
|
||||
|
@@ -10,6 +10,7 @@ declare(strict_types=1);
|
||||
namespace Dibi\Drivers;
|
||||
|
||||
use Dibi;
|
||||
use function is_resource;
|
||||
|
||||
|
||||
/**
|
||||
|
@@ -10,6 +10,7 @@ declare(strict_types=1);
|
||||
namespace Dibi\Drivers;
|
||||
|
||||
use Dibi;
|
||||
use function is_resource;
|
||||
|
||||
|
||||
/**
|
||||
|
@@ -10,6 +10,7 @@ declare(strict_types=1);
|
||||
namespace Dibi\Drivers;
|
||||
|
||||
use Dibi;
|
||||
use function in_array, is_resource;
|
||||
|
||||
|
||||
/**
|
||||
|
@@ -10,6 +10,7 @@ declare(strict_types=1);
|
||||
namespace Dibi\Drivers;
|
||||
|
||||
use Dibi;
|
||||
use function is_resource;
|
||||
|
||||
|
||||
/**
|
||||
|
@@ -12,6 +12,7 @@ namespace Dibi\Drivers;
|
||||
use Dibi;
|
||||
use Dibi\Helpers;
|
||||
use PDO;
|
||||
use function sprintf;
|
||||
|
||||
|
||||
/**
|
||||
|
@@ -12,6 +12,7 @@ namespace Dibi\Drivers;
|
||||
use Dibi;
|
||||
use Dibi\Helpers;
|
||||
use PgSql;
|
||||
use function in_array, is_array, is_resource, strlen;
|
||||
|
||||
|
||||
/**
|
||||
|
@@ -12,6 +12,7 @@ namespace Dibi\Drivers;
|
||||
use Dibi;
|
||||
use Dibi\Helpers;
|
||||
use PgSql;
|
||||
use function is_resource;
|
||||
|
||||
|
||||
/**
|
||||
|
@@ -11,6 +11,7 @@ namespace Dibi\Drivers;
|
||||
|
||||
use Dibi;
|
||||
use Dibi\Helpers;
|
||||
use const SQLITE3_ASSOC, SQLITE3_BLOB, SQLITE3_FLOAT, SQLITE3_INTEGER, SQLITE3_NULL, SQLITE3_NUM, SQLITE3_TEXT;
|
||||
|
||||
|
||||
/**
|
||||
|
@@ -11,6 +11,7 @@ namespace Dibi\Drivers;
|
||||
|
||||
use Dibi;
|
||||
use Dibi\Helpers;
|
||||
use function is_resource, sprintf;
|
||||
|
||||
|
||||
/**
|
||||
|
@@ -10,6 +10,7 @@ declare(strict_types=1);
|
||||
namespace Dibi\Drivers;
|
||||
|
||||
use Dibi;
|
||||
use function sprintf;
|
||||
|
||||
|
||||
/**
|
||||
|
@@ -10,6 +10,7 @@ declare(strict_types=1);
|
||||
namespace Dibi\Drivers;
|
||||
|
||||
use Dibi;
|
||||
use function is_resource;
|
||||
|
||||
|
||||
/**
|
||||
|
@@ -9,6 +9,9 @@ declare(strict_types=1);
|
||||
|
||||
namespace Dibi;
|
||||
|
||||
use function count, dirname, microtime, preg_match, str_starts_with, strtoupper, trim;
|
||||
use const DIRECTORY_SEPARATOR;
|
||||
|
||||
|
||||
/**
|
||||
* Profiler & logger event.
|
||||
|
@@ -9,6 +9,8 @@ declare(strict_types=1);
|
||||
|
||||
namespace Dibi;
|
||||
|
||||
use function array_key_exists, count, func_get_args, is_array, is_string;
|
||||
|
||||
|
||||
/**
|
||||
* SQL builder via fluent interfaces.
|
||||
|
@@ -9,6 +9,9 @@ declare(strict_types=1);
|
||||
|
||||
namespace Dibi;
|
||||
|
||||
use function array_map, array_unique, explode, fclose, fgets, fopen, fstat, getenv, htmlspecialchars, is_float, is_int, is_string, levenshtein, max, mb_strlen, ob_end_flush, ob_get_clean, ob_start, preg_match, preg_replace, preg_replace_callback, rtrim, set_time_limit, str_ends_with, str_repeat, str_starts_with, strlen, strtoupper, substr, trim, wordwrap;
|
||||
use const PHP_SAPI;
|
||||
|
||||
|
||||
class Helpers
|
||||
{
|
||||
|
@@ -10,6 +10,8 @@ declare(strict_types=1);
|
||||
namespace Dibi\Loggers;
|
||||
|
||||
use Dibi;
|
||||
use function sprintf;
|
||||
use const FILE_APPEND, LOCK_EX;
|
||||
|
||||
|
||||
/**
|
||||
|
@@ -10,6 +10,7 @@ declare(strict_types=1);
|
||||
namespace Dibi\Reflection;
|
||||
|
||||
use Dibi;
|
||||
use function array_values, strtolower;
|
||||
|
||||
|
||||
/**
|
||||
|
@@ -10,6 +10,7 @@ declare(strict_types=1);
|
||||
namespace Dibi\Reflection;
|
||||
|
||||
use Dibi;
|
||||
use function array_values, strtolower;
|
||||
|
||||
|
||||
/**
|
||||
|
@@ -10,6 +10,7 @@ declare(strict_types=1);
|
||||
namespace Dibi\Reflection;
|
||||
|
||||
use Dibi;
|
||||
use function array_values, strtolower;
|
||||
|
||||
|
||||
/**
|
||||
|
@@ -9,6 +9,9 @@ declare(strict_types=1);
|
||||
|
||||
namespace Dibi;
|
||||
|
||||
use function array_keys, array_pop, count, explode, is_float, is_string, json_decode, ltrim, preg_match, preg_split, property_exists, reset, rtrim, str_contains, str_replace, str_starts_with, strpos;
|
||||
use const PREG_SPLIT_DELIM_CAPTURE, PREG_SPLIT_NO_EMPTY;
|
||||
|
||||
|
||||
/**
|
||||
* Query result.
|
||||
|
@@ -9,6 +9,8 @@ declare(strict_types=1);
|
||||
|
||||
namespace Dibi;
|
||||
|
||||
use function array_keys, count, str_starts_with;
|
||||
|
||||
|
||||
/**
|
||||
* Result set single row.
|
||||
|
@@ -9,6 +9,8 @@ declare(strict_types=1);
|
||||
|
||||
namespace Dibi;
|
||||
|
||||
use function array_filter, array_keys, array_splice, array_values, count, explode, get_debug_type, gettype, implode, is_array, is_bool, is_float, is_int, is_numeric, is_object, is_scalar, is_string, iterator_to_array, key, ltrim, number_format, preg_last_error, preg_match, preg_replace_callback, reset, rtrim, str_contains, str_replace, strcspn, strlen, strncasecmp, strtoupper, substr, trim;
|
||||
|
||||
|
||||
/**
|
||||
* SQL translator.
|
||||
|
Reference in New Issue
Block a user