Completed
Push — master ( f5775a...d27d3a )
by Tim
15:31
created
Classes/Service/FocusCropService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -149,14 +149,14 @@
 block discarded – undo
149 149
         $params = $GLOBALS['TYPO3_REQUEST']->getAttribute('normalizedParams');
150 150
         $docRoot = \rtrim($params->getDocumentRoot(), '/') . '/';
151 151
         $relativeSrc = \str_replace($docRoot, '', $absoluteImageName);
152
-        $focusPointX = MathUtility::forceIntegerInRange((int) $x, -100, 100, 0);
153
-        $focusPointY = MathUtility::forceIntegerInRange((int) $y, -100, 100, 0);
152
+        $focusPointX = MathUtility::forceIntegerInRange((int)$x, -100, 100, 0);
153
+        $focusPointY = MathUtility::forceIntegerInRange((int)$y, -100, 100, 0);
154 154
 
155 155
         if (0 === $focusPointX && 0 === $focusPointY) {
156 156
             $row = GeneralUtility::makeInstance(FileStandaloneRepository::class)->findOneByRelativeFilePath($relativeSrc);
157 157
             if (isset($row['focus_point_x'])) {
158
-                $focusPointX = MathUtility::forceIntegerInRange((int) $row['focus_point_x'], -100, 100, 0);
159
-                $focusPointY = MathUtility::forceIntegerInRange((int) $row['focus_point_y'], -100, 100, 0);
158
+                $focusPointX = MathUtility::forceIntegerInRange((int)$row['focus_point_x'], -100, 100, 0);
159
+                $focusPointY = MathUtility::forceIntegerInRange((int)$row['focus_point_y'], -100, 100, 0);
160 160
             }
161 161
         }
162 162
 
Please login to merge, or discard this patch.
Classes/Controller/Wizard/FocuspointController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
      */
80 80
     public function mainAction(ServerRequestInterface $request, ResponseInterface $response = null)
81 81
     {
82
-        if($response === null) {
82
+        if ($response === null) {
83 83
             $response = new HtmlResponse('');
84 84
         }
85 85
         $content = $this->main();
Please login to merge, or discard this patch.