diff --git a/src/Moka/Factory/ProxyGeneratorFactory.php b/src/Moka/Factory/ProxyGeneratorFactory.php index ef9e8c1..54c91dd 100644 --- a/src/Moka/Factory/ProxyGeneratorFactory.php +++ b/src/Moka/Factory/ProxyGeneratorFactory.php @@ -3,7 +3,6 @@ namespace Moka\Factory; - use Moka\Generator\ProxyGenerator; class ProxyGeneratorFactory diff --git a/src/Moka/Generator/ProxyArgumentGenerator.php b/src/Moka/Generator/ProxyArgumentGenerator.php index c772f5c..a1ef581 100644 --- a/src/Moka/Generator/ProxyArgumentGenerator.php +++ b/src/Moka/Generator/ProxyArgumentGenerator.php @@ -3,7 +3,6 @@ namespace Moka\Generator; - class ProxyArgumentGenerator { public static function generateMethodParameter(\ReflectionParameter $parameter) @@ -47,10 +46,7 @@ public static function generateMethodParameter(\ReflectionParameter $parameter) $byReference = ''; $defaultValue = ''; } - - } catch (\ReflectionException $e) { - } return sprintf( diff --git a/src/Moka/Generator/ProxyClassGenerator.php b/src/Moka/Generator/ProxyClassGenerator.php index 80f8114..34eda60 100644 --- a/src/Moka/Generator/ProxyClassGenerator.php +++ b/src/Moka/Generator/ProxyClassGenerator.php @@ -3,7 +3,6 @@ namespace Moka\Generator; - use Moka\Proxy\ProxyInterface; class ProxyClassGenerator diff --git a/src/Moka/Generator/ProxyGenerator.php b/src/Moka/Generator/ProxyGenerator.php index 737a5ab..c2a8f72 100644 --- a/src/Moka/Generator/ProxyGenerator.php +++ b/src/Moka/Generator/ProxyGenerator.php @@ -3,7 +3,6 @@ namespace Moka\Generator; - use Moka\Proxy\ProxyInterface; use Moka\Strategy\MockingStrategyInterface; diff --git a/src/Moka/Generator/ProxyMethodGenerator.php b/src/Moka/Generator/ProxyMethodGenerator.php index a4f801b..f064c59 100644 --- a/src/Moka/Generator/ProxyMethodGenerator.php +++ b/src/Moka/Generator/ProxyMethodGenerator.php @@ -3,7 +3,6 @@ namespace Moka\Generator; - class ProxyMethodGenerator { private static $template = ' @@ -50,5 +49,4 @@ protected static function getType(\ReflectionType $type) { return (string)$type; } - } diff --git a/src/Moka/Generator/ProxyReturnGenerator.php b/src/Moka/Generator/ProxyReturnGenerator.php index 7fdaeb4..1ffbc57 100644 --- a/src/Moka/Generator/ProxyReturnGenerator.php +++ b/src/Moka/Generator/ProxyReturnGenerator.php @@ -3,7 +3,6 @@ namespace Moka\Generator; - class ProxyReturnGenerator { public static function generateMethodReturnType(\ReflectionType $type, \ReflectionMethod $method) diff --git a/src/Moka/Generator/ProxyTrait.php b/src/Moka/Generator/ProxyTrait.php index 0205c27..b9b7490 100644 --- a/src/Moka/Generator/ProxyTrait.php +++ b/src/Moka/Generator/ProxyTrait.php @@ -3,7 +3,6 @@ namespace Moka\Generator; - use Moka\Exception\InvalidArgumentException; use Moka\Exception\MockNotCreatedException; use Moka\Exception\MockNotServedException; diff --git a/src/Moka/Plugin/PHPUnit/PHPUnitMockingStrategy.php b/src/Moka/Plugin/PHPUnit/PHPUnitMockingStrategy.php index 0862edc..6d5e61c 100644 --- a/src/Moka/Plugin/PHPUnit/PHPUnitMockingStrategy.php +++ b/src/Moka/Plugin/PHPUnit/PHPUnitMockingStrategy.php @@ -79,6 +79,4 @@ protected function doGet($mock) { return $mock; } - - } diff --git a/src/Moka/Plugin/Prophecy/ProphecyMockingStrategy.php b/src/Moka/Plugin/Prophecy/ProphecyMockingStrategy.php index 711892c..c25ef3b 100644 --- a/src/Moka/Plugin/Prophecy/ProphecyMockingStrategy.php +++ b/src/Moka/Plugin/Prophecy/ProphecyMockingStrategy.php @@ -90,6 +90,4 @@ public function call($object, string $name, array $arguments) { return parent::call($object->reveal(), $name, $arguments); } - - } diff --git a/src/Moka/Strategy/AbstractMockingStrategy.php b/src/Moka/Strategy/AbstractMockingStrategy.php index 05e5d4f..9a36c03 100644 --- a/src/Moka/Strategy/AbstractMockingStrategy.php +++ b/src/Moka/Strategy/AbstractMockingStrategy.php @@ -168,6 +168,4 @@ public function call($object, string $name, array $arguments) { return $object->$name(...$arguments); } - - } diff --git a/tests/AbstractTestClass.php b/tests/AbstractTestClass.php index 6467999..b9d7f8d 100644 --- a/tests/AbstractTestClass.php +++ b/tests/AbstractTestClass.php @@ -22,7 +22,6 @@ public function getSelf(): TestInterface public function something() { - } public function withArgument(int $argument): int