Completed
Push — 1.x ( 6a61a7...440334 )
by Alexander
02:59
created
src/Instrument/FileSystem/Enumerator.php 2 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.
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/WeavingTransformer.php 1 patch
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.
demos/Demo/Aspect/FluentInterfaceAspect.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,6 +37,6 @@
 block discarded – undo
37 37
     {
38 38
         $result = $invocation->proceed();
39 39
 
40
-        return $result!==null ? $result : $invocation->getThis();
40
+        return $result !== null ? $result : $invocation->getThis();
41 41
     }
42 42
 }
Please login to merge, or discard this patch.
demos/Demo/Aspect/Introduce/SerializableImpl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     public function unserialize($serialized)
35 35
     {
36 36
         $data = unserialize($serialized);
37
-        foreach($data as $key=>$value) {
37
+        foreach ($data as $key=>$value) {
38 38
             $this->$key = $value;
39 39
         }
40 40
     }
Please login to merge, or discard this patch.
demos/Demo/Example/CacheableDemo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     public function getReport($from)
32 32
     {
33 33
         // long calculation for 100ms
34
-        usleep(0.1*1e6);
34
+        usleep(0.1 * 1e6);
35 35
 
36 36
         return $from;
37 37
     }
Please login to merge, or discard this patch.
demos/autoload_aspect.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 use Demo\Aspect\AwesomeAspectKernel;
13 13
 use Go\Aop\Features;
14 14
 
15
-include __DIR__ .'/autoload.php';
15
+include __DIR__ . '/autoload.php';
16 16
 
17 17
 // Initialize demo aspect container
18 18
 $defaultFeatures = AwesomeAspectKernel::getDefaultFeatures();
Please login to merge, or discard this patch.
demos/index.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,9 +82,12 @@
 block discarded – undo
82 82
                     <div class="navbar-form btn-group" data-toggle="button">
83 83
                         <?php if (empty($_COOKIE['aop_on']) || $_COOKIE['aop_on'] === 'true'): ?>
84 84
                         <button type="button" class="btn btn-info" id="aop_on">On</button>
85
-                        <?php else: ?>
85
+                        <?php else {
86
+    : ?>
86 87
                         <button type="button" class="btn btn-danger active" id="aop_on">Off</button>
87
-                        <?php endif; ?>
88
+                        <?php endif;
89
+}
90
+?>
88 91
                     </div>
89 92
                 </li>
90 93
               <li><a href="https://github.com/lisachenko/go-aop-php" target="_blank">Fork me</a></li>
Please login to merge, or discard this patch.
src/Aop/Framework/Block/ClosureStaticProceedTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
      */
54 54
     protected static function getStaticInvoker($className, $method)
55 55
     {
56
-        return function (array $args) use ($className, $method) {
56
+        return function(array $args) use ($className, $method) {
57 57
             return forward_static_call_array(array($className, $method), $args);
58 58
         };
59 59
     }
Please login to merge, or discard this patch.
src/Aop/Framework/DeclareErrorInterceptor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
     {
91 91
         static $adviceMethod = null;
92 92
         if (!$adviceMethod) {
93
-            $adviceMethod = function ($object, $reflectorName, $message, $level = E_USER_NOTICE) {
93
+            $adviceMethod = function($object, $reflectorName, $message, $level = E_USER_NOTICE) {
94 94
                 $class   = is_string($object) ? $object : get_class($object);
95 95
                 $message = vsprintf('[AOP Declare Error]: %s has an error: "%s"', array(
96 96
                     $class . '->' . $reflectorName,
Please login to merge, or discard this patch.