Failed Conditions
Push — master ( fa4d3b...3cef55 )
by Marco
24s queued 18s
created
tests/Doctrine/Tests/Mocks/ConnectionMock.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
     public function quote($input, $type = null)
96 96
     {
97 97
         if (is_string($input)) {
98
-            return "'" . $input . "'";
98
+            return "'".$input."'";
99 99
         }
100 100
         return $input;
101 101
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2359Test.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@
 block discarded – undo
32 32
                                 ->getMock();
33 33
 
34 34
         $configuration = $this->getMockBuilder(Configuration::class)
35
-                              ->setMethods(['getMetadataDriverImpl'])
36
-                              ->getMock();
35
+                                ->setMethods(['getMetadataDriverImpl'])
36
+                                ->getMock();
37 37
 
38 38
         $connection = $this->createMock(Connection::class);
39 39
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Query/FilterCollectionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,6 +86,6 @@
 block discarded – undo
86 86
     public function addFilterConstraint(ClassMetadata $targetEntity, $targetTableAlias)
87 87
     {
88 88
         // getParameter applies quoting automatically
89
-        return $targetTableAlias . '.id = ' . $this->getParameter('id');
89
+        return $targetTableAlias.'.id = '.$this->getParameter('id');
90 90
     }
91 91
 }
Please login to merge, or discard this patch.
Doctrine/Tests/ORM/Mapping/NamingStrategy/JoinColumnClassNamingStrategy.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     public function joinColumnName($propertyName, $className = null)
16 16
     {
17 17
         return strtolower($this->classToTableName($className))
18
-            . '_' . $propertyName
19
-            . '_' . $this->referenceColumnName();
18
+            . '_'.$propertyName
19
+            . '_'.$this->referenceColumnName();
20 20
     }
21 21
 }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DbalTypes/UpperCaseStringType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      */
31 31
     public function convertToDatabaseValueSQL($sqlExpr, AbstractPlatform $platform)
32 32
     {
33
-        return 'UPPER(' . $sqlExpr . ')';
33
+        return 'UPPER('.$sqlExpr.')';
34 34
     }
35 35
 
36 36
     /**
@@ -38,6 +38,6 @@  discard block
 block discarded – undo
38 38
      */
39 39
     public function convertToPHPValueSQL($sqlExpr, $platform)
40 40
     {
41
-        return 'LOWER(' . $sqlExpr . ')';
41
+        return 'LOWER('.$sqlExpr.')';
42 42
     }
43 43
 }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DbalTypes/NegativeToPositiveType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      */
39 39
     public function convertToDatabaseValueSQL($sqlExpr, AbstractPlatform $platform)
40 40
     {
41
-        return 'ABS(' . $sqlExpr . ')';
41
+        return 'ABS('.$sqlExpr.')';
42 42
     }
43 43
 
44 44
     /**
@@ -46,6 +46,6 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function convertToPHPValueSQL($sqlExpr, $platform)
48 48
     {
49
-        return '-(' . $sqlExpr . ')';
49
+        return '-('.$sqlExpr.')';
50 50
     }
51 51
 }
Please login to merge, or discard this patch.
tests/Doctrine/Performance/Hydration/SimpleHydrationBench.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
             $user = new CMS\CmsUser();
40 40
 
41 41
             $user->status   = 'developer';
42
-            $user->username = 'jwage' . $i;
42
+            $user->username = 'jwage'.$i;
43 43
             $user->name     = 'Jonathan';
44 44
 
45 45
             $this->entityManager->persist($user);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Query/CustomTreeWalkersJoinTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
         try {
31 31
             $query = $this->em->createQuery($dqlToBeTested);
32 32
             $query->setHint(Query::HINT_CUSTOM_TREE_WALKERS, [CustomTreeWalkerJoin::class])
33
-                  ->useQueryCache(false);
33
+                    ->useQueryCache(false);
34 34
 
35 35
             $sqlGenerated = $query->getSql();
36 36
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
             $query->free();
37 37
         } catch (Exception $e) {
38
-            $this->fail($e->getMessage() . ' at "' . $e->getFile() . '" on line ' . $e->getLine());
38
+            $this->fail($e->getMessage().' at "'.$e->getFile().'" on line '.$e->getLine());
39 39
         }
40 40
 
41 41
         self::assertEquals($sqlToBeConfirmed, $sqlGenerated);
@@ -77,9 +77,9 @@  discard block
 block discarded – undo
77 77
     {
78 78
         $rangeVariableDecl       = $identificationVariableDecl->rangeVariableDeclaration;
79 79
         $joinAssocPathExpression = new Query\AST\JoinAssociationPathExpression($rangeVariableDecl->aliasIdentificationVariable, 'address');
80
-        $joinAssocDeclaration    = new Query\AST\JoinAssociationDeclaration($joinAssocPathExpression, $rangeVariableDecl->aliasIdentificationVariable . 'a', null);
80
+        $joinAssocDeclaration    = new Query\AST\JoinAssociationDeclaration($joinAssocPathExpression, $rangeVariableDecl->aliasIdentificationVariable.'a', null);
81 81
         $join                    = new Query\AST\Join(Query\AST\Join::JOIN_TYPE_LEFT, $joinAssocDeclaration);
82
-        $selectExpression        = new Query\AST\SelectExpression($rangeVariableDecl->aliasIdentificationVariable . 'a', null, false);
82
+        $selectExpression        = new Query\AST\SelectExpression($rangeVariableDecl->aliasIdentificationVariable.'a', null, false);
83 83
 
84 84
         $identificationVariableDecl->joins[]                = $join;
85 85
         $selectStatement->selectClause->selectExpressions[] = $selectExpression;
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         $addressMetadata = $entityManager->getClassMetadata(CmsAddress::class);
90 90
 
91 91
         $this->setQueryComponent(
92
-            $rangeVariableDecl->aliasIdentificationVariable . 'a',
92
+            $rangeVariableDecl->aliasIdentificationVariable.'a',
93 93
             [
94 94
                 'metadata'     => $addressMetadata,
95 95
                 'parent'       => $rangeVariableDecl->aliasIdentificationVariable,
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Locking/LockTest.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -212,7 +212,7 @@
 block discarded – undo
212 212
         $this->expectExceptionMessage('The optimistic lock on an entity failed.');
213 213
 
214 214
         $this->em->createQuery($dql)
215
-                  ->setHint(Query::HINT_LOCK_MODE, LockMode::OPTIMISTIC)
216
-                  ->getSQL();
215
+                    ->setHint(Query::HINT_LOCK_MODE, LockMode::OPTIMISTIC)
216
+                    ->getSQL();
217 217
     }
218 218
 }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         $article = new CmsArticle();
93 93
 
94 94
         $this->expectException(InvalidArgumentException::class);
95
-        $this->expectExceptionMessage('Entity ' . CmsArticle::class);
95
+        $this->expectExceptionMessage('Entity '.CmsArticle::class);
96 96
 
97 97
         $this->em->lock($article, LockMode::OPTIMISTIC, $article->version + 1);
98 98
     }
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
     {
142 142
         $writeLockSql = $this->em->getConnection()->getDatabasePlatform()->getWriteLockSQL();
143 143
 
144
-        if (! $writeLockSql) {
144
+        if ( ! $writeLockSql) {
145 145
             $this->markTestSkipped('Database Driver has no Write Lock support.');
146 146
         }
147 147
 
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
     {
177 177
         $readLockSql = $this->em->getConnection()->getDatabasePlatform()->getReadLockSQL();
178 178
 
179
-        if (! $readLockSql) {
179
+        if ( ! $readLockSql) {
180 180
             $this->markTestSkipped('Database Driver has no Write Lock support.');
181 181
         }
182 182
 
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
      */
210 210
     public function testLockOptimisticNonVersionedThrowsExceptionInDQL() : void
211 211
     {
212
-        $dql = 'SELECT u FROM ' . CmsUser::class . " u WHERE u.username = 'gblanco'";
212
+        $dql = 'SELECT u FROM '.CmsUser::class." u WHERE u.username = 'gblanco'";
213 213
 
214 214
         $this->expectException(OptimisticLockException::class);
215 215
         $this->expectExceptionMessage('The optimistic lock on an entity failed.');
Please login to merge, or discard this patch.