Completed
Pull Request — master (#13)
by
unknown
13:20
created
Controller/ImageController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
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
                         }
Please login to merge, or discard this patch.
Form/ResponsiveImageType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
ImageProcessing/ImageStyler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
                     );
Please login to merge, or discard this patch.
ImageProcessing/FocusCropDataCalculator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -161,10 +161,10 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
ImageProcessing/CoordinateGeometry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
         $size->resize(
52 52
             $scaleX,
53 53
             $scaleY,
54
-            function ($constraint) {
54
+            function($constraint) {
55 55
                 $constraint->aspectRatio();
56 56
             }
57 57
         );
Please login to merge, or discard this patch.
Tests/File/FileToObjectTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Tests/File/FilenameTransliteratorTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
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',
Please login to merge, or discard this patch.
Tests/ImageProcessing/FocusCropDataCalculatorTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,8 +61,8 @@
 block discarded – undo
61 61
                 $message = 'Too wide: ' . $focusCropData['width'] . '<=' . $width;
62 62
                 $this->assertTrue($focusCropData['width'] <= $width, $message);
63 63
 
64
-                $message = 'Too high: ' . (int)round($focusCropData['height']) . ' <= ' . $height;
65
-                $this->assertTrue((int)round($focusCropData['height']) <= (int)$height, $message);
64
+                $message = 'Too high: ' . (int) round($focusCropData['height']) . ' <= ' . $height;
65
+                $this->assertTrue((int) round($focusCropData['height']) <= (int) $height, $message);
66 66
 
67 67
                 $this->assertTrue($focusCropData['x'] >= $imageCoordinates['crop_coordinates'][0]); // x1
68 68
                 $this->assertTrue($focusCropData['y'] >= $imageCoordinates['crop_coordinates'][1]); // y1
Please login to merge, or discard this patch.
Command/GenerateImageEntityCommand.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
 
149 149
             $question->setValidator(['Sensio\Bundle\GeneratorBundle\Command\Validators', 'validateBundleName']);
150 150
             $question->setNormalizer(
151
-                function ($value) {
151
+                function($value) {
152 152
                     return $value ? trim($value) : '';
153 153
                 }
154 154
             );
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
                 $input->getOption('entity_name')
172 172
             );
173 173
             $question->setValidator(
174
-                function ($answer) {
174
+                function($answer) {
175 175
                     // Should only contain letters.
176 176
                     $valid = preg_match('/^[a-zA-Z]+$/', $answer);
177 177
                     if (!$valid) {
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
                 }
185 185
             );
186 186
             $question->setNormalizer(
187
-                function ($value) {
187
+                function($value) {
188 188
                     return $value ? trim($value) : '';
189 189
                 }
190 190
             );
@@ -264,12 +264,12 @@  discard block
 block discarded – undo
264 264
             ), 'yes'
265 265
         );
266 266
         $question->setNormalizer(
267
-            function ($value) {
267
+            function($value) {
268 268
                 return $value[0] == 'y' ? 'y' : 'n';
269 269
             }
270 270
         );
271 271
         $question->setValidator(
272
-            function ($answer) {
272
+            function($answer) {
273 273
                 // Should only contain letters.
274 274
                 $allowed = [
275 275
                     'y',
Please login to merge, or discard this patch.