Skip to content

Commit 4f2eb8e

Browse files
committed
optimized global function calls
1 parent b43694b commit 4f2eb8e

25 files changed

+27
-0
lines changed

src/Application/Application.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
use Nette;
1313
use Nette\Routing\Router;
1414
use Nette\Utils\Arrays;
15+
use function count, is_string, str_starts_with, strcasecmp;
1516

1617

1718
/**

src/Application/Helpers.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
namespace Nette\Application;
1111

1212
use Nette;
13+
use function class_parents, class_uses, strrpos, substr;
1314

1415

1516
/**

src/Application/LinkGenerator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
use Nette\Http\UrlScript;
1313
use Nette\Routing\Router;
1414
use Nette\Utils\Reflection;
15+
use function array_intersect_key, array_key_exists, http_build_query, is_string, is_subclass_of, parse_str, preg_match, rtrim, str_contains, str_ends_with, strcasecmp, strlen, strncmp, strtr, substr, trigger_error, urldecode;
1516

1617

1718
/**

src/Application/MicroPresenter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use Nette\Application\Responses;
1616
use Nette\Http;
1717
use Nette\Routing\Router;
18+
use function is_array, is_object, is_string;
1819

1920

2021
/**

src/Application/PresenterFactory.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
namespace Nette\Application;
1111

1212
use Nette;
13+
use function array_shift, class_exists, count, explode, is_array, is_string, preg_match, strtr;
1314

1415

1516
/**

src/Application/Request.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
namespace Nette\Application;
1111

1212
use Nette;
13+
use function func_num_args, strcasecmp;
1314

1415

1516
/**

src/Application/Responses/FileResponse.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
namespace Nette\Application\Responses;
1111

1212
use Nette;
13+
use function strlen;
1314

1415

1516
/**

src/Application/Routers/CliRouter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
namespace Nette\Application\Routers;
1111

1212
use Nette;
13+
use function is_array;
1314

1415

1516
/**

src/Application/Routers/Route.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
namespace Nette\Application\Routers;
1111

1212
use Nette;
13+
use function interface_exists, is_string, lcfirst, preg_replace, rawurlencode, str_replace, strlen, strncmp, strrpos, strtolower, strtr, substr, ucwords;
1314

1415

1516
/**

src/Application/Routers/RouteList.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
use JetBrains\PhpStorm\Language;
1313
use Nette;
14+
use function count, interface_exists, is_int, is_string, strlen, strncmp, substr;
1415

1516

1617
/**

0 commit comments

Comments
 (0)