Skip to content
Browse files

ws and cs

  • Loading branch information...
1 parent c19886d commit 7465da9b865145040ae29711b8b71fb8a8e09d7d @elHornair elHornair committed
Showing with 1 addition and 4 deletions.
  1. +1 −2 Form/DataTransformer/ModelToFileTransformer.php
  2. +0 −2 Form/Type/ImageType.php
View
3 Form/DataTransformer/ModelToFileTransformer.php
@@ -10,13 +10,12 @@
class ModelToFileTransformer implements DataTransformerInterface
{
-
/**
* {@inheritdoc}
*/
public function reverseTransform($uploadedFile)
{
- if (! $uploadedFile instanceof UploadedFile) {
+ if (!$uploadedFile instanceof UploadedFile) {
return $uploadedFile;
}
View
2 Form/Type/ImageType.php
@@ -8,7 +8,6 @@
class ImageType extends AbstractType
{
-
public function getParent()
{
return 'file';
@@ -24,5 +23,4 @@ public function buildForm(FormBuilderInterface $builder, array $options)
$transformer = new ModelToFileTransformer();
$builder->addModelTransformer($transformer);
}
-
}

0 comments on commit 7465da9

Please sign in to comment.
Something went wrong with that request. Please try again.