From 711074f59283345e84b37e5cba674088e45f399c Mon Sep 17 00:00:00 2001 From: Akihito Koriyama Date: Thu, 4 Jun 2020 21:46:25 +0900 Subject: [PATCH] fix cs --- demo/benchmark.php | 11 ----------- demo/src/AnnotationRealBillingService.php | 2 +- demo/src/FooClass.php | 16 ++++++++++++++++ demo/src/ManualAdvice.php | 4 ++-- demo/src/RealBillingService.php | 2 +- demo/src/Timer.php | 4 ++-- demo/src/interceptorA.php | 4 ++-- demo/src/interceptorB.php | 4 ++-- 8 files changed, 26 insertions(+), 21 deletions(-) create mode 100644 demo/src/FooClass.php diff --git a/demo/benchmark.php b/demo/benchmark.php index 3394dc98..becb9f9e 100644 --- a/demo/benchmark.php +++ b/demo/benchmark.php @@ -8,17 +8,6 @@ use Ray\Aop\Compiler; use Ray\Aop\NullInterceptor; -class FooClass -{ - public function intercepted() - { - } - - public function noInterceptor() - { - } -} - require __DIR__ . '/bootstrap.php'; require __DIR__ . '/src/FooClass_Optimized.php'; diff --git a/demo/src/AnnotationRealBillingService.php b/demo/src/AnnotationRealBillingService.php index 57859862..f07ef114 100644 --- a/demo/src/AnnotationRealBillingService.php +++ b/demo/src/AnnotationRealBillingService.php @@ -11,6 +11,6 @@ class AnnotationRealBillingService implements BillingService */ public function chargeOrder() { - echo 'Charged.' . PHP_EOL; + echo 'Charged.' . PHP_EOL; } } diff --git a/demo/src/FooClass.php b/demo/src/FooClass.php new file mode 100644 index 00000000..ede889ba --- /dev/null +++ b/demo/src/FooClass.php @@ -0,0 +1,16 @@ +proceed(); $time = microtime(true) - $mTime; - echo sprintf('Time stop, time is =[%01.6f] sec', $time) . PHP_EOL; + echo sprintf('Time stop, time is =[%01.6f] sec', $time) . PHP_EOL; } } diff --git a/demo/src/interceptorA.php b/demo/src/interceptorA.php index 4046a604..1413bfc6 100644 --- a/demo/src/interceptorA.php +++ b/demo/src/interceptorA.php @@ -11,8 +11,8 @@ class interceptorA implements MethodInterceptor { public function invoke(MethodInvocation $invocation) { - echo 'before A' . PHP_EOL; + echo 'before A' . PHP_EOL; $invocation->proceed(); - echo 'after A' . PHP_EOL; + echo 'after A' . PHP_EOL; } } diff --git a/demo/src/interceptorB.php b/demo/src/interceptorB.php index 2b041c9d..dbc3eae3 100644 --- a/demo/src/interceptorB.php +++ b/demo/src/interceptorB.php @@ -11,8 +11,8 @@ class interceptorB implements MethodInterceptor { public function invoke(MethodInvocation $invocation) { - echo 'before B' . PHP_EOL; + echo 'before B' . PHP_EOL; $invocation->proceed(); - echo 'after B' . PHP_EOL; + echo 'after B' . PHP_EOL; } }