Passed
Pull Request — master (#288)
by
unknown
09:36
created
src/Utils/AbstractNamingStrategy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
         if ($index->isUnique()) {
77 77
             return 'findOneBy'.implode('And', $methodNameComponent);
78 78
         } else {
79
-            return 'findBy' . implode('And', $methodNameComponent);
79
+            return 'findBy'.implode('And', $methodNameComponent);
80 80
         }
81 81
     }
82 82
 }
Please login to merge, or discard this patch.
src/QueryFactory/FindObjectsQueryFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 
51 51
         $pkColumnNames = $this->tdbmService->getPrimaryKeyColumns($this->mainTable);
52 52
         $mysqlPlatform = new MySqlPlatform();
53
-        $pkColumnNames = array_map(function ($pkColumn) use ($mysqlPlatform) {
53
+        $pkColumnNames = array_map(function($pkColumn) use ($mysqlPlatform) {
54 54
             return $mysqlPlatform->quoteIdentifier($this->mainTable).'.'.$mysqlPlatform->quoteIdentifier($pkColumn);
55 55
         }, $pkColumnNames);
56 56
 
Please login to merge, or discard this patch.
src/QueryFactory/AbstractQueryFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -207,7 +207,7 @@
 block discarded – undo
207 207
         if (strlen($alias) <= 30) { // Older oracle version had a limit of 30 characters for identifiers
208 208
             return $alias;
209 209
         }
210
-        return substr($columnName, 0, 20) . crc32($tableName.'____'.$columnName);
210
+        return substr($columnName, 0, 20).crc32($tableName.'____'.$columnName);
211 211
     }
212 212
 
213 213
     abstract protected function compute(): void;
Please login to merge, or discard this patch.
src/ResultIterator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      */
85 85
     public static function createResultIterator(QueryFactory $queryFactory, array $parameters, ObjectStorageInterface $objectStorage, ?string $className, TDBMService $tdbmService, MagicQuery $magicQuery, int $mode, LoggerInterface $logger): self
86 86
     {
87
-        $iterator =  new static();
87
+        $iterator = new static();
88 88
         if ($mode !== TDBMService::MODE_CURSOR && $mode !== TDBMService::MODE_ARRAY) {
89 89
             throw new TDBMException("Unknown fetch mode: '".$mode."'");
90 90
         }
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
      */
282 282
     public function jsonSerialize($stopRecursion = false)
283 283
     {
284
-        return array_map(function (AbstractTDBMObject $item) use ($stopRecursion) {
284
+        return array_map(function(AbstractTDBMObject $item) use ($stopRecursion) {
285 285
             return $item->jsonSerialize($stopRecursion);
286 286
         }, $this->toArray());
287 287
     }
Please login to merge, or discard this patch.
src/TDBMSchemaAnalyzer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
142 142
     public function getIncomingForeignKeys(string $tableName): array
143 143
     {
144 144
         $junctionTables = $this->schemaAnalyzer->detectJunctionTables(true);
145
-        $junctionTableNames = array_map(function (Table $table) {
145
+        $junctionTableNames = array_map(function(Table $table) {
146 146
             return $table->getName();
147 147
         }, $junctionTables);
148 148
         $childrenRelationships = $this->schemaAnalyzer->getChildrenRelationships($tableName);
Please login to merge, or discard this patch.
src/Commands/GenerateCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 
50 50
         $fromLock = (bool) $input->getOption('from-lock');
51 51
 
52
-        $loggers = [ new ConsoleLogger($output) ];
52
+        $loggers = [new ConsoleLogger($output)];
53 53
 
54 54
         $logger = $alteredConf->getLogger();
55 55
         if ($logger) {
Please login to merge, or discard this patch.
src/Utils/StringUtils.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 {
9 9
     public static function getValidVariableName(string $variableName): string
10 10
     {
11
-        $valid = preg_replace_callback('/^(\d+)/', static function (array $match) {
11
+        $valid = preg_replace_callback('/^(\d+)/', static function(array $match) {
12 12
             $f = new \NumberFormatter('en', \NumberFormatter::SPELLOUT);
13 13
             $number = $f->format((int) $match[0]);
14 14
             return preg_replace('/[^a-z]+/i', '_', $number);
Please login to merge, or discard this patch.
src/PageIterator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -262,7 +262,7 @@
 block discarded – undo
262 262
      */
263 263
     public function jsonSerialize()
264 264
     {
265
-        return array_map(function (AbstractTDBMObject $item) {
265
+        return array_map(function(AbstractTDBMObject $item) {
266 266
             return $item->jsonSerialize();
267 267
         }, $this->toArray());
268 268
     }
Please login to merge, or discard this patch.
src/Utils/AbstractBeanPropertyDescriptor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      */
68 68
     public function getParamAnnotation(): ParamTag
69 69
     {
70
-        return new ParamTag($this->getSafeVariableName(), [ $this->getPhpType() ]);
70
+        return new ParamTag($this->getSafeVariableName(), [$this->getPhpType()]);
71 71
     }
72 72
 
73 73
     public function getVariableName(): string
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
     public function getSafeVariableName(): string
79 79
     {
80
-        return '$' . StringUtils::getValidVariableName(ltrim($this->getVariableName(), '$'));
80
+        return '$'.StringUtils::getValidVariableName(ltrim($this->getVariableName(), '$'));
81 81
     }
82 82
 
83 83
     public function getSetterName(): string
Please login to merge, or discard this patch.