Skip to content

Commit

Permalink
Add missing return statements to Command:configure methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ostrolucky committed Mar 5, 2023
1 parent a28e2d8 commit e28dee0
Show file tree
Hide file tree
Showing 19 changed files with 18 additions and 116 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
*/
class CollectionRegionCommand extends AbstractEntityManagerCommand
{
/**
* {@inheritdoc}
*/
/** @return void */
protected function configure()
{
$this->setName('orm:clear-cache:region:collection')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
*/
class EntityRegionCommand extends AbstractEntityManagerCommand
{
/**
* {@inheritdoc}
*/
/** @return void */
protected function configure()
{
$this->setName('orm:clear-cache:region:entity')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
*/
class MetadataCommand extends AbstractEntityManagerCommand
{
/**
* {@inheritdoc}
*/
/** @return void */
protected function configure()
{
$this->setName('orm:clear-cache:metadata')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@
*/
class QueryCommand extends AbstractEntityManagerCommand
{
/**
* {@inheritdoc}
*/
/** @return void */
protected function configure()
{
$this->setName('orm:clear-cache:query')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
*/
class QueryRegionCommand extends AbstractEntityManagerCommand
{
/**
* {@inheritdoc}
*/
/** @return void */
protected function configure()
{
$this->setName('orm:clear-cache:region:query')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@
*/
class ResultCommand extends AbstractEntityManagerCommand
{
/**
* {@inheritdoc}
*/
/** @return void */
protected function configure()
{
$this->setName('orm:clear-cache:result')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@ public function setMetadataExporter(ClassMetadataExporter $metadataExporter)
$this->metadataExporter = $metadataExporter;
}

/**
* {@inheritdoc}
*/
/** @return void */
protected function configure()
{
$this->setName('orm:convert-d1-schema')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@
*/
class ConvertMappingCommand extends AbstractEntityManagerCommand
{
/**
* {@inheritdoc}
*/
/** @return void */
protected function configure()
{
$this->setName('orm:convert-mapping')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
*/
class EnsureProductionSettingsCommand extends AbstractEntityManagerCommand
{
/**
* {@inheritdoc}
*/
/** @return void */
protected function configure()
{
$this->setName('orm:ensure-production-settings')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
*/
class GenerateEntitiesCommand extends AbstractEntityManagerCommand
{
/**
* {@inheritdoc}
*/
/** @return void */
protected function configure()
{
$this->setName('orm:generate-entities')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
*/
class GenerateProxiesCommand extends AbstractEntityManagerCommand
{
/**
* {@inheritdoc}
*/
/** @return void */
protected function configure()
{
$this->setName('orm:generate-proxies')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@
*/
class GenerateRepositoriesCommand extends AbstractEntityManagerCommand
{
/**
* {@inheritdoc}
*/
/** @return void */
protected function configure()
{
$this->setName('orm:generate-repositories')
Expand Down
4 changes: 1 addition & 3 deletions lib/Doctrine/ORM/Tools/Console/Command/InfoCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
*/
class InfoCommand extends AbstractEntityManagerCommand
{
/**
* {@inheritdoc}
*/
/** @return void */
protected function configure()
{
$this->setName('orm:info')
Expand Down
4 changes: 1 addition & 3 deletions lib/Doctrine/ORM/Tools/Console/Command/RunDqlCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@
*/
class RunDqlCommand extends AbstractEntityManagerCommand
{
/**
* {@inheritdoc}
*/
/** @return void */
protected function configure()
{
$this->setName('orm:run-dql')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
*/
class CreateCommand extends AbstractCommand
{
/**
* {@inheritdoc}
*/
/** @return void */
protected function configure()
{
$this->setName('orm:schema-tool:create')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
*/
class DropCommand extends AbstractCommand
{
/**
* {@inheritdoc}
*/
/** @return void */
protected function configure()
{
$this->setName('orm:schema-tool:drop')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ class UpdateCommand extends AbstractCommand
/** @var string */
protected $name = 'orm:schema-tool:update';

/**
* {@inheritdoc}
*/
/** @return void */
protected function configure()
{
$this->setName($this->name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
*/
class ValidateSchemaCommand extends AbstractEntityManagerCommand
{
/**
* {@inheritdoc}
*/
/** @return void */
protected function configure()
{
$this->setName('orm:validate-schema')
Expand Down
62 changes: 0 additions & 62 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2541,43 +2541,19 @@
</UnsafeInstantiation>
</file>
<file src="lib/Doctrine/ORM/Tools/Console/Command/ClearCache/CollectionRegionCommand.php">
<MissingReturnType>
<code>configure</code>
</MissingReturnType>
<PossiblyNullReference>
<code>evictAll</code>
</PossiblyNullReference>
</file>
<file src="lib/Doctrine/ORM/Tools/Console/Command/ClearCache/EntityRegionCommand.php">
<MissingReturnType>
<code>configure</code>
</MissingReturnType>
<PossiblyNullReference>
<code>evictAll</code>
</PossiblyNullReference>
</file>
<file src="lib/Doctrine/ORM/Tools/Console/Command/ClearCache/MetadataCommand.php">
<MissingReturnType>
<code>configure</code>
</MissingReturnType>
</file>
<file src="lib/Doctrine/ORM/Tools/Console/Command/ClearCache/QueryCommand.php">
<DeprecatedMethod>
<code>getQueryCacheImpl</code>
</DeprecatedMethod>
<MissingReturnType>
<code>configure</code>
</MissingReturnType>
</file>
<file src="lib/Doctrine/ORM/Tools/Console/Command/ClearCache/QueryRegionCommand.php">
<MissingReturnType>
<code>configure</code>
</MissingReturnType>
</file>
<file src="lib/Doctrine/ORM/Tools/Console/Command/ClearCache/ResultCommand.php">
<MissingReturnType>
<code>configure</code>
</MissingReturnType>
</file>
<file src="lib/Doctrine/ORM/Tools/Console/Command/ConvertDoctrine1SchemaCommand.php">
<ArgumentTypeCoercion>
Expand All @@ -2599,9 +2575,6 @@
<InvalidArgument>
<code>$metadata</code>
</InvalidArgument>
<MissingReturnType>
<code>configure</code>
</MissingReturnType>
</file>
<file src="lib/Doctrine/ORM/Tools/Console/Command/ConvertMappingCommand.php">
<ArgumentTypeCoercion>
Expand All @@ -2613,9 +2586,6 @@
<code>new DisconnectedClassMetadataFactory()</code>
<code>new EntityGenerator()</code>
</DeprecatedClass>
<MissingReturnType>
<code>configure</code>
</MissingReturnType>
<NoInterfaceProperties>
<code><![CDATA[$class->name]]></code>
</NoInterfaceProperties>
Expand All @@ -2624,9 +2594,6 @@
<InvalidDocblock>
<code>connect</code>
</InvalidDocblock>
<MissingReturnType>
<code>configure</code>
</MissingReturnType>
</file>
<file src="lib/Doctrine/ORM/Tools/Console/Command/GenerateEntitiesCommand.php">
<ArgumentTypeCoercion>
Expand All @@ -2636,17 +2603,11 @@
<code>new DisconnectedClassMetadataFactory()</code>
<code>new EntityGenerator()</code>
</DeprecatedClass>
<MissingReturnType>
<code>configure</code>
</MissingReturnType>
<NoInterfaceProperties>
<code><![CDATA[$metadata->name]]></code>
</NoInterfaceProperties>
</file>
<file src="lib/Doctrine/ORM/Tools/Console/Command/GenerateProxiesCommand.php">
<MissingReturnType>
<code>configure</code>
</MissingReturnType>
<NoInterfaceProperties>
<code><![CDATA[$metadata->name]]></code>
</NoInterfaceProperties>
Expand All @@ -2658,17 +2619,11 @@
<DeprecatedClass>
<code>new EntityRepositoryGenerator()</code>
</DeprecatedClass>
<MissingReturnType>
<code>configure</code>
</MissingReturnType>
<NoInterfaceProperties>
<code><![CDATA[$metadata->customRepositoryClassName]]></code>
</NoInterfaceProperties>
</file>
<file src="lib/Doctrine/ORM/Tools/Console/Command/InfoCommand.php">
<MissingReturnType>
<code>configure</code>
</MissingReturnType>
<PossiblyNullReference>
<code>getAllClassNames</code>
</PossiblyNullReference>
Expand All @@ -2685,9 +2640,6 @@
<DeprecatedClass>
<code><![CDATA[Debug::dump($resultSet, (int) $input->getOption('depth'), true, false)]]></code>
</DeprecatedClass>
<MissingReturnType>
<code>configure</code>
</MissingReturnType>
</file>
<file src="lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/AbstractCommand.php">
<InvalidNullableReturnType>
Expand All @@ -2702,19 +2654,13 @@
<code>$metadatas</code>
<code>$metadatas</code>
</ArgumentTypeCoercion>
<MissingReturnType>
<code>configure</code>
</MissingReturnType>
</file>
<file src="lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/DropCommand.php">
<ArgumentTypeCoercion>
<code>$metadatas</code>
<code>$metadatas</code>
<code>$metadatas</code>
</ArgumentTypeCoercion>
<MissingReturnType>
<code>configure</code>
</MissingReturnType>
<PossiblyNullArgument>
<code><![CDATA[$this->getName()]]></code>
<code><![CDATA[$this->getName()]]></code>
Expand All @@ -2724,19 +2670,11 @@
<ArgumentTypeCoercion>
<code>$metadatas</code>
</ArgumentTypeCoercion>
<MissingReturnType>
<code>configure</code>
</MissingReturnType>
<PossiblyNullArgument>
<code><![CDATA[$this->getName()]]></code>
<code><![CDATA[$this->getName()]]></code>
</PossiblyNullArgument>
</file>
<file src="lib/Doctrine/ORM/Tools/Console/Command/ValidateSchemaCommand.php">
<MissingReturnType>
<code>configure</code>
</MissingReturnType>
</file>
<file src="lib/Doctrine/ORM/Tools/Console/MetadataFilter.php">
<InvalidArgument>
<code>new ArrayIterator($metadatas)</code>
Expand Down

0 comments on commit e28dee0

Please sign in to comment.