Commit 65536142 authored by jwage's avatar jwage

[2.0] Fixing issue with EntityGenerator and spaces/formatting

parent 42c55628
...@@ -83,6 +83,7 @@ class EntityGenerator ...@@ -83,6 +83,7 @@ class EntityGenerator
'<?php '<?php
<namespace><use> <namespace><use>
<entityAnnotation> <entityAnnotation>
<entityClassName> <entityClassName>
{ {
...@@ -91,10 +92,10 @@ class EntityGenerator ...@@ -91,10 +92,10 @@ class EntityGenerator
private static $_getMethodTemplate = private static $_getMethodTemplate =
'/** '/**
* <description> * <description>
* *
* @return <variableType>$<variableName> * @return <variableType>$<variableName>
*/ */
public function <methodName>() public function <methodName>()
{ {
return $this-><fieldName>; return $this-><fieldName>;
...@@ -102,10 +103,10 @@ public function <methodName>() ...@@ -102,10 +103,10 @@ public function <methodName>()
private static $_setMethodTemplate = private static $_setMethodTemplate =
'/** '/**
* <description> * <description>
* *
* @param <variableType>$<variableName> * @param <variableType>$<variableName>
*/ */
public function <methodName>(<methodTypeHint>$<variableName>) public function <methodName>(<methodTypeHint>$<variableName>)
{ {
$this-><fieldName> = $<variableName>; $this-><fieldName> = $<variableName>;
...@@ -113,10 +114,10 @@ public function <methodName>(<methodTypeHint>$<variableName>) ...@@ -113,10 +114,10 @@ public function <methodName>(<methodTypeHint>$<variableName>)
private static $_addMethodTemplate = private static $_addMethodTemplate =
'/** '/**
* <description> * <description>
* *
* @param <variableType>$<variableName> * @param <variableType>$<variableName>
*/ */
public function <methodName>(<methodTypeHint>$<variableName>) public function <methodName>(<methodTypeHint>$<variableName>)
{ {
$this-><fieldName>[] = $<variableName>; $this-><fieldName>[] = $<variableName>;
...@@ -124,8 +125,8 @@ public function <methodName>(<methodTypeHint>$<variableName>) ...@@ -124,8 +125,8 @@ public function <methodName>(<methodTypeHint>$<variableName>)
private static $_lifecycleCallbackMethodTemplate = private static $_lifecycleCallbackMethodTemplate =
'/** '/**
* @<name> * @<name>
*/ */
public function <methodName>() public function <methodName>()
{ {
// Add your code here // Add your code here
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment