Skip to content

Commit 9444746

Browse files
committed
- Added a php-doc notice that the file is automatically generated and may not be modified
- Generated code indentation
1 parent ebf3185 commit 9444746

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/SAP/Compiler/Generator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,10 @@ private function generate($moduleName, array $metaData, $className, $methodName)
173173
$type = 'string';
174174
}
175175

176-
$doc[] = '* @property ' . $type . ' $' . $definitionName . ' ' . $type . '(' . $definition['len'] . ')';
176+
$doc[] = ' * @property ' . $type . ' $' . $definitionName . ' ' . $type . '(' . $definition['len'] . ')';
177177
}
178178

179-
$doc[] = '*/';
179+
$doc[] = ' */';
180180
$functionName = str_replace($className . '::', '', $methodName);
181181
$functionName = str_replace('generate', '', $functionName);
182182
$template = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Templates/' . $functionName . '.tpl';

lib/SAP/Compiler/Templates/Export.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ class SAP_Export_{$moduleName}_{$name} extends SAP_Export_Abstract {
55
$this->setName('{$nameRaw}');
66
$this->setIsOptional({$isOptional});
77
{$columns}
8-
}
8+
}
99

1010
}

0 commit comments

Comments
 (0)