@@ -22,7 +22,7 @@ |
||
| 22 | 22 | // } |
| 23 | 23 | |
| 24 | 24 | if ($app->offsetExists('form.factory')) { |
| 25 | - $app['form.types'] = $app->share($app->extend('form.types', function ($types) use ($app) { |
|
| 25 | + $app['form.types'] = $app->share($app->extend('form.types', function($types) use ($app) { |
|
| 26 | 26 | $types[] = new Form\Type\MediaType($app); |
| 27 | 27 | return $types; |
| 28 | 28 | })); |
@@ -70,8 +70,7 @@ |
||
| 70 | 70 | |
| 71 | 71 | if (!$media instanceof Media) { |
| 72 | 72 | $media = new Media(); |
| 73 | - } |
|
| 74 | - else { |
|
| 73 | + } else { |
|
| 75 | 74 | $media->setBinary(null); |
| 76 | 75 | } |
| 77 | 76 | |