Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit c86fa32

Browse files
committed
Merge branch 'feature/#121-import-global-functions-for-opcache-inline-optimisations' into develop
Close #121
2 parents 1dd0230 + 76ed105 commit c86fa32

File tree

75 files changed

+490
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+490
-2
lines changed

src/Annotation/AnnotationCollection.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
use ArrayObject;
1313

14+
use function get_class;
15+
1416
class AnnotationCollection extends ArrayObject
1517
{
1618
/**

src/Annotation/AnnotationManager.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
use Zend\EventManager\EventManagerAwareInterface;
1616
use Zend\EventManager\EventManagerInterface;
1717

18+
use function get_class;
19+
use function is_object;
20+
1821
/**
1922
* Pluggable annotation manager
2023
*

src/Annotation/Parser/DoctrineAnnotationParser.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@
1515
use Zend\Code\Exception;
1616
use Zend\EventManager\EventInterface;
1717

18+
use function array_shift;
19+
use function class_exists;
20+
use function get_class;
21+
use function gettype;
22+
use function is_array;
23+
use function is_object;
24+
use function preg_replace;
25+
use function sprintf;
26+
1827
/**
1928
* A parser for docblock annotations that utilizes the annotation parser from
2029
* Doctrine\Common.

src/Annotation/Parser/GenericAnnotationParser.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,19 @@
1414
use Zend\Code\Exception;
1515
use Zend\EventManager\EventInterface;
1616

17+
use function array_search;
18+
use function class_exists;
19+
use function get_class;
20+
use function gettype;
21+
use function in_array;
22+
use function is_array;
23+
use function is_object;
24+
use function is_string;
25+
use function sprintf;
26+
use function str_replace;
27+
use function strtolower;
28+
use function trim;
29+
1730
/**
1831
* Generic annotation parser
1932
*

src/Generator/AbstractGenerator.php

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

1212
use Traversable;
1313

14+
use function get_class;
15+
use function gettype;
16+
use function is_array;
17+
use function is_object;
18+
use function method_exists;
19+
use function sprintf;
20+
1421
abstract class AbstractGenerator implements GeneratorInterface
1522
{
1623
/**

src/Generator/AbstractMemberGenerator.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99

1010
namespace Zend\Code\Generator;
1111

12+
use function is_array;
13+
use function is_string;
14+
use function sprintf;
15+
1216
abstract class AbstractMemberGenerator extends AbstractGenerator
1317
{
1418
/**#@+

src/Generator/ClassGenerator.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,28 @@
1111

1212
use Zend\Code\Reflection\ClassReflection;
1313

14+
use function array_diff;
15+
use function array_map;
16+
use function array_pop;
17+
use function array_search;
18+
use function array_walk;
19+
use function call_user_func_array;
20+
use function explode;
21+
use function get_class;
22+
use function gettype;
23+
use function implode;
24+
use function in_array;
25+
use function is_array;
26+
use function is_scalar;
27+
use function is_string;
28+
use function ltrim;
29+
use function sprintf;
30+
use function str_replace;
31+
use function strrpos;
32+
use function strstr;
33+
use function strtolower;
34+
use function substr;
35+
1436
class ClassGenerator extends AbstractGenerator implements TraitUsageInterface
1537
{
1638
const OBJECT_TYPE = 'class';

src/Generator/DocBlock/Tag/AbstractTypeableTag.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111

1212
use Zend\Code\Generator\AbstractGenerator;
1313

14+
use function explode;
15+
use function implode;
16+
use function is_string;
17+
1418
/**
1519
* This abstract class can be used as parent for all tags
1620
* that use a type part in their content.

src/Generator/DocBlock/Tag/GenericTag.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
use Zend\Code\Generator\AbstractGenerator;
1313
use Zend\Code\Generic\Prototype\PrototypeGenericInterface;
1414

15+
use function ltrim;
16+
1517
class GenericTag extends AbstractGenerator implements TagInterface, PrototypeGenericInterface
1618
{
1719
/**

src/Generator/DocBlock/Tag/MethodTag.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
namespace Zend\Code\Generator\DocBlock\Tag;
1111

12+
use function rtrim;
13+
1214
class MethodTag extends AbstractTypeableTag implements TagInterface
1315
{
1416
/**

0 commit comments

Comments
 (0)