Skip to content

Commit 7c269eb

Browse files
committed
Coding style fixes
1 parent eaa0e28 commit 7c269eb

File tree

5 files changed

+3
-21
lines changed

5 files changed

+3
-21
lines changed

src/Utils/BaseCodeGeneratorListener.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,17 +152,11 @@ public function onDaoFactoryConstructorGenerated(MethodGenerator $methodGenerato
152152
return $methodGenerator;
153153
}
154154

155-
/**
156-
* @param BeanDescriptor[] $beanDescriptor
157-
*/
158155
public function onDaoFactoryGetterGenerated(MethodGenerator $methodGenerator, BeanDescriptor $beanDescriptor, ConfigurationInterface $configuration, ClassGenerator $classGenerator): ?MethodGenerator
159156
{
160157
return $methodGenerator;
161158
}
162159

163-
/**
164-
* @param BeanDescriptor[] $beanDescriptor
165-
*/
166160
public function onDaoFactorySetterGenerated(MethodGenerator $methodGenerator, BeanDescriptor $beanDescriptor, ConfigurationInterface $configuration, ClassGenerator $classGenerator): ?MethodGenerator
167161
{
168162
return $methodGenerator;

src/Utils/CodeGeneratorEventDispatcher.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,6 @@ public function onDaoFactoryConstructorGenerated(MethodGenerator $methodGenerato
292292
return $methodGenerator;
293293
}
294294

295-
/**
296-
* @param BeanDescriptor[] $beanDescriptor
297-
*/
298295
public function onDaoFactoryGetterGenerated(MethodGenerator $methodGenerator, BeanDescriptor $beanDescriptor, ConfigurationInterface $configuration, ClassGenerator $classGenerator): ?MethodGenerator
299296
{
300297
foreach ($this->listeners as $listener) {
@@ -306,9 +303,6 @@ public function onDaoFactoryGetterGenerated(MethodGenerator $methodGenerator, Be
306303
return $methodGenerator;
307304
}
308305

309-
/**
310-
* @param BeanDescriptor[] $beanDescriptor
311-
*/
312306
public function onDaoFactorySetterGenerated(MethodGenerator $methodGenerator, BeanDescriptor $beanDescriptor, ConfigurationInterface $configuration, ClassGenerator $classGenerator): ?MethodGenerator
313307
{
314308
foreach ($this->listeners as $listener) {

src/Utils/CodeGeneratorListenerInterface.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,7 @@ public function onDaoFactoryGenerated(FileGenerator $fileGenerator, array $beanD
9090
*/
9191
public function onDaoFactoryConstructorGenerated(MethodGenerator $methodGenerator, array $beanDescriptors, ConfigurationInterface $configuration, ClassGenerator $classGenerator): ?MethodGenerator;
9292

93-
/**
94-
* @param BeanDescriptor[] $beanDescriptor
95-
*/
9693
public function onDaoFactoryGetterGenerated(MethodGenerator $methodGenerator, BeanDescriptor $beanDescriptor, ConfigurationInterface $configuration, ClassGenerator $classGenerator): ?MethodGenerator;
9794

98-
/**
99-
* @param BeanDescriptor[] $beanDescriptor
100-
*/
10195
public function onDaoFactorySetterGenerated(MethodGenerator $methodGenerator, BeanDescriptor $beanDescriptor, ConfigurationInterface $configuration, ClassGenerator $classGenerator): ?MethodGenerator;
10296
}

src/Utils/TDBMDaoGenerator.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,9 @@ private function generateFactory(array $beanDescriptors) : void
302302
$daoFactoryClassName = $this->namingStrategy->getDaoFactoryClassName();
303303

304304
$file = new FileGenerator();
305-
$file->setDocBlock(new DocBlockGenerator(<<<DOC
305+
$file->setDocBlock(
306+
new DocBlockGenerator(
307+
<<<DOC
306308
This file has been automatically generated by TDBM.
307309
DO NOT edit this file, as it might be overwritten.
308310
DOC
@@ -390,7 +392,6 @@ private function generateFactory(array $beanDescriptors) : void
390392

391393
$this->dumpFile($possibleFileName, $fileContent);
392394
}
393-
394395
}
395396

396397
/**

tests/Utils/CodeGeneratorEventDispatcherTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,5 +322,4 @@ public function testOnDaoFactorySetterGenerated(): void
322322
$this->assertSame($this->method1, $this->dispatcher->onDaoFactorySetterGenerated($this->method1, $this->beanDescriptor, $this->configuration, $this->class));
323323
$this->assertSame(null, $this->nullDispatcher->onDaoFactorySetterGenerated($this->method1, $this->beanDescriptor, $this->configuration, $this->class));
324324
}
325-
326325
}

0 commit comments

Comments
 (0)