Completed
Push — 1.x ( 6a61a7...440334 )
by Alexander
02:59
created
src/Instrument/Transformer/ConstructorExecutionTransformer.php 1 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 1 patch
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.
src/Proxy/FunctionProxy.php 1 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/AbstractProxy.php 1 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
     protected function indent($text)
78 78
     {
79 79
         $pad   = str_pad('', $this->indent, ' ');
80
-        $lines = array_map(function ($line) use ($pad) {
80
+        $lines = array_map(function($line) use ($pad) {
81 81
             return $pad . $line;
82 82
         }, explode("\n", $text));
83 83
 
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
      */
176 176
     protected function prepareArgsLine(ParsedMethod $method)
177 177
     {
178
-        $args = join(', ', array_map(function (ParsedParameter $param) {
178
+        $args = join(', ', array_map(function(ParsedParameter $param) {
179 179
             $byReference = $param->isPassedByReference() ? '&' : '';
180 180
 
181 181
             return $byReference . '$' . $param->name;
Please login to merge, or discard this patch.
src/Proxy/ClassProxy.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -471,11 +471,11 @@
 block discarded – undo
471 471
             ($prefix ? "$prefix " : '') . // List of class modifiers
472 472
             'class ' . // 'class' keyword with one space
473 473
             $this->name . // Name of the class
474
-            ' extends '. // 'extends' keyword with
474
+            ' extends ' . // 'extends' keyword with
475 475
             $this->parentClassName . // Name of the parent class
476 476
             ($this->interfaces ? ' implements ' . join(', ', $this->interfaces) : '') . "\n" . // Interfaces list
477 477
             "{\n" . // Start of class definition
478
-            ($this->traits ? $this->indent('use ' . join(', ', $this->traits) .';'."\n") : '') . "\n" . // Traits list
478
+            ($this->traits ? $this->indent('use ' . join(', ', $this->traits) . ';' . "\n") : '') . "\n" . // Traits list
479 479
             $this->indent(join("\n", $this->propertiesCode)) . "\n" . // Property definitions
480 480
             $this->indent(join("\n", $this->methodsCode)) . "\n" . // Method definitions
481 481
             "}" // End of class definition
Please login to merge, or discard this patch.
src/Proxy/TraitProxy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
                 'use ' . join(', ', array(-1 => $this->parentClassName) + $this->traits) .
117 117
                 $this->getMethodAliasesCode()
118 118
             ) . "\n" . // Use traits and aliases section
119
-            $this->indent(join("\n", $this->methodsCode)) . "\n". // Method definitions
119
+            $this->indent(join("\n", $this->methodsCode)) . "\n" . // Method definitions
120 120
             "}" // End of trait body
121 121
         );
122 122
 
Please login to merge, or discard this patch.
demos/Demo/Aspect/LoggingAspect.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,9 +39,9 @@
 block discarded – undo
39 39
     public function beforeMethodExecution(MethodInvocation $invocation)
40 40
     {
41 41
         echo 'Calling Before Interceptor for ',
42
-             $invocation,
43
-             ' with arguments: ',
44
-             json_encode($invocation->getArguments()),
45
-             PHP_EOL;
42
+                $invocation,
43
+                ' with arguments: ',
44
+                json_encode($invocation->getArguments()),
45
+                PHP_EOL;
46 46
     }
47 47
 }
Please login to merge, or discard this patch.
src/Aop/Framework/ReflectionFunctionInvocation.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -83,10 +83,10 @@
 block discarded – undo
83 83
      *
84 84
      * @return object
85 85
      */
86
-     public function getStaticPart()
87
-     {
88
-         return $this->reflectionFunction;
89
-     }
86
+        public function getStaticPart()
87
+        {
88
+            return $this->reflectionFunction;
89
+        }
90 90
 
91 91
     /**
92 92
      * Invokes current function invocation with all interceptors
Please login to merge, or discard this patch.
src/Aop/Pointcut/TruePointcut.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,6 +55,6 @@
 block discarded – undo
55 55
      */
56 56
     public function getKind()
57 57
     {
58
-       return $this->filterKind;
58
+        return $this->filterKind;
59 59
     }
60 60
 }
Please login to merge, or discard this patch.