@@ -1299,7 +1299,7 @@ discard block |
||
1299 | 1299 | |
1300 | 1300 | $lines[] = $this->generateAssociationMappingPropertyDocBlock($associationMapping, $metadata); |
1301 | 1301 | $lines[] = $this->spaces . $this->fieldVisibility . ' $' . $associationMapping['fieldName'] |
1302 | - . ($associationMapping['type'] == 'manyToMany' ? ' = array()' : null) . ";\n"; |
|
1302 | + . ($associationMapping['type'] == 'manyToMany' ? ' = array()' : null) . ";\n"; |
|
1303 | 1303 | } |
1304 | 1304 | |
1305 | 1305 | return implode("\n", $lines); |
@@ -1395,14 +1395,14 @@ discard block |
||
1395 | 1395 | } |
1396 | 1396 | |
1397 | 1397 | $replacements = [ |
1398 | - '<description>' => ucfirst($type) . ' ' . $variableName . '.', |
|
1399 | - '<methodTypeHint>' => $methodTypeHint, |
|
1400 | - '<variableType>' => $variableType . (null !== $defaultValue ? ('|' . $defaultValue) : ''), |
|
1401 | - '<variableName>' => $variableName, |
|
1402 | - '<methodName>' => $methodName, |
|
1403 | - '<fieldName>' => $fieldName, |
|
1404 | - '<variableDefault>' => ($defaultValue !== null ) ? (' = ' . $defaultValue) : '', |
|
1405 | - '<entity>' => $this->getClassName($metadata) |
|
1398 | + '<description>' => ucfirst($type) . ' ' . $variableName . '.', |
|
1399 | + '<methodTypeHint>' => $methodTypeHint, |
|
1400 | + '<variableType>' => $variableType . (null !== $defaultValue ? ('|' . $defaultValue) : ''), |
|
1401 | + '<variableName>' => $variableName, |
|
1402 | + '<methodName>' => $methodName, |
|
1403 | + '<fieldName>' => $fieldName, |
|
1404 | + '<variableDefault>' => ($defaultValue !== null ) ? (' = ' . $defaultValue) : '', |
|
1405 | + '<entity>' => $this->getClassName($metadata) |
|
1406 | 1406 | ]; |
1407 | 1407 | |
1408 | 1408 | $method = str_replace( |