@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | $output->writeln("Total <info>{$totalFiles}</info> files to process."); |
76 | 76 | $iterator->rewind(); |
77 | 77 | |
78 | - set_error_handler(function ($errno, $errstr, $errfile, $errline) { |
|
78 | + set_error_handler(function($errno, $errstr, $errfile, $errline) { |
|
79 | 79 | throw new \ErrorException($errstr, $errno, 0, $errfile, $errline); |
80 | 80 | }); |
81 | 81 | |
@@ -89,8 +89,8 @@ discard block |
||
89 | 89 | try { |
90 | 90 | // This will trigger creation of cache |
91 | 91 | file_get_contents( |
92 | - FilterInjectorTransformer::PHP_FILTER_READ. |
|
93 | - SourceTransformingLoader::FILTER_IDENTIFIER. |
|
92 | + FilterInjectorTransformer::PHP_FILTER_READ . |
|
93 | + SourceTransformingLoader::FILTER_IDENTIFIER . |
|
94 | 94 | "/resource=" . $file->getRealPath() |
95 | 95 | ); |
96 | 96 | $isSuccess = true; |
@@ -246,7 +246,7 @@ |
||
246 | 246 | $magicTransformer = new MagicConstantTransformer($this); |
247 | 247 | $aspectKernel = $this; |
248 | 248 | |
249 | - $sourceTransformers = function () use ($filterInjector, $magicTransformer, $aspectKernel, $cacheManager) { |
|
249 | + $sourceTransformers = function() use ($filterInjector, $magicTransformer, $aspectKernel, $cacheManager) { |
|
250 | 250 | $transformers = array(); |
251 | 251 | $aspectContainer = $aspectKernel->getContainer(); |
252 | 252 | $transformers[] = new WeavingTransformer( |
@@ -58,7 +58,7 @@ |
||
58 | 58 | if (!is_callable($value)) { |
59 | 59 | throw new \InvalidArgumentException("Only callable values can be shared in the container"); |
60 | 60 | } |
61 | - $value = function ($container) use ($value) { |
|
61 | + $value = function($container) use ($value) { |
|
62 | 62 | static $sharedValue; |
63 | 63 | |
64 | 64 | if (null === $sharedValue) { |
@@ -77,7 +77,7 @@ |
||
77 | 77 | { |
78 | 78 | $loadedItems = array(); |
79 | 79 | $pointcut = $this->parsePointcut($aspect, $reflection, $metaInformation); |
80 | - $methodId = get_class($aspect).'->'.$reflection->name; |
|
80 | + $methodId = get_class($aspect) . '->' . $reflection->name; |
|
81 | 81 | $adviceCallback = Framework\BaseAdvice::fromAspectReflection($aspect, $reflection); |
82 | 82 | |
83 | 83 | if (isset($metaInformation->scope) && $metaInformation->scope !== 'aspect') { |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | public function __construct() |
46 | 46 | { |
47 | 47 | // Register all services in the container |
48 | - $this->share('aspect.loader', function (Container $container) { |
|
48 | + $this->share('aspect.loader', function(Container $container) { |
|
49 | 49 | $aspectLoader = new AspectLoader( |
50 | 50 | $container, |
51 | 51 | $container->get('aspect.annotation.reader') |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | return $aspectLoader; |
61 | 61 | }); |
62 | 62 | |
63 | - $this->share('aspect.cached.loader', function (Container $container) { |
|
63 | + $this->share('aspect.cached.loader', function(Container $container) { |
|
64 | 64 | $cachedAspectLoader = new CachedAspectLoader( |
65 | 65 | $container, |
66 | 66 | 'aspect.loader', |
@@ -70,25 +70,25 @@ discard block |
||
70 | 70 | return $cachedAspectLoader; |
71 | 71 | }); |
72 | 72 | |
73 | - $this->share('aspect.advisor.accessor', function (Container $container) { |
|
73 | + $this->share('aspect.advisor.accessor', function(Container $container) { |
|
74 | 74 | return new LazyAdvisorAccessor( |
75 | 75 | $container, |
76 | 76 | $container->get('aspect.cached.loader') |
77 | 77 | ); |
78 | 78 | }); |
79 | 79 | |
80 | - $this->share('aspect.advice_matcher', function (Container $container) { |
|
80 | + $this->share('aspect.advice_matcher', function(Container $container) { |
|
81 | 81 | return new AdviceMatcher( |
82 | 82 | $container->get('aspect.loader'), |
83 | 83 | $container->get('kernel.interceptFunctions') |
84 | 84 | ); |
85 | 85 | }); |
86 | 86 | |
87 | - $this->share('aspect.annotation.reader', function (Container $container) { |
|
87 | + $this->share('aspect.annotation.reader', function(Container $container) { |
|
88 | 88 | $options = $container->get('kernel.options'); |
89 | 89 | $reader = new AnnotationReader(); |
90 | 90 | if (!empty($options['cacheDir'])) { |
91 | - $reader = new FileCacheReader( |
|
91 | + $reader = new FileCacheReader( |
|
92 | 92 | $reader, |
93 | 93 | $options['cacheDir'] . DIRECTORY_SEPARATOR . '_annotations' . DIRECTORY_SEPARATOR, |
94 | 94 | $options['debug'] |
@@ -97,18 +97,18 @@ discard block |
||
97 | 97 | |
98 | 98 | return $reader; |
99 | 99 | }); |
100 | - $this->share('aspect.annotation.raw.reader', function () { |
|
100 | + $this->share('aspect.annotation.raw.reader', function() { |
|
101 | 101 | return new RawAnnotationReader(); |
102 | 102 | }); |
103 | - $this->share('aspect.cache.path.manager', function (Container $container) { |
|
103 | + $this->share('aspect.cache.path.manager', function(Container $container) { |
|
104 | 104 | return new CachePathManager($container->get('kernel')); |
105 | 105 | }); |
106 | 106 | |
107 | 107 | // Pointcut services |
108 | - $this->share('aspect.pointcut.lexer', function () { |
|
108 | + $this->share('aspect.pointcut.lexer', function() { |
|
109 | 109 | return new PointcutLexer(); |
110 | 110 | }); |
111 | - $this->share('aspect.pointcut.parser', function (Container $container) { |
|
111 | + $this->share('aspect.pointcut.parser', function(Container $container) { |
|
112 | 112 | return new PointcutParser( |
113 | 113 | new PointcutGrammar( |
114 | 114 | $container, |
@@ -76,7 +76,7 @@ |
||
76 | 76 | { |
77 | 77 | $loadedItems = array(); |
78 | 78 | $pointcut = $this->parsePointcut($aspect, $reflection, $metaInformation); |
79 | - $propertyId = $reflection->class.'->'.$reflection->name; |
|
79 | + $propertyId = $reflection->class . '->' . $reflection->name; |
|
80 | 80 | |
81 | 81 | switch (true) { |
82 | 82 | case ($metaInformation instanceof Annotation\DeclareParents): |
@@ -102,7 +102,7 @@ |
||
102 | 102 | $originalLoader = $loader[0]; |
103 | 103 | |
104 | 104 | // Configure library loader for doctrine annotation loader |
105 | - AnnotationRegistry::registerLoader(function ($class) use ($originalLoader) { |
|
105 | + AnnotationRegistry::registerLoader(function($class) use ($originalLoader) { |
|
106 | 106 | $originalLoader->loadClass($class); |
107 | 107 | |
108 | 108 | return class_exists($class, false); |
@@ -39,7 +39,7 @@ |
||
39 | 39 | */ |
40 | 40 | public static function leaveProcessing() |
41 | 41 | { |
42 | - self::$level = self::$level > 0 ? self::$level-1 : 0; |
|
42 | + self::$level = self::$level > 0 ? self::$level - 1 : 0; |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |
@@ -52,7 +52,7 @@ |
||
52 | 52 | } |
53 | 53 | |
54 | 54 | // resolve path parts (single dot, double dot and double delimiters) |
55 | - $path = str_replace(array('/', '\\'), DIRECTORY_SEPARATOR, $path); |
|
55 | + $path = str_replace(array('/', '\\'), DIRECTORY_SEPARATOR, $path); |
|
56 | 56 | if (strpos($path, '.') !== false) { |
57 | 57 | $parts = explode(DIRECTORY_SEPARATOR, $path); |
58 | 58 | $absolutes = array(); |