Completed
Branch 1.x (6c875f)
by Alexander
03:15
created
src/Core/IntroductionAspectExtension.php 2 patches
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.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Go! AOP framework
4
- *
5
- * @copyright Copyright 2012, Lisachenko Alexander <[email protected]>
6
- *
7
- * This source file is subject to the license that is bundled
8
- * with this source code in the file LICENSE.
9
- */
3
+     * Go! AOP framework
4
+     *
5
+     * @copyright Copyright 2012, Lisachenko Alexander <[email protected]>
6
+     *
7
+     * This source file is subject to the license that is bundled
8
+     * with this source code in the file LICENSE.
9
+     */
10 10
 
11 11
 namespace Go\Proxy;
12 12
 
Please login to merge, or discard this patch.
src/Instrument/ClassLoading/AopComposerLoader.php 2 patches
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.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Go! AOP framework
4
- *
5
- * @copyright Copyright 2013, Lisachenko Alexander <[email protected]>
6
- *
7
- * This source file is subject to the license that is bundled
8
- * with this source code in the file LICENSE.
9
- */
3
+     * Go! AOP framework
4
+     *
5
+     * @copyright Copyright 2013, Lisachenko Alexander <[email protected]>
6
+     *
7
+     * This source file is subject to the license that is bundled
8
+     * with this source code in the file LICENSE.
9
+     */
10 10
 
11 11
 namespace Go\Proxy;
12 12
 
Please login to merge, or discard this patch.
src/Instrument/CleanableMemory.php 2 patches
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.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Go! AOP framework
4
- *
5
- * @copyright Copyright 2013, Lisachenko Alexander <[email protected]>
6
- *
7
- * This source file is subject to the license that is bundled
8
- * with this source code in the file LICENSE.
9
- */
3
+     * Go! AOP framework
4
+     *
5
+     * @copyright Copyright 2013, Lisachenko Alexander <[email protected]>
6
+     *
7
+     * This source file is subject to the license that is bundled
8
+     * with this source code in the file LICENSE.
9
+     */
10 10
 
11 11
 namespace Go\Proxy;
12 12
 
Please login to merge, or discard this patch.
src/Instrument/PathResolver.php 2 patches
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.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Go! AOP framework
4
- *
5
- * @copyright Copyright 2014, Lisachenko Alexander <[email protected]>
6
- *
7
- * This source file is subject to the license that is bundled
8
- * with this source code in the file LICENSE.
9
- */
3
+     * Go! AOP framework
4
+     *
5
+     * @copyright Copyright 2014, Lisachenko Alexander <[email protected]>
6
+     *
7
+     * This source file is subject to the license that is bundled
8
+     * with this source code in the file LICENSE.
9
+     */
10 10
 
11 11
 namespace Go\Instrument\Transformer;
12 12
 
Please login to merge, or discard this patch.
src/Instrument/RawAnnotationReader.php 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Go! AOP framework
4
- *
5
- * @copyright Copyright 2011, Lisachenko Alexander <[email protected]>
6
- *
7
- * This source file is subject to the license that is bundled
8
- * with this source code in the file LICENSE.
9
- */
3
+     * Go! AOP framework
4
+     *
5
+     * @copyright Copyright 2011, Lisachenko Alexander <[email protected]>
6
+     *
7
+     * This source file is subject to the license that is bundled
8
+     * with this source code in the file LICENSE.
9
+     */
10 10
 
11 11
 namespace Go\Instrument;
12 12
 
@@ -82,13 +82,13 @@  discard block
 block discarded – undo
82 82
         return $this->parser->parse($class->getDocComment(), 'class '.$class->getName());
83 83
     }
84 84
 
85
-     /**
86
-     * Gets the annotations applied to a method.
87
-     *
88
-     * @param ParsedReflectionMethod $method The ReflectionMethod of the method from which
89
-     *                                   the annotations should be read.
90
-     * @return array An array of Annotations.
91
-     */
85
+        /**
86
+         * Gets the annotations applied to a method.
87
+         *
88
+         * @param ParsedReflectionMethod $method The ReflectionMethod of the method from which
89
+         *                                   the annotations should be read.
90
+         * @return array An array of Annotations.
91
+         */
92 92
     public function getMethodAnnotations(ParsedReflectionMethod $method)
93 93
     {
94 94
         $this->parser->setTarget(Target::TARGET_METHOD);
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
     {
80 80
         $this->parser->setTarget(Target::TARGET_CLASS);
81 81
 
82
-        return $this->parser->parse($class->getDocComment(), 'class '.$class->getName());
82
+        return $this->parser->parse($class->getDocComment(), 'class ' . $class->getName());
83 83
     }
84 84
 
85 85
      /**
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     {
94 94
         $this->parser->setTarget(Target::TARGET_METHOD);
95 95
 
96
-        return $this->parser->parse($method->getDocComment(), 'method '.$method->getDeclaringClass()->name.'::'.$method->getName().'()');
96
+        return $this->parser->parse($method->getDocComment(), 'method ' . $method->getDeclaringClass()->name . '::' . $method->getName() . '()');
97 97
     }
98 98
 
99 99
     /**
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
     {
108 108
         $this->parser->setTarget(Target::TARGET_PROPERTY);
109 109
 
110
-        return $this->parser->parse($property->getDocComment(), 'property '.$property->getDeclaringClass()->name.'::$'.$property->getName());
110
+        return $this->parser->parse($property->getDocComment(), 'property ' . $property->getDeclaringClass()->name . '::$' . $property->getName());
111 111
     }
112 112
 
113 113
     /**
Please login to merge, or discard this patch.
src/Instrument/Transformer/ConstructorExecutionTransformer.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Go! AOP framework
4
- *
5
- * @copyright Copyright 2014, Lisachenko Alexander <[email protected]>
6
- *
7
- * This source file is subject to the license that is bundled
8
- * with this source code in the file LICENSE.
9
- */
3
+     * Go! AOP framework
4
+     *
5
+     * @copyright Copyright 2014, Lisachenko Alexander <[email protected]>
6
+     *
7
+     * This source file is subject to the license that is bundled
8
+     * with this source code in the file LICENSE.
9
+     */
10 10
 
11 11
 namespace Go\Instrument\Transformer;
12 12
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      */
78 78
     public function transform(StreamMetaData $metadata = null)
79 79
     {
80
-        if (strpos($metadata->source, 'new ')===false) {
80
+        if (strpos($metadata->source, 'new ') === false) {
81 81
             return;
82 82
         }
83 83
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
                     $isWaitingEnd   = true;
96 96
                     $isWaitingClass = false;
97 97
                 }
98
-                if (in_array($tokenStream[$index+1], array('(', ';', ')', '.'))) {
98
+                if (in_array($tokenStream[$index + 1], array('(', ';', ')', '.'))) {
99 99
                     $isWaitingEnd   = true;
100 100
                     $isWaitingClass = false;
101 101
                 }
Please login to merge, or discard this patch.
src/Instrument/Transformer/FilterInjectorTransformer.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      */
123 123
     public function transform(StreamMetaData $metadata)
124 124
     {
125
-        if ((strpos($metadata->source, 'include')===false) && (strpos($metadata->source, 'require')===false)) {
125
+        if ((strpos($metadata->source, 'include') === false) && (strpos($metadata->source, 'require') === false)) {
126 126
             return;
127 127
         }
128 128
         static $lookFor = array(
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
             if (!$isWaitingEnd && isset($lookFor[$token])) {
174 174
                 $isWaitingEnd = true;
175 175
                 $isBracesFinished = $isTernaryOperator = false;
176
-                $transformedSource  .= ' \\' . __CLASS__ . '::rewrite(';
176
+                $transformedSource .= ' \\' . __CLASS__ . '::rewrite(';
177 177
             }
178 178
         }
179 179
         $metadata->source = $transformedSource;
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Go! AOP framework
4
- *
5
- * @copyright Copyright 2012, Lisachenko Alexander <[email protected]>
6
- *
7
- * This source file is subject to the license that is bundled
8
- * with this source code in the file LICENSE.
9
- */
3
+     * Go! AOP framework
4
+     *
5
+     * @copyright Copyright 2012, Lisachenko Alexander <[email protected]>
6
+     *
7
+     * This source file is subject to the license that is bundled
8
+     * with this source code in the file LICENSE.
9
+     */
10 10
 
11 11
 namespace Go\Proxy;
12 12
 
Please login to merge, or discard this patch.
src/Proxy/AbstractProxy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
     protected function indent($text)
80 80
     {
81 81
         $pad   = str_pad('', $this->indent, ' ');
82
-        $lines = array_map(function ($line) use ($pad) {
82
+        $lines = array_map(function($line) use ($pad) {
83 83
             return $pad . $line;
84 84
         }, explode("\n", $text));
85 85
 
Please login to merge, or discard this patch.
src/Proxy/ClassProxy.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Go! AOP framework
4
- *
5
- * @copyright Copyright 2012, Lisachenko Alexander <[email protected]>
6
- *
7
- * This source file is subject to the license that is bundled
8
- * with this source code in the file LICENSE.
9
- */
3
+     * Go! AOP framework
4
+     *
5
+     * @copyright Copyright 2012, Lisachenko Alexander <[email protected]>
6
+     *
7
+     * This source file is subject to the license that is bundled
8
+     * with this source code in the file LICENSE.
9
+     */
10 10
 
11 11
 namespace Go\Proxy;
12 12
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -425,7 +425,7 @@  discard block
 block discarded – undo
425 425
         $scope    = $isStatic ? $this->staticLsbExpression : '$this';
426 426
         $prefix   = $isStatic ? AspectContainer::STATIC_METHOD_PREFIX : AspectContainer::METHOD_PREFIX;
427 427
 
428
-        $args = join(', ', array_map(function (ParsedParameter $param) {
428
+        $args = join(', ', array_map(function(ParsedParameter $param) {
429 429
             $byReference = $param->isPassedByReference() ? '&' : '';
430 430
 
431 431
             return $byReference . '$' . $param->name;
@@ -477,11 +477,11 @@  discard block
 block discarded – undo
477 477
             ($prefix ? "$prefix " : '') . // List of class modifiers
478 478
             'class ' . // 'class' keyword with one space
479 479
             $this->name . // Name of the class
480
-            ' extends '. // 'extends' keyword with
480
+            ' extends ' . // 'extends' keyword with
481 481
             $this->parentClassName . // Name of the parent class
482 482
             ($this->interfaces ? ' implements ' . join(', ', $this->interfaces) : '') . "\n" . // Interfaces list
483 483
             "{\n" . // Start of class definition
484
-            ($this->traits ? $this->indent('use ' . join(', ', $this->traits) .';'."\n") : '') . "\n" . // Traits list
484
+            ($this->traits ? $this->indent('use ' . join(', ', $this->traits) . ';' . "\n") : '') . "\n" . // Traits list
485 485
             $this->indent(join("\n", $this->propertiesCode)) . "\n" . // Property definitions
486 486
             $this->indent(join("\n", $this->methodsCode)) . "\n" . // Method definitions
487 487
             "}" // End of class definition
Please login to merge, or discard this patch.