Completed
Push — master ( c08dd2...1782ed )
by Alf
07:37
created
Classes/ViewHelpers/GetVimeoIdViewHelper.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -36,14 +36,14 @@
 block discarded – undo
36 36
  */
37 37
 class GetVimeoIdViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper {
38 38
 
39
-    /**
40
-     * @param string $url
41
-     * @return string
42
-     */
43
-    public function render($url) {
44
-        if (preg_match("/https?:\/\/(?:www\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|)(\d+)(?:$|\/|\?)/", $url, $match)) {
45
-            $videoId = $match[3];
46
-        }
47
-        return $videoId;
48
-    }
39
+	/**
40
+	 * @param string $url
41
+	 * @return string
42
+	 */
43
+	public function render($url) {
44
+		if (preg_match("/https?:\/\/(?:www\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|)(\d+)(?:$|\/|\?)/", $url, $match)) {
45
+			$videoId = $match[3];
46
+		}
47
+		return $videoId;
48
+	}
49 49
 }
Please login to merge, or discard this patch.
Classes/ViewHelpers/GetYoutubeIdViewHelper.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -36,14 +36,14 @@
 block discarded – undo
36 36
  */
37 37
 class GetYoutubeIdViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper {
38 38
 
39
-    /**
40
-     * @param string $url
41
-     * @return string
42
-     */
43
-    public function render($url) {
44
-        if (preg_match('%(?:youtube(?:-nocookie)?\.com/(?:[^/]+/.+/|(?:v|e(?:mbed)?)/|.*[?&]v=)|youtu\.be/)([^"&?/ ]{11})%i', $url, $match)) {
45
-            $videoId = $match[1];
46
-        }
47
-        return $videoId;
48
-    }
39
+	/**
40
+	 * @param string $url
41
+	 * @return string
42
+	 */
43
+	public function render($url) {
44
+		if (preg_match('%(?:youtube(?:-nocookie)?\.com/(?:[^/]+/.+/|(?:v|e(?:mbed)?)/|.*[?&]v=)|youtu\.be/)([^"&?/ ]{11})%i', $url, $match)) {
45
+			$videoId = $match[1];
46
+		}
47
+		return $videoId;
48
+	}
49 49
 }
Please login to merge, or discard this patch.
Configuration/TCA/Overrides/tt_content.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 		'text' => 'mimetypes-x-content-text'
29 29
 	)
30 30
 );
31
-if (TRUE === isset($GLOBALS['TCA']['tt_content']['ctrl']['typeicons'])) {
31
+if (TRUE===isset($GLOBALS['TCA']['tt_content']['ctrl']['typeicons'])) {
32 32
 	$GLOBALS['TCA']['tt_content']['ctrl']['typeicons'] = array_merge(
33 33
 		$GLOBALS['TCA']['tt_content']['ctrl']['typeicons'],
34 34
 		array(
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 $GLOBALS['TYPO3_CONF_VARS']['SYS']['FileInfo']['fileExtensionToMimeType']['ogv'] = 'video/ogv';
59 59
 $GLOBALS['TYPO3_CONF_VARS']['SYS']['mediafile_ext'] .= ',ogv';
60 60
 
61
-$additionalColumns = Array (
61
+$additionalColumns = Array(
62 62
 	'assets' => Array(
63 63
 		'label' => 'LLL:EXT:moox_core/Resources/Private/Language/Database.xlf:tt_content.asset_references',
64 64
 		'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('assets', Array(
@@ -68,52 +68,52 @@  discard block
 block discarded – undo
68 68
 			'foreign_types' => $GLOBALS['TCA']['tt_content']['columns']['image']['config']['foreign_types']
69 69
 		), $GLOBALS['TYPO3_CONF_VARS']['SYS']['mediafile_ext'])
70 70
 	),
71
-	'tx_mooxcore_hide_desktop' => Array (
71
+	'tx_mooxcore_hide_desktop' => Array(
72 72
 		'exclude' => 1,
73 73
 		'label' => 'LLL:EXT:moox_core/Resources/Private/Language/Database.xlf:tt_content.tx_mooxcore_hide_desktop',
74
-		'config' => Array (
74
+		'config' => Array(
75 75
 			'type' => 'check',
76 76
 		)
77 77
 	),
78
-	'tx_mooxcore_hide_laptop' => Array (
78
+	'tx_mooxcore_hide_laptop' => Array(
79 79
 		'exclude' => 1,
80 80
 		'label' => 'LLL:EXT:moox_core/Resources/Private/Language/Database.xlf:tt_content.tx_mooxcore_hide_laptop',
81
-		'config' => Array (
81
+		'config' => Array(
82 82
 			'type' => 'check',
83 83
 		)
84 84
 	),
85
-	'tx_mooxcore_hide_tablet' => Array (
85
+	'tx_mooxcore_hide_tablet' => Array(
86 86
 		'exclude' => 1,
87 87
 		'label' => 'LLL:EXT:moox_core/Resources/Private/Language/Database.xlf:tt_content.tx_mooxcore_hide_tablet',
88
-		'config' => Array (
88
+		'config' => Array(
89 89
 			'type' => 'check',
90 90
 		)
91 91
 	),
92
-	'tx_mooxcore_hide_phone' => Array (
92
+	'tx_mooxcore_hide_phone' => Array(
93 93
 		'exclude' => 1,
94 94
 		'label' => 'LLL:EXT:moox_core/Resources/Private/Language/Database.xlf:tt_content.tx_mooxcore_hide_phone',
95
-		'config' => Array (
95
+		'config' => Array(
96 96
 			'type' => 'check',
97 97
 		)
98 98
 	),
99
-	'tx_mooxcore_hide_print' => Array (
99
+	'tx_mooxcore_hide_print' => Array(
100 100
 		'exclude' => 1,
101 101
 		'label' => 'LLL:EXT:moox_core/Resources/Private/Language/Database.xlf:tt_content.tx_mooxcore_hide_print',
102
-		'config' => Array (
102
+		'config' => Array(
103 103
 			'type' => 'check',
104 104
 		)
105 105
 	),
106
-	'tx_mooxcore_hide_barrierfree' => Array (
106
+	'tx_mooxcore_hide_barrierfree' => Array(
107 107
 		'exclude' => 1,
108 108
 		'label' => 'LLL:EXT:moox_core/Resources/Private/Language/Database.xlf:tt_content.tx_mooxcore_hide_barrierfree',
109
-		'config' => Array (
109
+		'config' => Array(
110 110
 			'type' => 'check',
111 111
 		)
112 112
 	),
113
-	'tx_mooxcore_hide_oldbrowser' => Array (
113
+	'tx_mooxcore_hide_oldbrowser' => Array(
114 114
 		'exclude' => 1,
115 115
 		'label' => 'LLL:EXT:moox_core/Resources/Private/Language/Database.xlf:tt_content.tx_mooxcore_hide_oldbrowser',
116
-		'config' => Array (
116
+		'config' => Array(
117 117
 			'type' => 'check',
118 118
 		)
119 119
 	),
@@ -419,12 +419,12 @@  discard block
 block discarded – undo
419 419
 	$GLOBALS['TCA']['tt_content']['palettes']['table']
420 420
 );
421 421
 
422
-if (FALSE === \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('form')) {
423
-	unset( $GLOBALS['TCA']['tt_content']['types']['mailform'] );
422
+if (FALSE===\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('form')) {
423
+	unset($GLOBALS['TCA']['tt_content']['types']['mailform']);
424 424
 }
425 425
 
426 426
 foreach ($GLOBALS['TCA']['tt_content']['columns']['CType']['config']['items'] as $index => $item) {
427
-	if ($item[1] === 'multimedia') {
427
+	if ($item[1]==='multimedia') {
428 428
 		unset($GLOBALS['TCA']['tt_content']['columns']['CType']['config']['items'][$index]);
429 429
 	}
430 430
 };
Please login to merge, or discard this patch.