@@ -181,6 +181,9 @@ |
||
181 | 181 | |
182 | 182 | protected $errorMsg; |
183 | 183 | |
184 | + /** |
|
185 | + * @param string $msg |
|
186 | + */ |
|
184 | 187 | private function displayErrorMsg($msg) |
185 | 188 | { |
186 | 189 | $this->errorMsg = $msg; |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | /** |
148 | 148 | * Returns the name of the base bean class from the table name. |
149 | 149 | * |
150 | - * @param $tableName |
|
150 | + * @param string $tableName |
|
151 | 151 | * |
152 | 152 | * @return string |
153 | 153 | */ |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | /** |
160 | 160 | * Returns the name of the base DAO class from the table name. |
161 | 161 | * |
162 | - * @param $tableName |
|
162 | + * @param string $tableName |
|
163 | 163 | * |
164 | 164 | * @return string |
165 | 165 | */ |
@@ -176,6 +176,7 @@ discard block |
||
176 | 176 | * @param Table $table The table |
177 | 177 | * @param string $beannamespace The namespace of the bean |
178 | 178 | * @param ClassNameMapper $classNameMapper |
179 | + * @param boolean $storeInUtc |
|
179 | 180 | * |
180 | 181 | * @throws TDBMException |
181 | 182 | */ |
@@ -486,6 +487,8 @@ discard block |
||
486 | 487 | * Generates the factory bean. |
487 | 488 | * |
488 | 489 | * @param Table[] $tableList |
490 | + * @param string $daoFactoryClassName |
|
491 | + * @param string $daoNamespace |
|
489 | 492 | */ |
490 | 493 | private function generateFactory(array $tableList, $daoFactoryClassName, $daoNamespace, ClassNameMapper $classNameMapper) |
491 | 494 | { |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | * @Action |
87 | 87 | * |
88 | 88 | * @param string $name |
89 | - * @param bool $selfedit |
|
89 | + * @param string|boolean $selfedit |
|
90 | 90 | */ |
91 | 91 | public function generate($name, $daonamespace, $beannamespace, $daofactoryclassname, $daofactoryinstancename, $storeInUtc = 0, $selfedit = 'false', $useCustomComposer = false, $composerFile = '') |
92 | 92 | { |
@@ -109,6 +109,8 @@ discard block |
||
109 | 109 | * @param string $daofactoryinstancename |
110 | 110 | * @param string $selfedit |
111 | 111 | * @param bool $storeInUtc |
112 | + * @param boolean $useCustomComposer |
|
113 | + * @param string $composerFile |
|
112 | 114 | * |
113 | 115 | * @throws \Mouf\MoufException |
114 | 116 | */ |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | */ |
93 | 93 | public function getConstructorProperties() |
94 | 94 | { |
95 | - $constructorProperties = array_filter($this->beanPropertyDescriptors, function (AbstractBeanPropertyDescriptor $property) { |
|
95 | + $constructorProperties = array_filter($this->beanPropertyDescriptors, function(AbstractBeanPropertyDescriptor $property) { |
|
96 | 96 | return $property->isCompulsory(); |
97 | 97 | }); |
98 | 98 | |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | */ |
107 | 107 | public function getExposedProperties() |
108 | 108 | { |
109 | - $exposedProperties = array_filter($this->beanPropertyDescriptors, function (AbstractBeanPropertyDescriptor $property) { |
|
109 | + $exposedProperties = array_filter($this->beanPropertyDescriptors, function(AbstractBeanPropertyDescriptor $property) { |
|
110 | 110 | return $property->getTable()->getName() == $this->table->getName(); |
111 | 111 | }); |
112 | 112 | |
@@ -271,7 +271,7 @@ discard block |
||
271 | 271 | $fksByMethodName = []; |
272 | 272 | |
273 | 273 | foreach ($fksByTable as $tableName => $fksForTable) { |
274 | - if (count($fksForTable) > 1) { |
|
274 | + if (count($fksForTable)>1) { |
|
275 | 275 | foreach ($fksForTable as $fk) { |
276 | 276 | $methodName = 'get'.TDBMDaoGenerator::toCamelCase($fk->getLocalTableName()).'By'; |
277 | 277 | |
@@ -385,7 +385,7 @@ discard block |
||
385 | 385 | |
386 | 386 | $finalDescs = []; |
387 | 387 | foreach ($descs as $descArray) { |
388 | - if (count($descArray) > 1) { |
|
388 | + if (count($descArray)>1) { |
|
389 | 389 | foreach ($descArray as $desc) { |
390 | 390 | $desc['name'] = TDBMDaoGenerator::toCamelCase($desc['remoteFK']->getForeignTableName()).'By'.TDBMDaoGenerator::toCamelCase($desc['table']->getName()); |
391 | 391 | $finalDescs[] = $desc; |
@@ -558,7 +558,7 @@ discard block |
||
558 | 558 | |
559 | 559 | $classes = $this->generateExtendsAndUseStatements($parentFk); |
560 | 560 | |
561 | - $uses = array_map(function ($className) use ($beannamespace) { return 'use '.$beannamespace.'\\'.$className.";\n"; }, $classes); |
|
561 | + $uses = array_map(function($className) use ($beannamespace) { return 'use '.$beannamespace.'\\'.$className.";\n"; }, $classes); |
|
562 | 562 | $use = implode('', $uses); |
563 | 563 | |
564 | 564 | if ($parentFk !== null) { |