@@ -49,7 +49,7 @@ |
||
49 | 49 | // Work around a bug in BackendUtility::getModuleUrl if matches is empty getModuleUrl() will not return the parameter. |
50 | 50 | $matches = $this->templateVariableContainer->get('matches'); |
51 | 51 | if (empty($matches)) { |
52 | - $moduleUrl .= '&' . urlencode(VidiModule::getParameterPrefix() . '[matches]='); |
|
52 | + $moduleUrl .= '&'.urlencode(VidiModule::getParameterPrefix().'[matches]='); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | return $moduleUrl; |
@@ -42,7 +42,7 @@ |
||
42 | 42 | $permission .= 'W'; |
43 | 43 | } |
44 | 44 | |
45 | - return '<strong>' . $permission . '</strong>'; |
|
45 | + return '<strong>'.$permission.'</strong>'; |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | /** |
@@ -131,7 +131,7 @@ |
||
131 | 131 | reset($attribute); |
132 | 132 | $key = key($attribute); |
133 | 133 | if (!is_string($key)) { |
134 | - throw new InvalidStringException('Not an associative array. Is not a key: ' . $key, 1356478742); |
|
134 | + throw new InvalidStringException('Not an associative array. Is not a key: '.$key, 1356478742); |
|
135 | 135 | } |
136 | 136 | |
137 | 137 | $this->attributes[$key] = $attribute[$key]; |
@@ -44,7 +44,7 @@ |
||
44 | 44 | ->setIcon($this->getIconFactory()->getIcon('actions-document-new', Icon::SIZE_SMALL)) |
45 | 45 | ->render(); |
46 | 46 | |
47 | - $output = '<div style="float: left;">' . $button . '</div>'; |
|
47 | + $output = '<div style="float: left;">'.$button.'</div>'; |
|
48 | 48 | } |
49 | 49 | return $output; |
50 | 50 | } |
@@ -16,7 +16,7 @@ |
||
16 | 16 | |
17 | 17 | use Fab\Media\Tests\Functional\AbstractFunctionalTestCase; |
18 | 18 | |
19 | -require_once dirname(dirname(__FILE__)) . '/AbstractFunctionalTestCase.php'; |
|
19 | +require_once dirname(dirname(__FILE__)).'/AbstractFunctionalTestCase.php'; |
|
20 | 20 | |
21 | 21 | /** |
22 | 22 | * Test case for class \Fab\Media\Utility\Configuration. |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | |
12 | 12 | $tca = [ |
13 | 13 | 'types' => [ |
14 | - 0 => ['showitem' => $GLOBALS['TCA']['sys_file_storage']['types'][0]['showitem'] . ', |
|
14 | + 0 => ['showitem' => $GLOBALS['TCA']['sys_file_storage']['types'][0]['showitem'].', |
|
15 | 15 | |
16 | 16 | --div--;LLL:EXT:media/Resources/Private/Language/locallang_db.xlf:tab.upload_settings, |
17 | 17 | maximum_dimension_original_image, extension_allowed_file_type_1, extension_allowed_file_type_2, extension_allowed_file_type_3, extension_allowed_file_type_4, extension_allowed_file_type_5, |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | $tcaForHiddenFolderTree = [ |
82 | 82 | |
83 | 83 | 'types' => [ |
84 | - 0 => ['showitem' => $GLOBALS['TCA']['sys_file_storage']['types'][0]['showitem'] . ', |
|
84 | + 0 => ['showitem' => $GLOBALS['TCA']['sys_file_storage']['types'][0]['showitem'].', |
|
85 | 85 | |
86 | 86 | --div--;LLL:EXT:media/Resources/Private/Language/locallang_db.xlf:tab.media_mount_point, |
87 | 87 | mount_point_file_type_1, mount_point_file_type_2, mount_point_file_type_3, mount_point_file_type_4, mount_point_file_type_5, |
@@ -55,11 +55,11 @@ discard block |
||
55 | 55 | */ |
56 | 56 | public static function setOrientation($filename, $orientation) |
57 | 57 | { |
58 | - $exif_data = []; // Buffer |
|
58 | + $exif_data = []; // Buffer |
|
59 | 59 | $offsetJfif = 0; |
60 | 60 | |
61 | 61 | if (($fh = fopen($filename, 'rb+')) === false) { |
62 | - throw new \RuntimeException('Can\'t open ' . $filename, 1363533724); |
|
62 | + throw new \RuntimeException('Can\'t open '.$filename, 1363533724); |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | // Read file head, check for JPEG SOI + JFIF/Exif APP1 |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | if ($exif_data[2] === 0xFF && $exif_data[3] === 0xE0) { |
74 | 74 | // Get the marker parameter length count |
75 | 75 | $length = self::read_2_bytes($fh); |
76 | - $offsetJfif = $length + 2; // "+ 2" to skip the 2 bytes introducing this additional segment |
|
76 | + $offsetJfif = $length + 2; // "+ 2" to skip the 2 bytes introducing this additional segment |
|
77 | 77 | // Length includes itself, so must be at least 2 |
78 | 78 | // Following JFIF data length must be at least 6 |
79 | 79 | if ($length < 8) { |
@@ -204,9 +204,9 @@ discard block |
||
204 | 204 | |
205 | 205 | // Set the Orientation value |
206 | 206 | if ($is_motorola) { |
207 | - $exif_data[$offset + 2] = 0; // Format = unsigned short (2 octets) |
|
207 | + $exif_data[$offset + 2] = 0; // Format = unsigned short (2 octets) |
|
208 | 208 | $exif_data[$offset + 3] = 3; |
209 | - $exif_data[$offset + 4] = 0; // Number of Components = 1 |
|
209 | + $exif_data[$offset + 4] = 0; // Number of Components = 1 |
|
210 | 210 | $exif_data[$offset + 5] = 0; |
211 | 211 | $exif_data[$offset + 6] = 0; |
212 | 212 | $exif_data[$offset + 7] = 1; |
@@ -215,9 +215,9 @@ discard block |
||
215 | 215 | $exif_data[$offset + 10] = 0; |
216 | 216 | $exif_data[$offset + 11] = 0; |
217 | 217 | } else { |
218 | - $exif_data[$offset + 2] = 3; // Format = unsigned short (2 octets) |
|
218 | + $exif_data[$offset + 2] = 3; // Format = unsigned short (2 octets) |
|
219 | 219 | $exif_data[$offset + 3] = 0; |
220 | - $exif_data[$offset + 4] = 1; // Number of Components = 1 |
|
220 | + $exif_data[$offset + 4] = 1; // Number of Components = 1 |
|
221 | 221 | $exif_data[$offset + 5] = 0; |
222 | 222 | $exif_data[$offset + 6] = 0; |
223 | 223 | $exif_data[$offset + 7] = 0; |
@@ -73,7 +73,7 @@ |
||
73 | 73 | return sprintf( |
74 | 74 | '<img src="%s%s" title="%s" alt="%s" %s/>', |
75 | 75 | $result, |
76 | - $this->thumbnailService->getAppendTimeStamp() ? $parameterSeparator . $this->getTimeStamp() : '', |
|
76 | + $this->thumbnailService->getAppendTimeStamp() ? $parameterSeparator.$this->getTimeStamp() : '', |
|
77 | 77 | $this->getTitle(), |
78 | 78 | $this->getTitle(), |
79 | 79 | $this->renderAttributes() |
@@ -65,7 +65,7 @@ |
||
65 | 65 | return false; |
66 | 66 | } |
67 | 67 | |
68 | - $this->setName(uniqid() . '.' . $this->extension); |
|
68 | + $this->setName(uniqid().'.'.$this->extension); |
|
69 | 69 | } |
70 | 70 | |
71 | 71 | /** |