Failed Conditions
Push — develop ( 1e1a22...0ebeb4 )
by Michael
128:26 queued 63:28
created
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1998Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      */
75 75
     public function convertToDatabaseValue($value, AbstractPlatform $platform)
76 76
     {
77
-        return (string)$value;
77
+        return (string) $value;
78 78
     }
79 79
 
80 80
     public function convertToPhpValue($value, AbstractPlatform $platform)
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC440Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
         return $this->number;
118 118
     }
119 119
 
120
-    public function setClient(DDC440Client $value, $update_inverse=true)
120
+    public function setClient(DDC440Client $value, $update_inverse = true)
121 121
     {
122 122
         $this->client = $value;
123 123
         if ($update_inverse) {
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC719Test.php 2 patches
Indentation   +54 added lines, -54 removed lines patch added patch discarded remove patch
@@ -54,65 +54,65 @@
 block discarded – undo
54 54
     /** @ORM\Column(type="string", nullable=false) */
55 55
     protected $name;
56 56
 
57
-	/** @ORM\Column(type="string", nullable=true) */
58
-	protected $description;
59
-
60
-	/**
61
-	 * @ORM\ManyToMany(targetEntity="DDC719Group", inversedBy="parents")
62
-	 * @ORM\JoinTable(name="groups_groups",
63
-	 * 		joinColumns={@ORM\JoinColumn(name="parent_id", referencedColumnName="id")},
64
-	 * 		inverseJoinColumns={@ORM\JoinColumn(name="child_id", referencedColumnName="id")}
65
-	 * )
66
-	 */
67
-	protected $children = NULL;
68
-
69
-	/**
70
-	 * @ORM\ManyToMany(targetEntity="DDC719Group", mappedBy="children")
71
-	 */
72
-	protected $parents = NULL;
73
-
74
-	/**
75
-	 * construct
76
-	 */
77
-	public function __construct() {
78
-		parent::__construct();
79
-
80
-		$this->channels = new ArrayCollection();
81
-		$this->children = new ArrayCollection();
82
-		$this->parents = new ArrayCollection();
83
-	}
84
-
85
-	/**
86
-	 * adds group as new child
87
-	 *
88
-	 * @param Group $child
89
-	 */
90
-	public function addGroup(Group $child) {
57
+    /** @ORM\Column(type="string", nullable=true) */
58
+    protected $description;
59
+
60
+    /**
61
+     * @ORM\ManyToMany(targetEntity="DDC719Group", inversedBy="parents")
62
+     * @ORM\JoinTable(name="groups_groups",
63
+     * 		joinColumns={@ORM\JoinColumn(name="parent_id", referencedColumnName="id")},
64
+     * 		inverseJoinColumns={@ORM\JoinColumn(name="child_id", referencedColumnName="id")}
65
+     * )
66
+     */
67
+    protected $children = NULL;
68
+
69
+    /**
70
+     * @ORM\ManyToMany(targetEntity="DDC719Group", mappedBy="children")
71
+     */
72
+    protected $parents = NULL;
73
+
74
+    /**
75
+     * construct
76
+     */
77
+    public function __construct() {
78
+        parent::__construct();
79
+
80
+        $this->channels = new ArrayCollection();
81
+        $this->children = new ArrayCollection();
82
+        $this->parents = new ArrayCollection();
83
+    }
84
+
85
+    /**
86
+     * adds group as new child
87
+     *
88
+     * @param Group $child
89
+     */
90
+    public function addGroup(Group $child) {
91 91
         if ( ! $this->children->contains($child)) {
92 92
             $this->children->add($child);
93 93
             $child->addGroup($this);
94 94
         }
95
-	}
96
-
97
-	/**
98
-	 * adds channel as new child
99
-	 *
100
-	 * @param Channel $child
101
-	 */
102
-	public function addChannel(Channel $child) {
95
+    }
96
+
97
+    /**
98
+     * adds channel as new child
99
+     *
100
+     * @param Channel $child
101
+     */
102
+    public function addChannel(Channel $child) {
103 103
         if ( ! $this->channels->contains($child)) {
104 104
             $this->channels->add($child);
105 105
         }
106
-	}
107
-
108
-	/**
109
-	 * getter & setter
110
-	 */
111
-	public function getName() { return $this->name; }
112
-	public function setName($name) { $this->name = $name; }
113
-	public function getDescription() { return $this->description; }
114
-	public function setDescription($description) { $this->description = $description; }
115
-	public function getChildren() { return $this->children; }
116
-	public function getParents() { return $this->parents; }
117
-	public function getChannels() { return $this->channels; }
106
+    }
107
+
108
+    /**
109
+     * getter & setter
110
+     */
111
+    public function getName() { return $this->name; }
112
+    public function setName($name) { $this->name = $name; }
113
+    public function getDescription() { return $this->description; }
114
+    public function setDescription($description) { $this->description = $description; }
115
+    public function getChildren() { return $this->children; }
116
+    public function getParents() { return $this->parents; }
117
+    public function getChannels() { return $this->channels; }
118 118
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3170Test.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -50,19 +50,19 @@
 block discarded – undo
50 50
         $this->em->clear();
51 51
 
52 52
         $result = $this->em->createQueryBuilder()
53
-                  ->select('p')
54
-                  ->from(DDC3170ProductJoined::class, 'p')
55
-                  ->getQuery()
56
-                  ->getResult(AbstractQuery::HYDRATE_SIMPLEOBJECT);
53
+                    ->select('p')
54
+                    ->from(DDC3170ProductJoined::class, 'p')
55
+                    ->getQuery()
56
+                    ->getResult(AbstractQuery::HYDRATE_SIMPLEOBJECT);
57 57
 
58 58
         self::assertCount(1, $result);
59 59
         self::assertContainsOnly(DDC3170ProductJoined::class, $result);
60 60
 
61 61
         $result = $this->em->createQueryBuilder()
62
-                  ->select('p')
63
-                  ->from(DDC3170ProductSingleTable::class, 'p')
64
-                  ->getQuery()
65
-                  ->getResult(AbstractQuery::HYDRATE_SIMPLEOBJECT);
62
+                    ->select('p')
63
+                    ->from(DDC3170ProductSingleTable::class, 'p')
64
+                    ->getQuery()
65
+                    ->getResult(AbstractQuery::HYDRATE_SIMPLEOBJECT);
66 66
 
67 67
         self::assertCount(1, $result);
68 68
         self::assertContainsOnly(DDC3170ProductSingleTable::class, $result);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2224Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 
23 23
     public function testIssue()
24 24
     {
25
-        $dql = 'SELECT e FROM ' . __NAMESPACE__ . '\DDC2224Entity e WHERE e.field = :field';
25
+        $dql = 'SELECT e FROM '.__NAMESPACE__.'\DDC2224Entity e WHERE e.field = :field';
26 26
         $query = $this->em->createQuery($dql);
27 27
         $query->setQueryCacheDriver(new ArrayCache());
28 28
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1225Test.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,9 +30,9 @@
 block discarded – undo
30 30
     {
31 31
         $qb = $this->em->createQueryBuilder();
32 32
         $qb->from(DDC1225_TestEntity1::class, 'te1')
33
-           ->select('te1')
34
-           ->where('te1.testEntity2 = ?1')
35
-           ->setParameter(1, 0);
33
+            ->select('te1')
34
+            ->where('te1.testEntity2 = ?1')
35
+            ->setParameter(1, 0);
36 36
 
37 37
         self::assertSQLEquals(
38 38
             'SELECT t0."test_entity2_id" AS c0 FROM "te1" t0 WHERE t0."test_entity2_id" = ?',
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
                 $this->em->getClassMetadata(DDC1225_TestEntity2::class),
22 22
                 ]
23 23
             );
24
-        } catch(\PDOException $e) {
24
+        } catch (\PDOException $e) {
25 25
 
26 26
         }
27 27
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2825Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
         // Checks sequence name validity
63 63
         self::assertEquals(
64
-            str_replace('"', '', $fullTableName) . '_' . $property->getColumnName() . '_seq',
64
+            str_replace('"', '', $fullTableName).'_'.$property->getColumnName().'_seq',
65 65
             $idSequenceName
66 66
         );
67 67
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC698Test.php 2 patches
Indentation   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@  discard block
 block discarded – undo
27 27
     {
28 28
         $qb = $this->em->createQueryBuilder();
29 29
         $qb->select('p', 'r')
30
-		   ->from(__NAMESPACE__ .  '\DDC698Privilege', 'p')
31
-		   ->leftJoin('p.roles', 'r');
30
+            ->from(__NAMESPACE__ .  '\DDC698Privilege', 'p')
31
+            ->leftJoin('p.roles', 'r');
32 32
 
33 33
         self::assertSQLEquals(
34 34
             'SELECT t0."privilegeID" AS c0, t0."name" AS c1, t1."roleID" AS c2, t1."name" AS c3, t1."shortName" AS c4 FROM "Privileges" t0 LEFT JOIN "RolePrivileges" t2 ON t0."privilegeID" = t2."privilegeID" LEFT JOIN "Roles" t1 ON t1."roleID" = t2."roleID"',
@@ -44,37 +44,37 @@  discard block
 block discarded – undo
44 44
  */
45 45
 class DDC698Role
46 46
 {
47
-	/**
48
-	 *  @ORM\Id @ORM\Column(name="roleID", type="integer")
49
-	 *  @ORM\GeneratedValue(strategy="AUTO")
50
-	 *
51
-	 */
52
-	protected $roleID;
53
-
54
-	/**
55
-	 * @ORM\Column(name="name", type="string", length=45)
56
-	 *
57
-	 *
58
-	 */
59
-	protected $name;
60
-
61
-	/**
62
-	 * @ORM\Column(name="shortName", type="string", length=45)
63
-	 *
64
-	 *
65
-	 */
66
-	protected $shortName;
67
-
68
-
69
-
70
-	/**
71
-	 * @ORM\ManyToMany(targetEntity="DDC698Privilege", inversedBy="roles")
72
-	 * @ORM\JoinTable(name="RolePrivileges",
73
-	 *     joinColumns={@ORM\JoinColumn(name="roleID", referencedColumnName="roleID")},
74
-	 *     inverseJoinColumns={@ORM\JoinColumn(name="privilegeID", referencedColumnName="privilegeID")}
75
-	 * )
76
-	 */
77
-	protected $privilege;
47
+    /**
48
+     *  @ORM\Id @ORM\Column(name="roleID", type="integer")
49
+     *  @ORM\GeneratedValue(strategy="AUTO")
50
+     *
51
+     */
52
+    protected $roleID;
53
+
54
+    /**
55
+     * @ORM\Column(name="name", type="string", length=45)
56
+     *
57
+     *
58
+     */
59
+    protected $name;
60
+
61
+    /**
62
+     * @ORM\Column(name="shortName", type="string", length=45)
63
+     *
64
+     *
65
+     */
66
+    protected $shortName;
67
+
68
+
69
+
70
+    /**
71
+     * @ORM\ManyToMany(targetEntity="DDC698Privilege", inversedBy="roles")
72
+     * @ORM\JoinTable(name="RolePrivileges",
73
+     *     joinColumns={@ORM\JoinColumn(name="roleID", referencedColumnName="roleID")},
74
+     *     inverseJoinColumns={@ORM\JoinColumn(name="privilegeID", referencedColumnName="privilegeID")}
75
+     * )
76
+     */
77
+    protected $privilege;
78 78
 
79 79
 }
80 80
 
@@ -86,22 +86,22 @@  discard block
 block discarded – undo
86 86
  */
87 87
 class DDC698Privilege
88 88
 {
89
-	/**
90
-	 *  @ORM\Id  @ORM\Column(name="privilegeID", type="integer")
91
-	 *  @ORM\GeneratedValue(strategy="AUTO")
92
-	 *
93
-	 */
94
-	protected $privilegeID;
95
-
96
-	/**
97
-	 * @ORM\Column(name="name", type="string", length=45)
98
-	 *
99
-	 *
100
-	 */
101
-	protected $name;
102
-
103
-	/**
89
+    /**
90
+     *  @ORM\Id  @ORM\Column(name="privilegeID", type="integer")
91
+     *  @ORM\GeneratedValue(strategy="AUTO")
92
+     *
93
+     */
94
+    protected $privilegeID;
95
+
96
+    /**
97
+     * @ORM\Column(name="name", type="string", length=45)
98
+     *
99
+     *
100
+     */
101
+    protected $name;
102
+
103
+    /**
104 104
      * @ORM\ManyToMany(targetEntity="DDC698Role", mappedBy="privilege")
105 105
      */
106
-	protected $roles;
106
+    protected $roles;
107 107
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
                 $this->em->getClassMetadata(DDC698Privilege::class)
19 19
                 ]
20 20
             );
21
-        } catch(\Exception $e) {
21
+        } catch (\Exception $e) {
22 22
 
23 23
         }
24 24
     }
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     {
28 28
         $qb = $this->em->createQueryBuilder();
29 29
         $qb->select('p', 'r')
30
-		   ->from(__NAMESPACE__ .  '\DDC698Privilege', 'p')
30
+		   ->from(__NAMESPACE__.'\DDC698Privilege', 'p')
31 31
 		   ->leftJoin('p.roles', 'r');
32 32
 
33 33
         self::assertSQLEquals(
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1925Test.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         $product->addBuyer($user);
36 36
 
37 37
         $this->em->getUnitOfWork()
38
-                  ->computeChangeSets();
38
+                    ->computeChangeSets();
39 39
 
40 40
         $this->em->persist($product);
41 41
         $this->em->flush();
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
Please login to merge, or discard this patch.