Completed
Branch master (fece2f)
by Alexander
04:18
created
src/Instrument/ClassLoading/CachePathManager.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
 
107 107
     /**
108 108
      * @param string $resource
109
-     * @return bool|string
109
+     * @return false|string
110 110
      */
111 111
     public function getCachePathForResource($resource)
112 112
     {
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\ClassLoading;
12 12
 use Go\Aop\Features;
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      */
58 58
     protected $newCacheState = array();
59 59
 
60
-    public function __construct (AspectKernel $kernel)
60
+    public function __construct(AspectKernel $kernel)
61 61
     {
62 62
         $this->kernel   = $kernel;
63 63
         $this->options  = $kernel->getOptions();
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
                 throw new \InvalidArgumentException("Cache directory {$this->cacheDir} is not writable");
79 79
             }
80 80
 
81
-            if (file_exists($this->cacheDir. self::CACHE_FILE_NAME)) {
81
+            if (file_exists($this->cacheDir . self::CACHE_FILE_NAME)) {
82 82
                 $this->cacheState = include $this->cacheDir . self::CACHE_FILE_NAME;
83 83
             }
84 84
         }
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      *
125 125
      * @return array|null Information or null if no record in the cache
126 126
      */
127
-    public function queryCacheState($resource=null)
127
+    public function queryCacheState($resource = null)
128 128
     {
129 129
         if (!$resource) {
130 130
             return $this->cacheState;
Please login to merge, or discard this patch.
src/Instrument/ClassLoading/SourceTransformingLoader.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
     /**
125 125
      * Transforms source code by passing it through all transformers
126 126
      *
127
-     * @param StreamMetaData|null $metadata Metadata from stream
127
+     * @param StreamMetaData $metadata Metadata from stream
128 128
      * @return void|bool Return false if transformation should be stopped
129 129
      */
130 130
     public static function transformCode(StreamMetaData $metadata)
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 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\ClassLoading;
12 12
 
Please login to merge, or discard this patch.
src/Instrument/FileSystem/Enumerator.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     /**
54 54
      * Returns an enumerator for files
55 55
      *
56
-     * @return \CallbackFilterIterator|\RecursiveIteratorIterator|\SplFileInfo[]
56
+     * @return \CallbackFilterIterator
57 57
      */
58 58
     public function enumerate()
59 59
     {
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     /**
74 74
      * Returns a filter callback for enumerating files
75 75
      *
76
-     * @return callable
76
+     * @return \Closure
77 77
      */
78 78
     public function getFilter()
79 79
     {
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 2015, 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 2015, 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\FileSystem;
12 12
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
         $includePaths  = $this->includePaths;
82 82
         $excludePaths  = $this->excludePaths;
83 83
 
84
-        return function (\SplFileInfo $file) use ($rootDirectory, $includePaths, $excludePaths) {
84
+        return function(\SplFileInfo $file) use ($rootDirectory, $includePaths, $excludePaths) {
85 85
             if ($file->getExtension() !== 'php') {
86 86
                 return false;
87 87
             };
Please login to merge, or discard this patch.
src/Instrument/Transformer/CachingTransformer.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
      * This method may transform the supplied source and return a new replacement for it
56 56
      *
57 57
      * @param StreamMetaData $metadata Metadata for source
58
-     * @return void|bool Return false if transformation should be stopped
58
+     * @return boolean Return false if transformation should be stopped
59 59
      */
60 60
     public function transform(StreamMetaData $metadata)
61 61
     {
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\Instrument\Transformer;
12 12
 
Please login to merge, or discard this patch.
src/Instrument/Transformer/WeavingTransformer.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      * This method may transform the supplied source and return a new replacement for it
86 86
      *
87 87
      * @param StreamMetaData $metadata Metadata for source
88
-     * @return void|bool Return false if transformation should be stopped
88
+     * @return boolean Return false if transformation should be stopped
89 89
      */
90 90
     public function transform(StreamMetaData $metadata)
91 91
     {
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
      * Save AOP proxy to the separate file anr returns the php source code for inclusion
278 278
      *
279 279
      * @param ParsedClass $class Original class reflection
280
-     * @param string|ClassProxy $child
280
+     * @param ClassProxy $child
281 281
      *
282 282
      * @return string
283 283
      */
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 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\Transformer;
12 12
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -133,11 +133,11 @@
 block discarded – undo
133 133
                 if ($class->isInterface() || in_array('Go\Aop\Aspect', $class->getInterfaceNames())) {
134 134
                     continue;
135 135
                 }
136
-                $wasClassProcessed    = $this->processSingleClass($advisors, $metadata, $class, $lineOffset);
136
+                $wasClassProcessed = $this->processSingleClass($advisors, $metadata, $class, $lineOffset);
137 137
                 $totalTransformations += (integer) $wasClassProcessed;
138 138
             }
139 139
             $wasFunctionsProcessed = $this->processFunctions($advisors, $metadata, $namespace);
140
-            $totalTransformations  += (integer) $wasFunctionsProcessed;
140
+            $totalTransformations += (integer) $wasFunctionsProcessed;
141 141
         }
142 142
 
143 143
         CleanableMemory::leaveProcessing();
Please login to merge, or discard this patch.
demos/Demo/Annotation/Deprecated.php 1 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 Demo\Annotation;
12 12
 
Please login to merge, or discard this patch.
demos/Demo/Aspect/CachingAspect.php 1 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 Demo\Aspect;
12 12
 
Please login to merge, or discard this patch.
demos/Demo/Aspect/DeclareErrorAspect.php 1 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 Demo\Aspect;
12 12
 
Please login to merge, or discard this patch.
demos/Demo/Aspect/DynamicMethodsAspect.php 1 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 Demo\Aspect;
12 12
 
Please login to merge, or discard this patch.