diff --git a/.gitignore b/.gitignore index 3d0b430..83129c3 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ .php_cs.cache +vendor +composer.lock diff --git a/DataCollector/HydrationDataCollector.php b/DataCollector/HydrationDataCollector.php index fc3c901..af920e4 100644 --- a/DataCollector/HydrationDataCollector.php +++ b/DataCollector/HydrationDataCollector.php @@ -24,13 +24,16 @@ class HydrationDataCollector extends DataCollector /** * @var HydrationLogger */ - private $hydrationLogger = []; + private $hydrationLogger; public function __construct(EntityManagerInterface $manager) { $this->hydrationLogger = $manager->getConfiguration()->getHydrationLogger(); } + /** + * @return void + */ public function collect(Request $request, Response $response, \Throwable $exception = null) { $this->data['hydrations'] = $this->hydrationLogger->hydrations; @@ -59,7 +62,7 @@ public function getTime() } /** - * {@inheritdoc} + * @return string */ public function getName() { @@ -67,7 +70,7 @@ public function getName() } /** - * {@inheritdoc} + * @return void */ public function reset() { diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index e22079e..e6d3a96 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -13,7 +13,7 @@ class Configuration implements ConfigurationInterface { /** - * {@inheritdoc} + * @return TreeBuilder */ public function getConfigTreeBuilder() { diff --git a/DependencyInjection/DebeshaDoctrineProfileExtraExtension.php b/DependencyInjection/DebeshaDoctrineProfileExtraExtension.php index ffe4757..1b9d8b4 100644 --- a/DependencyInjection/DebeshaDoctrineProfileExtraExtension.php +++ b/DependencyInjection/DebeshaDoctrineProfileExtraExtension.php @@ -15,7 +15,7 @@ class DebeshaDoctrineProfileExtraExtension extends Extension { /** - * {@inheritdoc} + * @return void */ public function load(array $configs, ContainerBuilder $container) { diff --git a/ORM/HydrationLogger.php b/ORM/HydrationLogger.php index 58d1996..6daeb35 100644 --- a/ORM/HydrationLogger.php +++ b/ORM/HydrationLogger.php @@ -61,6 +61,8 @@ public function start($type) * * @param int $resultNum * @param array $aliasMap + * + * @return void */ public function stop($resultNum, $aliasMap) { diff --git a/ORM/LoggingConfiguration.php b/ORM/LoggingConfiguration.php index 7ab7cd3..903c112 100644 --- a/ORM/LoggingConfiguration.php +++ b/ORM/LoggingConfiguration.php @@ -20,7 +20,7 @@ public function __construct() /** * Gets the hydration logger. * - * @return HydrationLogger + * @return HydrationLogger|null */ public function getHydrationLogger() { @@ -33,6 +33,8 @@ public function getHydrationLogger() * Sets the hydration logger. * * @param HydrationLogger $ns + * + * @return void */ public function setHydrationLogger(HydrationLogger $logger) {