Completed
Push — 1.x ( 6a61a7...440334 )
by Alexander
02:59
created
src/Console/Command/WarmupCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Core/AspectKernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -246,7 +246,7 @@
 block discarded – undo
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(
Please login to merge, or discard this patch.
src/Core/Container.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Core/GeneralAspectLoaderExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
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') {
Please login to merge, or discard this patch.
src/Core/GoAspectContainer.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/Core/IntroductionAspectExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
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):
Please login to merge, or discard this patch.
src/Instrument/ClassLoading/AopComposerLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Instrument/CleanableMemory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Instrument/PathResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.