Skip to content

Commit

Permalink
fix typehint
Browse files Browse the repository at this point in the history
  • Loading branch information
avalanche123 committed Jul 25, 2011
1 parent f1d0829 commit 8a73e0a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Imagine/Filter/Loader/ThumbnailFilterLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@
namespace Avalanche\Bundle\ImagineBundle\Imagine\Filter\Loader;

use Imagine\Image\Box;
use Imagine\Image\ManipulatorInterface;
use Imagine\Filter\Basic\Thumbnail;

class ThumbnailFilterLoader implements LoaderInterface
{
public function load(array $options = array())
{
$mode = $options['mode'] === 'inset' ?
ImageInterface::THUMBNAIL_INSET :
ImageInterface::THUMBNAIL_OUTBOUND;
ManipulatorInterface::THUMBNAIL_INSET :
ManipulatorInterface::THUMBNAIL_OUTBOUND;

list($width, $height) = $options['size'];

Expand Down

0 comments on commit 8a73e0a

Please sign in to comment.