@@ -19,7 +19,7 @@ |
||
| 19 | 19 | $this->_em->getClassMetadata(DDC729B::class), |
| 20 | 20 | ] |
| 21 | 21 | ); |
| 22 | - } catch(\Exception $e) { |
|
| 22 | + } catch (\Exception $e) { |
|
| 23 | 23 | |
| 24 | 24 | } |
| 25 | 25 | } |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | */ |
| 75 | 75 | public function convertToDatabaseValue($value, AbstractPlatform $platform) |
| 76 | 76 | { |
| 77 | - if (!$value instanceof GH6141People) { |
|
| 77 | + if ( ! $value instanceof GH6141People) { |
|
| 78 | 78 | $value = GH6141People::get($value); |
| 79 | 79 | } |
| 80 | 80 | |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | */ |
| 118 | 118 | public static function get($value) |
| 119 | 119 | { |
| 120 | - if (!self::isValid($value)) { |
|
| 120 | + if ( ! self::isValid($value)) { |
|
| 121 | 121 | throw new \InvalidArgumentException(); |
| 122 | 122 | } |
| 123 | 123 | |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | public function testIssue() |
| 30 | 30 | { |
| 31 | 31 | $user1 = new DDC2862User('Foo'); |
| 32 | - $driver1 = new DDC2862Driver('Bar' , $user1); |
|
| 32 | + $driver1 = new DDC2862Driver('Bar', $user1); |
|
| 33 | 33 | |
| 34 | 34 | $this->_em->persist($user1); |
| 35 | 35 | $this->_em->persist($driver1); |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | public function testIssueReopened() |
| 68 | 68 | { |
| 69 | 69 | $user1 = new DDC2862User('Foo'); |
| 70 | - $driver1 = new DDC2862Driver('Bar' , $user1); |
|
| 70 | + $driver1 = new DDC2862Driver('Bar', $user1); |
|
| 71 | 71 | |
| 72 | 72 | $this->_em->persist($user1); |
| 73 | 73 | $this->_em->persist($driver1); |
@@ -67,12 +67,12 @@ discard block |
||
| 67 | 67 | protected $name; |
| 68 | 68 | |
| 69 | 69 | /** |
| 70 | - * @ManyToMany(targetEntity="DDC211Group", inversedBy="users") |
|
| 71 | - * @JoinTable(name="user_groups", |
|
| 72 | - * joinColumns={@JoinColumn(name="user_id", referencedColumnName="id")}, |
|
| 73 | - * inverseJoinColumns={@JoinColumn(name="group_id", referencedColumnName="id")} |
|
| 74 | - * ) |
|
| 75 | - */ |
|
| 70 | + * @ManyToMany(targetEntity="DDC211Group", inversedBy="users") |
|
| 71 | + * @JoinTable(name="user_groups", |
|
| 72 | + * joinColumns={@JoinColumn(name="user_id", referencedColumnName="id")}, |
|
| 73 | + * inverseJoinColumns={@JoinColumn(name="group_id", referencedColumnName="id")} |
|
| 74 | + * ) |
|
| 75 | + */ |
|
| 76 | 76 | protected $groups; |
| 77 | 77 | |
| 78 | 78 | public function __construct() { |
@@ -103,8 +103,8 @@ discard block |
||
| 103 | 103 | protected $name; |
| 104 | 104 | |
| 105 | 105 | /** |
| 106 | - * @ManyToMany(targetEntity="DDC211User", mappedBy="groups") |
|
| 107 | - */ |
|
| 106 | + * @ManyToMany(targetEntity="DDC211User", mappedBy="groups") |
|
| 107 | + */ |
|
| 108 | 108 | protected $users; |
| 109 | 109 | |
| 110 | 110 | public function __construct() { |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | $this->_em->persist($group); |
| 36 | 36 | $this->_em->flush(); |
| 37 | 37 | |
| 38 | - if (!$user->getGroups()->contains($group)) { |
|
| 38 | + if ( ! $user->getGroups()->contains($group)) { |
|
| 39 | 39 | $user->getGroups()->add($group); |
| 40 | 40 | $group->getUsers()->add($user); |
| 41 | 41 | $this->_em->flush(); |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | */ |
| 72 | 72 | public function convertToDatabaseValue($value, AbstractPlatform $platform) |
| 73 | 73 | { |
| 74 | - return (string)$value; |
|
| 74 | + return (string) $value; |
|
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | public function convertToPhpValue($value, AbstractPlatform $platform) |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | $this->_em->getClassMetadata(DDC960Child::class) |
| 17 | 17 | ] |
| 18 | 18 | ); |
| 19 | - } catch(\Exception $e) { |
|
| 19 | + } catch (\Exception $e) { |
|
| 20 | 20 | |
| 21 | 21 | } |
| 22 | 22 | } |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | $this->_em->getClassMetadata(DDC2759MetadataCategory::class), |
| 24 | 24 | ] |
| 25 | 25 | ); |
| 26 | - } catch(\Exception $e) { |
|
| 26 | + } catch (\Exception $e) { |
|
| 27 | 27 | return; |
| 28 | 28 | } |
| 29 | 29 | |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | |
| 55 | 55 | // Checks sequence name validity |
| 56 | 56 | $this->assertEquals( |
| 57 | - $fullTableName . '_' . $classMetadata->getSingleIdentifierColumnName() . '_seq', |
|
| 57 | + $fullTableName.'_'.$classMetadata->getSingleIdentifierColumnName().'_seq', |
|
| 58 | 58 | $classMetadata->getSequenceName($platform) |
| 59 | 59 | ); |
| 60 | 60 | } |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | $this->_em->getClassMetadata(DDC735Review::class) |
| 17 | 17 | ] |
| 18 | 18 | ); |
| 19 | - } catch(\Exception $e) { |
|
| 19 | + } catch (\Exception $e) { |
|
| 20 | 20 | |
| 21 | 21 | } |
| 22 | 22 | } |