@@ -41,7 +41,7 @@ |
||
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 | { |
@@ -99,10 +99,10 @@ |
||
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; |
@@ -74,6 +74,6 @@ |
||
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 | } |
@@ -52,14 +52,14 @@ |
||
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': |
@@ -33,7 +33,7 @@ |
||
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 | /** |
@@ -111,7 +111,7 @@ |
||
111 | 111 | if ('tt_content' !== $parts[0]) { |
112 | 112 | return null; |
113 | 113 | } |
114 | - $record = BackendUtility::getRecord($parts[0], (int) $parts[1]); |
|
114 | + $record = BackendUtility::getRecord($parts[0], (int)$parts[1]); |
|
115 | 115 | |
116 | 116 | return isset($record['image_ratio']) ? trim($record['image_ratio']) : null; |
117 | 117 | } |
@@ -57,7 +57,7 @@ |
||
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') |
@@ -84,8 +84,8 @@ |
||
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 | } |
@@ -107,7 +107,7 @@ |
||
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; |
@@ -41,7 +41,7 @@ |
||
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 | { |
@@ -146,8 +146,8 @@ discard block |
||
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 |
||
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 |