Completed
Push — master ( f4c848...d31188 )
by Jonathan
24s queued 17s
created
lib/Doctrine/ORM/Query/Exec/MultiTableUpdateExecutor.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -67,8 +67,8 @@  discard block
 block discarded – undo
67 67
         // 1. Create an INSERT INTO temptable ... SELECT identifiers WHERE $AST->getWhereClause()
68 68
         $sqlWalker->setSQLTableAlias($primaryClass->getTableName(), 'i0', $updateClause->aliasIdentificationVariable);
69 69
 
70
-        $this->insertSql = 'INSERT INTO ' . $tempTable . ' (' . $idColumnNameList . ')'
71
-                . ' SELECT i0.' . implode(', i0.', array_keys($idColumns));
70
+        $this->insertSql = 'INSERT INTO '.$tempTable.' ('.$idColumnNameList.')'
71
+                . ' SELECT i0.'.implode(', i0.', array_keys($idColumns));
72 72
 
73 73
         $rangeDecl  = new AST\RangeVariableDeclaration($primaryClass->getClassName(), $updateClause->aliasIdentificationVariable);
74 74
         $fromClause = new AST\FromClause([new AST\IdentificationVariableDeclaration($rangeDecl, null, [])]);
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         // 3. Create and store UPDATE statements
87 87
         $hierarchyClasses = array_merge(
88 88
             array_map(
89
-                function ($className) use ($em) {
89
+                function($className) use ($em) {
90 90
                     return $em->getClassMetadata($className);
91 91
                 },
92 92
                 array_reverse($primaryClass->getSubClasses())
@@ -142,8 +142,8 @@  discard block
 block discarded – undo
142 142
             ];
143 143
         }
144 144
 
145
-        $this->createTempTableSql = $platform->getCreateTemporaryTableSnippetSQL() . ' ' . $tempTable . ' ('
146
-                . $platform->getColumnDeclarationListSQL($columnDefinitions) . ')';
145
+        $this->createTempTableSql = $platform->getCreateTemporaryTableSnippetSQL().' '.$tempTable.' ('
146
+                . $platform->getColumnDeclarationListSQL($columnDefinitions).')';
147 147
 
148 148
         $this->dropTempTableSql = $platform->getDropTemporaryTableSQL($tempTable);
149 149
     }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/Exec/MultiTableDeleteExecutor.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
         // 1. Create an INSERT INTO temptable ... SELECT identifiers WHERE $AST->getWhereClause()
58 58
         $sqlWalker->setSQLTableAlias($primaryClass->getTableName(), 'i0', $primaryDqlAlias);
59 59
 
60
-        $this->insertSql = 'INSERT INTO ' . $tempTable . ' (' . $idColumnNameList . ')'
61
-                . ' SELECT i0.' . implode(', i0.', array_keys($idColumns));
60
+        $this->insertSql = 'INSERT INTO '.$tempTable.' ('.$idColumnNameList.')'
61
+                . ' SELECT i0.'.implode(', i0.', array_keys($idColumns));
62 62
 
63 63
         $rangeDecl        = new AST\RangeVariableDeclaration($primaryClass->getClassName(), $primaryDqlAlias);
64 64
         $fromClause       = new AST\FromClause([new AST\IdentificationVariableDeclaration($rangeDecl, null, [])]);
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
         // 3. Create and store DELETE statements
81 81
         $hierarchyClasses = array_merge(
82 82
             array_map(
83
-                function ($className) use ($em) {
83
+                function($className) use ($em) {
84 84
                     return $em->getClassMetadata($className);
85 85
                 },
86 86
                 array_reverse($primaryClass->getSubClasses())
@@ -103,8 +103,8 @@  discard block
 block discarded – undo
103 103
             ];
104 104
         }
105 105
 
106
-        $this->createTempTableSql = $platform->getCreateTemporaryTableSnippetSQL() . ' ' . $tempTable . ' ('
107
-                . $platform->getColumnDeclarationListSQL($columnDefinitions) . ')';
106
+        $this->createTempTableSql = $platform->getCreateTemporaryTableSnippetSQL().' '.$tempTable.' ('
107
+                . $platform->getColumnDeclarationListSQL($columnDefinitions).')';
108 108
 
109 109
         $this->dropTempTableSql = $platform->getDropTemporaryTableSQL($tempTable);
110 110
     }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/QueryExpressionVisitor.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
                 return new Expr\Orx($expressionList);
96 96
 
97 97
             default:
98
-                throw new \RuntimeException('Unknown composite ' . $expr->getType());
98
+                throw new \RuntimeException('Unknown composite '.$expr->getType());
99 99
         }
100 100
     }
101 101
 
@@ -104,14 +104,14 @@  discard block
 block discarded – undo
104 104
      */
105 105
     public function walkComparison(Comparison $comparison)
106 106
     {
107
-        if (! isset($this->queryAliases[0])) {
107
+        if ( ! isset($this->queryAliases[0])) {
108 108
             throw new QueryException('No aliases are set before invoking walkComparison().');
109 109
         }
110 110
 
111
-        $field = $this->queryAliases[0] . '.' . $comparison->getField();
111
+        $field = $this->queryAliases[0].'.'.$comparison->getField();
112 112
 
113 113
         foreach ($this->queryAliases as $alias) {
114
-            if (strpos($comparison->getField() . '.', $alias . '.') === 0) {
114
+            if (strpos($comparison->getField().'.', $alias.'.') === 0) {
115 115
                 $field = $comparison->getField();
116 116
                 break;
117 117
             }
@@ -122,13 +122,13 @@  discard block
 block discarded – undo
122 122
 
123 123
         foreach ($this->parameters as $parameter) {
124 124
             if ($parameter->getName() === $parameterName) {
125
-                $parameterName .= '_' . $parameterCount;
125
+                $parameterName .= '_'.$parameterCount;
126 126
                 break;
127 127
             }
128 128
         }
129 129
 
130 130
         $parameter   = new Parameter($parameterName, $this->walkValue($comparison->getValue()));
131
-        $placeholder = ':' . $parameterName;
131
+        $placeholder = ':'.$parameterName;
132 132
 
133 133
         switch ($comparison->getOperator()) {
134 134
             case Comparison::IN:
@@ -155,17 +155,17 @@  discard block
 block discarded – undo
155 155
 
156 156
                 return $this->expr->neq($field, $placeholder);
157 157
             case Comparison::CONTAINS:
158
-                $parameter->setValue('%' . $parameter->getValue() . '%', $parameter->getType());
158
+                $parameter->setValue('%'.$parameter->getValue().'%', $parameter->getType());
159 159
                 $this->parameters[] = $parameter;
160 160
 
161 161
                 return $this->expr->like($field, $placeholder);
162 162
             case Comparison::STARTS_WITH:
163
-                $parameter->setValue($parameter->getValue() . '%', $parameter->getType());
163
+                $parameter->setValue($parameter->getValue().'%', $parameter->getType());
164 164
                 $this->parameters[] = $parameter;
165 165
 
166 166
                 return $this->expr->like($field, $placeholder);
167 167
             case Comparison::ENDS_WITH:
168
-                $parameter->setValue('%' . $parameter->getValue(), $parameter->getType());
168
+                $parameter->setValue('%'.$parameter->getValue(), $parameter->getType());
169 169
                 $this->parameters[] = $parameter;
170 170
 
171 171
                 return $this->expr->like($field, $placeholder);
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
                     );
182 182
                 }
183 183
 
184
-                throw new \RuntimeException('Unknown comparison operator: ' . $comparison->getOperator());
184
+                throw new \RuntimeException('Unknown comparison operator: '.$comparison->getOperator());
185 185
         }
186 186
     }
187 187
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/Expr/OrderBy.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     public function add($sort, $order = null)
46 46
     {
47 47
         $order         = ! $order ? 'ASC' : $order;
48
-        $this->parts[] = $sort . ' ' . $order;
48
+        $this->parts[] = $sort.' '.$order;
49 49
     }
50 50
 
51 51
     /**
@@ -69,6 +69,6 @@  discard block
 block discarded – undo
69 69
      */
70 70
     public function __toString()
71 71
     {
72
-        return $this->preSeparator . implode($this->separator, $this->parts) . $this->postSeparator;
72
+        return $this->preSeparator.implode($this->separator, $this->parts).$this->postSeparator;
73 73
     }
74 74
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/Expr/Base.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,12 +62,12 @@  discard block
 block discarded – undo
62 62
      */
63 63
     public function add($arg)
64 64
     {
65
-        if ($arg !== null && (! $arg instanceof self || $arg->count() > 0)) {
65
+        if ($arg !== null && ( ! $arg instanceof self || $arg->count() > 0)) {
66 66
             // If we decide to keep Expr\Base instances, we can use this check
67
-            if (! is_string($arg)) {
67
+            if ( ! is_string($arg)) {
68 68
                 $class = get_class($arg);
69 69
 
70
-                if (! in_array($class, $this->allowedClasses, true)) {
70
+                if ( ! in_array($class, $this->allowedClasses, true)) {
71 71
                     throw new \InvalidArgumentException(
72 72
                         sprintf("Expression of type '%s' not allowed in this context.", $class)
73 73
                     );
@@ -97,6 +97,6 @@  discard block
 block discarded – undo
97 97
             return (string) $this->parts[0];
98 98
         }
99 99
 
100
-        return $this->preSeparator . implode($this->separator, $this->parts) . $this->postSeparator;
100
+        return $this->preSeparator.implode($this->separator, $this->parts).$this->postSeparator;
101 101
     }
102 102
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/AST/ASTException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,6 +19,6 @@
 block discarded – undo
19 19
      */
20 20
     public static function noDispatchForNode($node)
21 21
     {
22
-        return new self('Double-dispatch for node ' . get_class($node) . ' is not supported.');
22
+        return new self('Double-dispatch for node '.get_class($node).' is not supported.');
23 23
     }
24 24
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/AST/Functions/IdentityFunction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
         $tableAlias       = $sqlWalker->getSQLTableAlias($tableName, $dqlAlias);
69 69
         $quotedColumnName = $platform->quoteIdentifier($joinColumn->getColumnName());
70 70
 
71
-        return $tableAlias . '.' . $quotedColumnName;
71
+        return $tableAlias.'.'.$quotedColumnName;
72 72
     }
73 73
 
74 74
     /**
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/AST/Functions/SizeFunction.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
             $targetTableAlias = $sqlWalker->getSQLTableAlias($targetClass->getTableName());
45 45
             $sourceTableAlias = $sqlWalker->getSQLTableAlias($class->getTableName(), $dqlAlias);
46 46
 
47
-            $sql .= $targetTableName . ' ' . $targetTableAlias . ' WHERE ';
47
+            $sql .= $targetTableName.' '.$targetTableAlias.' WHERE ';
48 48
 
49 49
             $owningAssociation = $targetClass->getProperty($association->getMappedBy());
50 50
             $first             = true;
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
             }
79 79
 
80 80
             // join to target table
81
-            $sql .= $joinTableName . ' ' . $joinTableAlias . ' WHERE ';
81
+            $sql .= $joinTableName.' '.$joinTableAlias.' WHERE ';
82 82
 
83 83
             $joinColumns = $association->isOwningSide()
84 84
                 ? $joinTable->getJoinColumns()
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
             }
105 105
         }
106 106
 
107
-        return '(' . $sql . ')';
107
+        return '('.$sql.')';
108 108
     }
109 109
 
110 110
     /**
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/AST/Functions/AbsFunction.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,9 +23,9 @@
 block discarded – undo
23 23
      */
24 24
     public function getSql(SqlWalker $sqlWalker)
25 25
     {
26
-        return 'ABS(' . $sqlWalker->walkSimpleArithmeticExpression(
26
+        return 'ABS('.$sqlWalker->walkSimpleArithmeticExpression(
27 27
             $this->simpleArithmeticExpression
28
-        ) . ')';
28
+        ).')';
29 29
     }
30 30
 
31 31
     /**
Please login to merge, or discard this patch.