Skip to content

Commit

Permalink
Fixed CS
Browse files Browse the repository at this point in the history
  • Loading branch information
helmer committed Jan 26, 2012
1 parent 67bf607 commit 4d932e7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions Resources/skeleton/crud/actions/create.php
Expand Up @@ -22,7 +22,7 @@ public function createAction()

{% if 'show' in actions -%}
return $this->redirect($this->generateUrl('{{ route_name_prefix }}_show', array('id' => $entity->getId())));
{% else -%}
{%- else -%}
return $this->redirect($this->generateUrl('{{ route_name_prefix }}'));
{%- endif %}

Expand All @@ -31,12 +31,12 @@ public function createAction()
{% if 'annotation' == format %}
return array(
'entity' => $entity,
'form' => $form->createView()
'form' => $form->createView(),
);
{% else %}
return $this->render('{{ bundle }}:{{ entity|replace({'\\': '/'}) }}:new.html.twig', array(
'entity' => $entity,
'form' => $form->createView()
'form' => $form->createView(),
));
{% endif %}
}
6 changes: 4 additions & 2 deletions Resources/skeleton/crud/actions/index.php
Expand Up @@ -14,10 +14,12 @@ public function indexAction()
$entities = $em->getRepository('{{ bundle }}:{{ entity }}')->findAll();

{% if 'annotation' == format %}
return array('entities' => $entities);
return array(
'entities' => $entities,
);
{% else %}
return $this->render('{{ bundle }}:{{ entity|replace({'\\': '/'}) }}:index.html.twig', array(
'entities' => $entities
'entities' => $entities,
));
{% endif %}
}
4 changes: 2 additions & 2 deletions Resources/skeleton/crud/actions/new.php
Expand Up @@ -15,12 +15,12 @@ public function newAction()
{% if 'annotation' == format %}
return array(
'entity' => $entity,
'form' => $form->createView()
'form' => $form->createView(),
);
{% else %}
return $this->render('{{ bundle }}:{{ entity|replace({'\\': '/'}) }}:new.html.twig', array(
'entity' => $entity,
'form' => $form->createView()
'form' => $form->createView(),
));
{% endif %}
}
4 changes: 1 addition & 3 deletions Resources/skeleton/crud/actions/show.php
Expand Up @@ -26,15 +26,13 @@ public function showAction($id)
'entity' => $entity,
{% if 'delete' in actions %}
'delete_form' => $deleteForm->createView(),

{%- endif %}
{% endif %}
);
{% else %}
return $this->render('{{ bundle }}:{{ entity|replace({'\\': '/'}) }}:show.html.twig', array(
'entity' => $entity,
{% if 'delete' in actions %}
'delete_form' => $deleteForm->createView(),

{% endif %}
));
{% endif %}
Expand Down

0 comments on commit 4d932e7

Please sign in to comment.