Completed
Push — master ( 3959e3...b87c44 )
by Tim
16:38
created
Classes/Service/WizardHandler/File.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     /**
42 42
      * Return the current point.
43 43
      *
44
-     * @return int[]
44
+     * @return integer[]
45 45
      */
46 46
     public function getCurrentPoint()
47 47
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,10 +99,10 @@
 block discarded – undo
99 99
         }
100 100
         $p = $parameter['P'];
101 101
         if (isset($p['metaUid']) && MathUtility::canBeInterpretedAsInteger($p['metaUid'])) {
102
-            return (int) $p['metaUid'];
102
+            return (int)$p['metaUid'];
103 103
         }
104 104
         if (isset($p['table']) && 'sys_file_metadata' == $p['table'] && isset($p['uid']) && MathUtility::canBeInterpretedAsInteger($p['uid'])) {
105
-            return (int) $p['uid'];
105
+            return (int)$p['uid'];
106 106
         }
107 107
 
108 108
         return null;
Please login to merge, or discard this patch.
Classes/Hooks/FileList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,6 +74,6 @@
 block discarded – undo
74 74
             throw new \Exception('No meta data found', 1475144024);
75 75
         }
76 76
 
77
-        return (int) $metaData['uid'];
77
+        return (int)$metaData['uid'];
78 78
     }
79 79
 }
Please login to merge, or discard this patch.
Classes/Hooks/GetData.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,14 +52,14 @@
 block discarded – undo
52 52
                 case 'yp':
53 53
                     $metaData = $originalFile->_getMetaData();
54 54
 
55
-                    return (float) $metaData['focus_point_' . substr($parts[1], 0, 1)];
55
+                    return (float)$metaData['focus_point_' . substr($parts[1], 0, 1)];
56 56
                 case 'xp_positive':
57 57
                 case 'yp_positive':
58 58
                     $metaData = $originalFile->_getMetaData();
59 59
                     if ('xp_positive' == $parts[1]) {
60
-                        return (int) (abs($metaData['focus_point_' . substr($parts[1], 0, 1)] + 100) / 2);
60
+                        return (int)(abs($metaData['focus_point_' . substr($parts[1], 0, 1)] + 100) / 2);
61 61
                     } else {
62
-                        return (int) (abs($metaData['focus_point_' . substr($parts[1], 0, 1)] - 100) / 2);
62
+                        return (int)(abs($metaData['focus_point_' . substr($parts[1], 0, 1)] - 100) / 2);
63 63
                     }
64 64
                     // no break
65 65
                 case 'w':
Please login to merge, or discard this patch.
Classes/Utility/FileUtility.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
             throw new \Exception('File not found in metadata', 1475144028);
34 34
         }
35 35
 
36
-        return self::getFileByUid((int) $row['file']);
36
+        return self::getFileByUid((int)$row['file']);
37 37
     }
38 38
 
39 39
     /**
Please login to merge, or discard this patch.
Classes/Service/TcaService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     {
58 58
         $databaseConnection = GlobalUtility::getDatabaseConnection();
59 59
 
60
-        return (array) $databaseConnection->exec_SELECTgetRows(
60
+        return (array)$databaseConnection->exec_SELECTgetRows(
61 61
             '*',
62 62
             'tx_focuspoint_domain_model_dimension',
63 63
             '1=1' . BackendUtility::deleteClause('tx_focuspoint_domain_model_dimension')
Please login to merge, or discard this patch.
Classes/Service/WizardHandler/AbstractWizardHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,8 +84,8 @@
 block discarded – undo
84 84
     protected function cleanupPosition($position)
85 85
     {
86 86
         return [
87
-            MathUtility::forceIntegerInRange((int) $position[0], -100, 100, 0),
88
-            MathUtility::forceIntegerInRange((int) $position[1], -100, 100, 0),
87
+            MathUtility::forceIntegerInRange((int)$position[0], -100, 100, 0),
88
+            MathUtility::forceIntegerInRange((int)$position[1], -100, 100, 0),
89 89
         ];
90 90
     }
91 91
 }
Please login to merge, or discard this patch.
Classes/Service/WizardHandler/FileReference.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
         }
108 108
         $p = $parameter['P'];
109 109
         if (isset($p['referenceUid']) && MathUtility::canBeInterpretedAsInteger($p['referenceUid'])) {
110
-            return (int) $p['referenceUid'];
110
+            return (int)$p['referenceUid'];
111 111
         }
112 112
 
113 113
         return null;
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     /**
42 42
      * Return the current point.
43 43
      *
44
-     * @return int[]
44
+     * @return integer[]
45 45
      */
46 46
     public function getCurrentPoint()
47 47
     {
Please login to merge, or discard this patch.
Classes/Service/FocusCropService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -146,8 +146,8 @@  discard block
 block discarded – undo
146 146
         }
147 147
         $docRoot = rtrim(GeneralUtility::getIndpEnv('TYPO3_DOCUMENT_ROOT'), '/') . '/';
148 148
         $relativeSrc = str_replace($docRoot, '', $absoluteImageName);
149
-        $focusPointX = MathUtility::forceIntegerInRange((int) $x, -100, 100, 0);
150
-        $focusPointY = MathUtility::forceIntegerInRange((int) $y, -100, 100, 0);
149
+        $focusPointX = MathUtility::forceIntegerInRange((int)$x, -100, 100, 0);
150
+        $focusPointY = MathUtility::forceIntegerInRange((int)$y, -100, 100, 0);
151 151
 
152 152
         if (0 === $focusPointX && 0 === $focusPointY) {
153 153
             $connection = GlobalUtility::getDatabaseConnection();
@@ -157,8 +157,8 @@  discard block
 block discarded – undo
157 157
                 'relative_file_path = ' . $connection->fullQuoteStr($relativeSrc, Group::TABLE)
158 158
             );
159 159
             if ($row) {
160
-                $focusPointX = MathUtility::forceIntegerInRange((int) $row['focus_point_x'], -100, 100, 0);
161
-                $focusPointY = MathUtility::forceIntegerInRange((int) $row['focus_point_y'], -100, 100, 0);
160
+                $focusPointX = MathUtility::forceIntegerInRange((int)$row['focus_point_x'], -100, 100, 0);
161
+                $focusPointY = MathUtility::forceIntegerInRange((int)$row['focus_point_y'], -100, 100, 0);
162 162
             }
163 163
         }
164 164
 
Please login to merge, or discard this patch.
Classes/Service/WizardHandler/Group.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     /**
42 42
      * Return the current point.
43 43
      *
44
-     * @return int[]
44
+     * @return integer[]
45 45
      */
46 46
     public function getCurrentPoint()
47 47
     {
Please login to merge, or discard this patch.