@@ -58,7 +58,7 @@ |
||
| 58 | 58 | $response->setExpires(date_create()->modify('+1 years')); |
| 59 | 59 | |
| 60 | 60 | $response->setCallback( |
| 61 | - function () use ($stream) { |
|
| 61 | + function() use ($stream) { |
|
| 62 | 62 | if (ftell($stream['stream']) !== 0) { |
| 63 | 63 | rewind($stream['stream']); |
| 64 | 64 | } |
@@ -11,7 +11,6 @@ |
||
| 11 | 11 | namespace IrishDan\ResponsiveImageBundle\Controller; |
| 12 | 12 | |
| 13 | 13 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 14 | - |
|
| 15 | 14 | use Symfony\Component\HttpFoundation\StreamedResponse; |
| 16 | 15 | |
| 17 | 16 | /** |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | |
| 45 | 45 | $builder->addEventListener( |
| 46 | 46 | FormEvents::PRE_SET_DATA, |
| 47 | - function (FormEvent $event) { |
|
| 47 | + function(FormEvent $event) { |
|
| 48 | 48 | $image = $event->getData(); |
| 49 | 49 | $form = $event->getForm(); |
| 50 | 50 | // Conditionally add form elements. |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | $this->image->resize( |
| 99 | 99 | $width, |
| 100 | 100 | $height, |
| 101 | - function ($constraint) { |
|
| 101 | + function($constraint) { |
|
| 102 | 102 | $constraint->aspectRatio(); |
| 103 | 103 | } |
| 104 | 104 | ); |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | $this->image->fit( |
| 178 | 178 | $this->styleData['width'], |
| 179 | 179 | $this->styleData['height'], |
| 180 | - function ($constraint) { |
|
| 180 | + function($constraint) { |
|
| 181 | 181 | $constraint->upsize(); |
| 182 | 182 | } |
| 183 | 183 | ); |
@@ -161,10 +161,10 @@ |
||
| 161 | 161 | $focusY2 = $this->focusCoordinates[3]; |
| 162 | 162 | |
| 163 | 163 | if ($type == 'near') { |
| 164 | - $point = ${'focus' . $axis . '1'} - ${'crop' . $axis . '1'}; |
|
| 164 | + $point = ${'focus' . $axis . '1'} -${'crop' . $axis . '1'}; |
|
| 165 | 165 | } |
| 166 | 166 | else { |
| 167 | - $point = ${'focus' . $axis . '2'} - ${'crop' . $axis . '1'}; |
|
| 167 | + $point = ${'focus' . $axis . '2'} -${'crop' . $axis . '1'}; |
|
| 168 | 168 | } |
| 169 | 169 | |
| 170 | 170 | return $point; |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | $size->resize( |
| 52 | 52 | $scaleX, |
| 53 | 53 | $scaleY, |
| 54 | - function ($constraint) { |
|
| 54 | + function($constraint) { |
|
| 55 | 55 | $constraint->aspectRatio(); |
| 56 | 56 | } |
| 57 | 57 | ); |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | ->method('findImageFromFilename') |
| 32 | 32 | ->will( |
| 33 | 33 | $this->returnCallback( |
| 34 | - function ($filename) { |
|
| 34 | + function($filename) { |
|
| 35 | 35 | $image = new TestImage(); |
| 36 | 36 | if ($filename === $image->getPath()) { |
| 37 | 37 | return $image; |
@@ -11,7 +11,6 @@ |
||
| 11 | 11 | namespace IrishDan\ResponsiveImageBundle\Tests\File; |
| 12 | 12 | |
| 13 | 13 | use Doctrine\ORM\EntityManager; |
| 14 | - |
|
| 15 | 14 | use IrishDan\ResponsiveImageBundle\File\FileToObject; |
| 16 | 15 | use IrishDan\ResponsiveImageBundle\ImageEntityNameResolver; |
| 17 | 16 | use IrishDan\ResponsiveImageBundle\ResponsiveImageInterface; |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | ->method('getObjectFromFilename') |
| 28 | 28 | ->will( |
| 29 | 29 | $this->returnCallback( |
| 30 | - function ($filename) { |
|
| 30 | + function($filename) { |
|
| 31 | 31 | $existingFilenames = [ |
| 32 | 32 | 'test.jpg', |
| 33 | 33 | 'test_1.jpg', |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | use IrishDan\ResponsiveImageBundle\Event\ImageEvent; |
| 15 | 15 | use IrishDan\ResponsiveImageBundle\Event\ImageEvents; |
| 16 | 16 | use IrishDan\ResponsiveImageBundle\ImageProcessing\ImageManager; |
| 17 | - |
|
| 18 | 17 | use Symfony\Component\EventDispatcher\EventSubscriberInterface; |
| 19 | 18 | |
| 20 | 19 | /** |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | use IrishDan\ResponsiveImageBundle\Event\UploaderEvent; |
| 14 | 14 | use IrishDan\ResponsiveImageBundle\Event\UploaderEvents; |
| 15 | 15 | use League\Flysystem\FilesystemInterface; |
| 16 | - |
|
| 17 | 16 | use Symfony\Component\EventDispatcher\EventSubscriberInterface; |
| 18 | 17 | |
| 19 | 18 | /** |