@@ -37,6 +37,6 @@ |
||
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 | } |
@@ -1,12 +1,12 @@ |
||
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 |
@@ -1,12 +1,12 @@ |
||
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 Demo\Aspect; |
12 | 12 |
@@ -1,12 +1,12 @@ |
||
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 Demo\Aspect\Introduce; |
12 | 12 |
@@ -34,7 +34,7 @@ |
||
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 | } |
@@ -1,12 +1,12 @@ |
||
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 |
@@ -1,12 +1,12 @@ discard block |
||
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 | |
@@ -39,9 +39,9 @@ discard block |
||
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 | } |
@@ -1,12 +1,12 @@ |
||
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 |
@@ -1,12 +1,12 @@ |
||
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\Example; |
12 | 12 |
@@ -31,7 +31,7 @@ |
||
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 | } |
@@ -1,12 +1,12 @@ |
||
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\Example; |
12 | 12 |