Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9906068

Browse files
committed
Fix coding standard violations
1 parent b115284 commit 9906068

10 files changed

Lines changed: 5 additions & 22 deletions

lib/Doctrine/ORM/Mapping/Builder/CacheMetadataBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@ public function build() : Mapping\CacheMetadata
6868

6969
return new Mapping\CacheMetadata($usage, $region);
7070
}
71-
}
71+
}

lib/Doctrine/ORM/Mapping/Builder/FieldMetadataBuilder.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,8 @@
44

55
namespace Doctrine\ORM\Mapping\Builder;
66

7-
use Doctrine\ORM\Annotation;
87
use Doctrine\ORM\Mapping;
98
use function assert;
10-
use function constant;
11-
use function sprintf;
12-
use function str_replace;
13-
use function strtolower;
14-
use function strtoupper;
159

1610
class FieldMetadataBuilder
1711
{
@@ -39,8 +33,6 @@ public function build() : Mapping\FieldMetadata
3933
assert($this->componentMetadata !== null);
4034
assert($this->cacheAnnotation !== null);
4135

42-
$fieldMetadata = new Mapping\FieldMetadata();
43-
44-
return $fieldMetadata;
36+
return new Mapping\FieldMetadata();
4537
}
4638
}

lib/Doctrine/ORM/Mapping/Builder/JoinTableMetadataBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,4 +154,4 @@ public function build() : Mapping\JoinTableMetadata
154154

155155
return $joinTableMetadata;
156156
}
157-
}
157+
}

lib/Doctrine/ORM/Mapping/Builder/TableMetadataBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,4 @@ public function build() : Mapping\TableMetadata
8888

8989
return $tableMetadata;
9090
}
91-
}
91+
}

lib/Doctrine/ORM/Mapping/Builder/TransientMetadataBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ public function build() : Mapping\TransientMetadata
4949

5050
return $transientMetadata;
5151
}
52-
}
52+
}

lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
use Doctrine\Common\EventManager;
99
use Doctrine\Common\Persistence\Mapping\ClassMetadataFactory as PersistenceClassMetadataFactory;
1010
use Doctrine\Common\Persistence\Mapping\MappingException as PersistenceMappingException;
11-
use Doctrine\Common\Persistence\Mapping\MappingException as CommonMappingException;
1211
use Doctrine\DBAL\Platforms;
1312
use Doctrine\DBAL\Platforms\AbstractPlatform;
1413
use Doctrine\ORM\EntityManagerInterface;

lib/Doctrine/ORM/Mapping/ToOneAssociationMetadata.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44

55
namespace Doctrine\ORM\Mapping;
66

7-
use Doctrine\DBAL\Platforms\AbstractPlatform;
8-
use Doctrine\ORM\Sequencing\Planning\AssociationValueGeneratorExecutor;
9-
use Doctrine\ORM\Sequencing\Planning\ValueGenerationExecutor;
10-
117
class ToOneAssociationMetadata extends AssociationMetadata
128
{
139
/** @var JoinColumnMetadata[] */

lib/Doctrine/ORM/Tools/SchemaTool.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Doctrine\DBAL\Platforms\AbstractPlatform;
88
use Doctrine\DBAL\Schema\Column;
99
use Doctrine\DBAL\Schema\Comparator;
10-
use Doctrine\DBAL\Schema\ForeignKeyConstraint;
1110
use Doctrine\DBAL\Schema\Index;
1211
use Doctrine\DBAL\Schema\Schema;
1312
use Doctrine\DBAL\Schema\Table;

tests/Doctrine/Tests/ORM/Mapping/AbstractMappingDriverTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
use Doctrine\ORM\Mapping\MappingException;
1717
use Doctrine\ORM\Reflection\RuntimeReflectionService;
1818
use Doctrine\Tests\Models\Cache\City;
19-
use Doctrine\Tests\Models\CMS\CmsAddress;
20-
use Doctrine\Tests\Models\CMS\CmsAddressListener;
2119
use Doctrine\Tests\Models\Company\CompanyContract;
2220
use Doctrine\Tests\Models\Company\CompanyContractListener;
2321
use Doctrine\Tests\Models\Company\CompanyFixContract;

tests/Doctrine/Tests/ORM/UnitOfWorkTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
use InvalidArgumentException;
3232
use PHPUnit_Framework_MockObject_MockObject;
3333
use stdClass;
34-
use function count;
3534
use function get_class;
3635
use function random_int;
3736
use function serialize;

0 commit comments

Comments
 (0)