@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | |
254 | 254 | foreach ($file->getNamespaces() as $foundNs) { |
255 | 255 | foreach ($foundNs->getClasses() as $foundClass) { |
256 | - if ($this->mapperInfo->className() === $foundNs->getName() . '\\' . $foundClass->getName()) { |
|
256 | + if ($this->mapperInfo->className() === $foundNs->getName().'\\'.$foundClass->getName()) { |
|
257 | 257 | $namespace = $foundNs; |
258 | 258 | $class = $foundClass; |
259 | 259 | break; |
@@ -262,7 +262,7 @@ discard block |
||
262 | 262 | } |
263 | 263 | |
264 | 264 | if (!$namespace || !$class) { |
265 | - throw new \InvalidArgumentException('The file do not contains class definition of ' . $this->mapperInfo->className()); |
|
265 | + throw new \InvalidArgumentException('The file do not contains class definition of '.$this->mapperInfo->className()); |
|
266 | 266 | } |
267 | 267 | |
268 | 268 | $this->generateEntityBody(new EntityClassGenerator($class, $namespace)); |
@@ -549,7 +549,7 @@ discard block |
||
549 | 549 | case $property->isArray() && $property->wrapper() === null: |
550 | 550 | // Simple array relation |
551 | 551 | $generator->setDefaultValue([]); |
552 | - $generator->setVarTag($property->className() . '[]'); |
|
552 | + $generator->setVarTag($property->className().'[]'); |
|
553 | 553 | |
554 | 554 | if ($this->useTypedProperties) { |
555 | 555 | $generator->setTypeHint('array'); |
@@ -559,7 +559,7 @@ discard block |
||
559 | 559 | case $property->isArray() && $property->wrapper() !== null: |
560 | 560 | // Array relation with wrapper |
561 | 561 | $repository = $this->prime->repository($property->className()); |
562 | - $generator->setVarTag($repository->collectionFactory()->wrapperClass($property->wrapper()) . '|' . $property->className() . '[]'); |
|
562 | + $generator->setVarTag($repository->collectionFactory()->wrapperClass($property->wrapper()).'|'.$property->className().'[]'); |
|
563 | 563 | |
564 | 564 | // The value is an object : so the default value must be null |
565 | 565 | if ($nullable) { |
@@ -614,7 +614,7 @@ discard block |
||
614 | 614 | $variableName = $this->inflector->camelize($fieldName); |
615 | 615 | $methodName = $variableName; |
616 | 616 | } else { |
617 | - $methodName = $prefix . $this->inflector->classify($fieldName); |
|
617 | + $methodName = $prefix.$this->inflector->classify($fieldName); |
|
618 | 618 | $variableName = $this->inflector->camelize($fieldName); |
619 | 619 | } |
620 | 620 | |
@@ -675,12 +675,12 @@ discard block |
||
675 | 675 | } |
676 | 676 | |
677 | 677 | $method = $generator->addMethod($metadata['method']); |
678 | - $method->addComment('Get ' . $metadata['variable']); |
|
678 | + $method->addComment('Get '.$metadata['variable']); |
|
679 | 679 | $method->addComment(''); |
680 | 680 | $method->setReturnType($metadata['typeHint']); |
681 | 681 | $method->setReturnNullable($metadata['nullable']); |
682 | 682 | $method->setBody('return $this->?;', [$metadata['field']]); |
683 | - $method->addComment('@return ' . $metadata['docType']); |
|
683 | + $method->addComment('@return '.$metadata['docType']); |
|
684 | 684 | } |
685 | 685 | |
686 | 686 | protected function generateSetter(EntityClassGenerator $generator, InfoInterface $propertyInfo): void |
@@ -692,9 +692,9 @@ discard block |
||
692 | 692 | } |
693 | 693 | |
694 | 694 | $method = $generator->addMethod($metadata['method']); |
695 | - $method->addComment('Set ' . $metadata['variable']); |
|
695 | + $method->addComment('Set '.$metadata['variable']); |
|
696 | 696 | $method->addComment(''); |
697 | - $method->addComment('@param ' . $metadata['docType'] . ' $' . $metadata['variable']); |
|
697 | + $method->addComment('@param '.$metadata['docType'].' $'.$metadata['variable']); |
|
698 | 698 | $method->addComment(''); |
699 | 699 | $method->addComment('@return $this'); |
700 | 700 | $method->setReturnType('self'); |
@@ -717,9 +717,9 @@ discard block |
||
717 | 717 | } |
718 | 718 | |
719 | 719 | $method = $generator->addMethod($metadata['method']); |
720 | - $method->addComment('Add ' . $metadata['variable']); |
|
720 | + $method->addComment('Add '.$metadata['variable']); |
|
721 | 721 | $method->addComment(''); |
722 | - $method->addComment('@param ' . $metadata['docType'] . ' $' . $metadata['variable']); |
|
722 | + $method->addComment('@param '.$metadata['docType'].' $'.$metadata['variable']); |
|
723 | 723 | $method->addComment(''); |
724 | 724 | $method->addComment('@return $this'); |
725 | 725 | $method->setReturnType('self'); |
@@ -863,7 +863,7 @@ discard block |
||
863 | 863 | public function setFieldVisibility(string $visibility): void |
864 | 864 | { |
865 | 865 | if ($visibility !== static::FIELD_VISIBLE_PRIVATE && $visibility !== static::FIELD_VISIBLE_PROTECTED) { |
866 | - throw new \InvalidArgumentException('Invalid provided visibility (only private and protected are allowed): ' . $visibility); |
|
866 | + throw new \InvalidArgumentException('Invalid provided visibility (only private and protected are allowed): '.$visibility); |
|
867 | 867 | } |
868 | 868 | |
869 | 869 | $this->fieldVisibility = $visibility; |
@@ -1130,7 +1130,7 @@ discard block |
||
1130 | 1130 | continue; |
1131 | 1131 | } |
1132 | 1132 | |
1133 | - $part = $generator->simplifyType($atomicType) . ($isArray ? '[]' : ''); |
|
1133 | + $part = $generator->simplifyType($atomicType).($isArray ? '[]' : ''); |
|
1134 | 1134 | } |
1135 | 1135 | |
1136 | 1136 | return implode('|', $types); |