Completed
Pull Request — master (#5626)
by Gary
09:09
created
lib/Shitty/ORM/EntityManagerInterface.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -242,17 +242,17 @@
 block discarded – undo
242 242
     public function getUnitOfWork();
243 243
 
244 244
     /**
245
-    * Gets a hydrator for the given hydration mode.
246
-    *
247
-    * This method caches the hydrator instances which is used for all queries that don't
248
-    * selectively iterate over the result.
249
-    *
250
-    * @deprecated
251
-    *
252
-    * @param int $hydrationMode
253
-    *
254
-    * @return \Shitty\ORM\Internal\Hydration\AbstractHydrator
255
-    */
245
+     * Gets a hydrator for the given hydration mode.
246
+     *
247
+     * This method caches the hydrator instances which is used for all queries that don't
248
+     * selectively iterate over the result.
249
+     *
250
+     * @deprecated
251
+     *
252
+     * @param int $hydrationMode
253
+     *
254
+     * @return \Shitty\ORM\Internal\Hydration\AbstractHydrator
255
+     */
256 256
     public function getHydrator($hydrationMode);
257 257
 
258 258
     /**
Please login to merge, or discard this patch.
lib/Shitty/ORM/Query/Expr/Join.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -138,8 +138,8 @@
 block discarded – undo
138 138
     public function __toString()
139 139
     {
140 140
         return strtoupper($this->joinType) . ' JOIN ' . $this->join
141
-             . ($this->alias ? ' ' . $this->alias : '')
142
-             . ($this->indexBy ? ' INDEX BY ' . $this->indexBy : '')
143
-             . ($this->condition ? ' ' . strtoupper($this->conditionType) . ' ' . $this->condition : '');
141
+                . ($this->alias ? ' ' . $this->alias : '')
142
+                . ($this->indexBy ? ' INDEX BY ' . $this->indexBy : '')
143
+                . ($this->condition ? ' ' . strtoupper($this->conditionType) . ' ' . $this->condition : '');
144 144
     }
145 145
 }
Please login to merge, or discard this patch.
lib/Shitty/ORM/Query/AST/Functions/SizeFunction.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -70,8 +70,8 @@  discard block
 block discarded – undo
70 70
                 if ($first) $first = false; else $sql .= ' AND ';
71 71
 
72 72
                 $sql .= $targetTableAlias . '.' . $sourceColumn
73
-                      . ' = '
74
-                      . $sourceTableAlias . '.' . $quoteStrategy->getColumnName($class->fieldNames[$targetColumn], $class, $platform);
73
+                        . ' = '
74
+                        . $sourceTableAlias . '.' . $quoteStrategy->getColumnName($class->fieldNames[$targetColumn], $class, $platform);
75 75
             }
76 76
         } else { // many-to-many
77 77
             $targetClass = $sqlWalker->getEntityManager()->getClassMetadata($assoc['targetEntity']);
@@ -100,8 +100,8 @@  discard block
 block discarded – undo
100 100
                 );
101 101
 
102 102
                 $sql .= $joinTableAlias . '.' . $joinColumn['name']
103
-                      . ' = '
104
-                      . $sourceTableAlias . '.' . $sourceColumnName;
103
+                        . ' = '
104
+                        . $sourceTableAlias . '.' . $sourceColumnName;
105 105
             }
106 106
         }
107 107
 
Please login to merge, or discard this patch.
lib/Shitty/ORM/Query/AST/Node.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
             foreach ($props as $name => $prop) {
75 75
                 $ident += 4;
76 76
                 $str .= str_repeat(' ', $ident) . '"' . $name . '": '
77
-                      . $this->dump($prop) . ',' . PHP_EOL;
77
+                        . $this->dump($prop) . ',' . PHP_EOL;
78 78
                 $ident -= 4;
79 79
             }
80 80
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
             foreach ($obj as $k => $v) {
88 88
                 $str .= PHP_EOL . str_repeat(' ', $ident) . '"'
89
-                      . $k . '" => ' . $this->dump($v) . ',';
89
+                        . $k . '" => ' . $this->dump($v) . ',';
90 90
                 $some = true;
91 91
             }
92 92
 
Please login to merge, or discard this patch.
lib/Shitty/ORM/Mapping/DefaultEntityListenerResolver.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
     public function resolve($className)
68 68
     {
69 69
         if (isset($this->instances[$className = trim($className, '\\')])) {
70
-           return $this->instances[$className];
70
+            return $this->instances[$className];
71 71
         }
72 72
 
73 73
         return $this->instances[$className] = new $className();
Please login to merge, or discard this patch.
lib/Shitty/ORM/Mapping/ClassMetadataInfo.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1431,7 +1431,7 @@
 block discarded – undo
1431 1431
 
1432 1432
         if (Type::hasType($mapping['type']) && Type::getType($mapping['type'])->canRequireSQLConversion()) {
1433 1433
             if (isset($mapping['id']) && $mapping['id'] === true) {
1434
-                 throw MappingException::sqlConversionNotAllowedForIdentifiers($this->name, $mapping['fieldName'], $mapping['type']);
1434
+                    throw MappingException::sqlConversionNotAllowedForIdentifiers($this->name, $mapping['fieldName'], $mapping['type']);
1435 1435
             }
1436 1436
 
1437 1437
             $mapping['requireSQLConversion'] = true;
Please login to merge, or discard this patch.
lib/Shitty/ORM/Mapping/Driver/XmlDriver.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -707,13 +707,13 @@
 block discarded – undo
707 707
         return $joinColumn;
708 708
     }
709 709
 
710
-     /**
711
-     * Parses the given field as array.
712
-     *
713
-     * @param SimpleXMLElement $fieldMapping
714
-     *
715
-     * @return array
716
-     */
710
+        /**
711
+         * Parses the given field as array.
712
+         *
713
+         * @param SimpleXMLElement $fieldMapping
714
+         *
715
+         * @return array
716
+         */
717 717
     private function columnToArray(SimpleXMLElement $fieldMapping)
718 718
     {
719 719
         $mapping = array(
Please login to merge, or discard this patch.
lib/Shitty/ORM/Tools/Pagination/CountOutputWalker.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Doctrine ORM
4
- *
5
- * LICENSE
6
- *
7
- * This source file is subject to the new BSD license that is bundled
8
- * with this package in the file LICENSE.txt.
9
- * If you did not receive a copy of the license and are unable to
10
- * obtain it through the world-wide-web, please send an email
11
- * to [email protected] so I can send you a copy immediately.
12
- */
3
+     * Doctrine ORM
4
+     *
5
+     * LICENSE
6
+     *
7
+     * This source file is subject to the new BSD license that is bundled
8
+     * with this package in the file LICENSE.txt.
9
+     * If you did not receive a copy of the license and are unable to
10
+     * obtain it through the world-wide-web, please send an email
11
+     * to [email protected] so I can send you a copy immediately.
12
+     */
13 13
 
14 14
 namespace Doctrine\ORM\Tools\Pagination;
15 15
 
Please login to merge, or discard this patch.
lib/Shitty/ORM/Tools/Pagination/WhereInWalker.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,19 +1,19 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Doctrine ORM
4
- *
5
- * LICENSE
6
- *
7
- * This source file is subject to the new BSD license that is bundled
8
- * with this package in the file LICENSE. This license can also be viewed
9
- * at http://hobodave.com/license.txt
10
- *
11
- * @category    DoctrineExtensions
12
- * @package     DoctrineExtensions\Paginate
13
- * @author      David Abdemoulaie <[email protected]>
14
- * @copyright   Copyright (c) 2010 David Abdemoulaie (http://hobodave.com/)
15
- * @license     http://hobodave.com/license.txt New BSD License
16
- */
3
+     * Doctrine ORM
4
+     *
5
+     * LICENSE
6
+     *
7
+     * This source file is subject to the new BSD license that is bundled
8
+     * with this package in the file LICENSE. This license can also be viewed
9
+     * at http://hobodave.com/license.txt
10
+     *
11
+     * @category    DoctrineExtensions
12
+     * @package     DoctrineExtensions\Paginate
13
+     * @author      David Abdemoulaie <[email protected]>
14
+     * @copyright   Copyright (c) 2010 David Abdemoulaie (http://hobodave.com/)
15
+     * @license     http://hobodave.com/license.txt New BSD License
16
+     */
17 17
 
18 18
 namespace Doctrine\ORM\Tools\Pagination;
19 19
 
Please login to merge, or discard this patch.