@@ -55,7 +55,7 @@ |
||
55 | 55 | * Gets the names of all mapped classes known to this driver. |
56 | 56 | * |
57 | 57 | * @throws MappingException |
58 | - * @return string[] The names of all mapped classes known to this driver. |
|
58 | + * @return integer[] The names of all mapped classes known to this driver. |
|
59 | 59 | */ |
60 | 60 | public function getAllClassNames() |
61 | 61 | { |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | */ |
31 | 31 | public function __construct(array $mappings = []) |
32 | 32 | { |
33 | - $this->fluentFactory = function (ClassMetadata $metadata) { |
|
33 | + $this->fluentFactory = function(ClassMetadata $metadata) { |
|
34 | 34 | return new Builder(new ClassMetadataBuilder($metadata)); |
35 | 35 | }; |
36 | 36 | |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | public function isTransient($className) |
74 | 74 | { |
75 | 75 | return |
76 | - ! $this->mappers->hasMapperFor($className) || |
|
76 | + !$this->mappers->hasMapperFor($className) || |
|
77 | 77 | $this->mappers->getMapperFor($className)->isTransient(); |
78 | 78 | } |
79 | 79 | |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | $mapping = new $class; |
91 | 91 | |
92 | 92 | if (!$mapping instanceof Mapping) { |
93 | - throw new InvalidArgumentException("Mapping class [{$class}] should implement " . Mapping::class); |
|
93 | + throw new InvalidArgumentException("Mapping class [{$class}] should implement ".Mapping::class); |
|
94 | 94 | } |
95 | 95 | |
96 | 96 | $this->addMapping($mapping); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | */ |
32 | 32 | public function readExtendedMetadata($meta, array &$config) |
33 | 33 | { |
34 | - if (! $meta instanceof ExtensibleClassMetadata) { |
|
34 | + if (!$meta instanceof ExtensibleClassMetadata) { |
|
35 | 35 | return; |
36 | 36 | } |
37 | 37 |
@@ -18,11 +18,11 @@ |
||
18 | 18 | */ |
19 | 19 | public static function enable() |
20 | 20 | { |
21 | - Field::macro(self::MACRO_METHOD, function (Field $builder) { |
|
21 | + Field::macro(self::MACRO_METHOD, function(Field $builder) { |
|
22 | 22 | return new static($builder->getClassMetadata(), $builder->getName()); |
23 | 23 | }); |
24 | 24 | |
25 | - ManyToOne::macro(self::MACRO_METHOD, function (ManyToOne $builder) { |
|
25 | + ManyToOne::macro(self::MACRO_METHOD, function(ManyToOne $builder) { |
|
26 | 26 | return new static($builder->getClassMetadata(), $builder->getRelation()); |
27 | 27 | }); |
28 | 28 | } |
@@ -15,7 +15,7 @@ |
||
15 | 15 | */ |
16 | 16 | public static function enable() |
17 | 17 | { |
18 | - Field::macro(static::MACRO_METHOD, function (Field $builder) { |
|
18 | + Field::macro(static::MACRO_METHOD, function(Field $builder) { |
|
19 | 19 | return new static($builder->getClassMetadata(), $builder->getName()); |
20 | 20 | }); |
21 | 21 | } |
@@ -112,7 +112,7 @@ |
||
112 | 112 | */ |
113 | 113 | public static function enable() |
114 | 114 | { |
115 | - Field::macro(static::MACRO_METHOD, function (Field $builder, $fields) { |
|
115 | + Field::macro(static::MACRO_METHOD, function(Field $builder, $fields) { |
|
116 | 116 | return new static($builder->getClassMetadata(), $builder->getName(), $fields); |
117 | 117 | }); |
118 | 118 | } |
@@ -37,7 +37,7 @@ |
||
37 | 37 | */ |
38 | 38 | public static function enable() |
39 | 39 | { |
40 | - Field::macro(self::MACRO_METHOD, function (Field $field) { |
|
40 | + Field::macro(self::MACRO_METHOD, function(Field $field) { |
|
41 | 41 | return new static($field->getClassMetadata(), $field->getName()); |
42 | 42 | }); |
43 | 43 | } |
@@ -48,15 +48,15 @@ |
||
48 | 48 | */ |
49 | 49 | public static function enable() |
50 | 50 | { |
51 | - Field::macro(self::MACRO_METHOD, function (Field $builder) { |
|
51 | + Field::macro(self::MACRO_METHOD, function(Field $builder) { |
|
52 | 52 | return new static($builder->getClassMetadata(), $builder->getName()); |
53 | 53 | }); |
54 | 54 | |
55 | - ManyToOne::macro(self::MACRO_METHOD, function (ManyToOne $builder) { |
|
55 | + ManyToOne::macro(self::MACRO_METHOD, function(ManyToOne $builder) { |
|
56 | 56 | return new static($builder->getClassMetadata(), $builder->getRelation()); |
57 | 57 | }); |
58 | 58 | |
59 | - ManyToMany::macro(self::MACRO_METHOD, function (ManyToMany $builder) { |
|
59 | + ManyToMany::macro(self::MACRO_METHOD, function(ManyToMany $builder) { |
|
60 | 60 | return new static($builder->getClassMetadata(), $builder->getRelation()); |
61 | 61 | }); |
62 | 62 | } |
@@ -46,7 +46,7 @@ |
||
46 | 46 | */ |
47 | 47 | public static function enable() |
48 | 48 | { |
49 | - Field::macro(self::MACRO_METHOD, function (Field $builder) { |
|
49 | + Field::macro(self::MACRO_METHOD, function(Field $builder) { |
|
50 | 50 | return new static($builder->getClassMetadata(), $builder->getName()); |
51 | 51 | }); |
52 | 52 | } |
@@ -46,7 +46,7 @@ |
||
46 | 46 | */ |
47 | 47 | public static function enable() |
48 | 48 | { |
49 | - Field::macro(self::MACRO_METHOD, function (Field $builder) { |
|
49 | + Field::macro(self::MACRO_METHOD, function(Field $builder) { |
|
50 | 50 | return new static($builder->getClassMetadata(), $builder->getName()); |
51 | 51 | }); |
52 | 52 | } |