Skip to content

Commit

Permalink
styleci fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sadikoff committed Jan 23, 2018
1 parent f7c8708 commit 2792d2e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/DependencyInjection/CrudMakerExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Koff\Bundle\CrudMakerBundle\DependencyInjection;

use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader;
use Symfony\Component\DependencyInjection\Extension\Extension;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\Loader;

/**
* @author Sadicov Vladimir <sadikoff@gmail.com>
Expand Down
1 change: 1 addition & 0 deletions src/Maker/MakeCrud.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
final class MakeCrud implements MakerInterface
{
private $router;

private $entityManager;

public function __construct(RouterInterface $router, EntityManagerInterface $entityManager)
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/skeleton/form/Type.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class <?= $form_class_name ?> extends AbstractType
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
<?php foreach ($entity_fields as $field): ?><?php if ($field['fieldName'] != $entity_identifier): ?>->add('<?= $field['fieldName'] ?>')
<?php foreach ($entity_fields as $field): ?><?php if ($field['fieldName'] !== $entity_identifier): ?>->add('<?= $field['fieldName'] ?>')
<?php endif; ?><?php endforeach; ?>;
}

Expand Down

0 comments on commit 2792d2e

Please sign in to comment.