Completed
Branch master (fece2f)
by Alexander
04:18
created
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.
src/Proxy/FunctionProxy.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 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.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         static $accessor = null;
85 85
 
86 86
         if (!$accessor) {
87
-            $accessor  = AspectKernel::getInstance()->getContainer()->get('aspect.advisor.accessor');
87
+            $accessor = AspectKernel::getInstance()->getContainer()->get('aspect.advisor.accessor');
88 88
         }
89 89
 
90 90
         $advices = self::$functionAdvices[$namespace][AspectContainer::FUNCTION_PREFIX][$joinPointName];
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
         }
168 168
 
169 169
         $code = (
170
-            preg_replace('/ {4}|\t/', '', $function->getDocComment()) ."\n" . // Original doc-comment
170
+            preg_replace('/ {4}|\t/', '', $function->getDocComment()) . "\n" . // Original doc-comment
171 171
             'function ' . // 'function' keyword
172 172
             ($function->returnsReference() ? '&' : '') . // By reference symbol
173 173
             $functionName . // Function name
@@ -193,13 +193,13 @@  discard block
 block discarded – undo
193 193
      */
194 194
     protected function getJoinpointInvocationBody(ReflectionFunction $function)
195 195
     {
196
-        $class   = '\\' . __CLASS__;
196
+        $class = '\\' . __CLASS__;
197 197
 
198 198
         $dynamicArgs   = false;
199 199
         $hasOptionals  = false;
200 200
         $hasReferences = false;
201 201
 
202
-        $argValues = array_map(function (ReflectionParameter $param) use (&$dynamicArgs, &$hasOptionals, &$hasReferences) {
202
+        $argValues = array_map(function(ReflectionParameter $param) use (&$dynamicArgs, &$hasOptionals, &$hasReferences) {
203 203
             $byReference   = $param->isPassedByReference();
204 204
             $dynamicArg    = $param->name == '...';
205 205
             $dynamicArgs   = $dynamicArgs || $dynamicArg;
Please login to merge, or discard this patch.
src/Proxy/TraitProxy.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         $scope    = $isStatic ? $this->staticLsbExpression : '$this';
93 93
         $prefix   = $isStatic ? AspectContainer::STATIC_METHOD_PREFIX : AspectContainer::METHOD_PREFIX;
94 94
 
95
-        $args = join(', ', array_map(function (ParsedParameter $param) {
95
+        $args = join(', ', array_map(function(ParsedParameter $param) {
96 96
             $byReference = $param->isPassedByReference() ? '&' : '';
97 97
 
98 98
             return $byReference . '$' . $param->name;
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
                 'use ' . join(', ', array(-1 => $this->parentClassName) + $this->traits) .
124 124
                 $this->getMethodAliasesCode()
125 125
             ) . "\n" . // Use traits and aliases section
126
-            $this->indent(join("\n", $this->methodsCode)) . "\n". // Method definitions
126
+            $this->indent(join("\n", $this->methodsCode)) . "\n" . // Method definitions
127 127
             "}" // End of trait body
128 128
         );
129 129
 
Please login to merge, or discard this patch.