Skip to content

Commit

Permalink
ws and cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Alain Horner committed Feb 25, 2013
1 parent c19886d commit 7465da9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions Form/DataTransformer/ModelToFileTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@

class ModelToFileTransformer implements DataTransformerInterface
{

/**
* {@inheritdoc}
*/
public function reverseTransform($uploadedFile)
{
if (! $uploadedFile instanceof UploadedFile) {
if (!$uploadedFile instanceof UploadedFile) {
return $uploadedFile;
}

Expand Down
2 changes: 0 additions & 2 deletions Form/Type/ImageType.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

class ImageType extends AbstractType
{

public function getParent()
{
return 'file';
Expand All @@ -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.