Completed
Branch master (a35b70)
by Tim
04:45
created
Resources/Private/Php/vendor/symfony/css-selector/Parser/Parser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,11 +68,11 @@
 block discarded – undo
68 68
             }
69 69
         }
70 70
 
71
-        $joined = trim(implode('', array_map(function (Token $token) {
71
+        $joined = trim(implode('', array_map(function(Token $token) {
72 72
             return $token->getValue();
73 73
         }, $tokens)));
74 74
 
75
-        $int = function ($string) {
75
+        $int = function($string) {
76 76
             if (!is_numeric($string)) {
77 77
                 throw SyntaxErrorException::stringAsFunctionArgument();
78 78
             }
Please login to merge, or discard this patch.
Classes/Configuration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 	 * @return int
19 19
 	 */
20 20
 	static public function getPlainTextWith() {
21
-		return isset($GLOBALS['TSFE']->config['config']['plainTextWith']) ? (int)$GLOBALS['TSFE']->config['config']['plainTextWith'] : 76;
21
+		return isset($GLOBALS['TSFE']->config['config']['plainTextWith']) ? (int) $GLOBALS['TSFE']->config['config']['plainTextWith'] : 76;
22 22
 	}
23 23
 
24 24
 	/**
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 	 * @return string
37 37
 	 */
38 38
 	static public function isPlainTable100() {
39
-		return isset($GLOBALS['TSFE']->config['config']['plainTable100']) && trim($GLOBALS['TSFE']->config['config']['plainTable100']) !== '' ? (bool)$GLOBALS['TSFE']->config['config']['plainTable100'] : TRUE;
39
+		return isset($GLOBALS['TSFE']->config['config']['plainTable100']) && trim($GLOBALS['TSFE']->config['config']['plainTable100']) !== '' ? (bool) $GLOBALS['TSFE']->config['config']['plainTable100'] : TRUE;
40 40
 	}
41 41
 
42 42
 }
43 43
\ No newline at end of file
Please login to merge, or discard this patch.
Classes/Postprocessing/InlineCss.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
 						$parts['path'] = ltrim($parts['path'], '/');
47 47
 					}
48 48
 
49
-					if($parts['host'] === GeneralUtility::getIndpEnv('TYPO3_HOST_ONLY')) {
49
+					if ($parts['host'] === GeneralUtility::getIndpEnv('TYPO3_HOST_ONLY')) {
50 50
 						unset($parts['scheme']);
51 51
 						unset($parts['host']);
52 52
 						$parts['path'] = ltrim($parts['path'], '/');
Please login to merge, or discard this patch.
Classes/PlainRenderer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 	public function render($content, $conf) {
45 45
 		$lines = array();
46 46
 		$this->conf = $conf;
47
-		$CType = (string)$this->cObj->data['CType'];
47
+		$CType = (string) $this->cObj->data['CType'];
48 48
 		if (isset($this->conf['forceCType']) && trim($this->conf['forceCType']) !== '') {
49 49
 			$CType = trim($this->conf['forceCType']);
50 50
 		}
@@ -77,10 +77,10 @@  discard block
 block discarded – undo
77 77
 			$renderObject = $objectManager->get($className);
78 78
 			$lines = $renderObject->render($this->cObj, $this->conf);
79 79
 		} else {
80
-			$lines[] = 'CType: ' . $CType . ' have no rendering definitions';
80
+			$lines[] = 'CType: '.$CType.' have no rendering definitions';
81 81
 		}
82 82
 		$content = implode(LF, $lines);
83
-		return trim($content, CRLF . TAB);
83
+		return trim($content, CRLF.TAB);
84 84
 	}
85 85
 
86 86
 	/**
@@ -99,6 +99,6 @@  discard block
 block discarded – undo
99 99
 		if (strtolower(substr($theLink, 0, 7)) == 'mailto:') {
100 100
 			$theLink = substr($theLink, 7);
101 101
 		}
102
-		return $this->cObj->getCurrentVal() . ' ( ' . $theLink . ' )';
102
+		return $this->cObj->getCurrentVal().' ( '.$theLink.' )';
103 103
 	}
104 104
 }
Please login to merge, or discard this patch.
Classes/Rendering/AbstractRendering.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -54,12 +54,12 @@  discard block
 block discarded – undo
54 54
 	 * @return    string        Processed content
55 55
 	 */
56 56
 	function parseBody($str, $altConf = 'bodytext') {
57
-		if ($this->configuration[$altConf . '.']['doubleLF']) {
57
+		if ($this->configuration[$altConf.'.']['doubleLF']) {
58 58
 			$str = preg_replace("/\n/", "\n\n", $str);
59 59
 		}
60 60
 		// Regular parsing:
61 61
 		$str = preg_replace('/<br\s*\/?>/i', chr(10), $str);
62
-		$str = $this->contentObject->stdWrap($str, $this->configuration[$altConf . '.']['stdWrap.']);
62
+		$str = $this->contentObject->stdWrap($str, $this->configuration[$altConf.'.']['stdWrap.']);
63 63
 
64 64
 		// Then all a-tags:
65 65
 		$aConf = array();
@@ -70,11 +70,11 @@  discard block
 block discarded – undo
70 70
 		$str = $this->contentObject->stdWrap($str, $aConf);
71 71
 		$str = str_replace('&nbsp;', ' ', htmlspecialchars_decode($str));
72 72
 
73
-		if ($this->configuration[$altConf . '.']['header']) {
74
-			$str = $this->configuration[$altConf . '.']['header'] . LF . $str;
73
+		if ($this->configuration[$altConf.'.']['header']) {
74
+			$str = $this->configuration[$altConf.'.']['header'].LF.$str;
75 75
 		}
76 76
 
77
-		return chr(10) . $str;
77
+		return chr(10).$str;
78 78
 	}
79 79
 
80 80
 	/**
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 	 * @return        string                Processed string
116 116
 	 */
117 117
 	function breakLines($str, $implChar = LF, $charWidth = FALSE) {
118
-		$charWidth = $charWidth === FALSE ? Configuration::getPlainTextWith() : (int)$charWidth;
118
+		$charWidth = $charWidth === FALSE ? Configuration::getPlainTextWith() : (int) $charWidth;
119 119
 		return MailUtility::breakLinesForEmail($str, $implChar, $charWidth);
120 120
 	}
121 121
 }
122 122
\ No newline at end of file
Please login to merge, or discard this patch.
Classes/Rendering/Header.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,12 +30,12 @@
 block discarded – undo
30 30
 		if ($this->contentObject->data['header_position'] == 'right') {
31 31
 			foreach ($header as $key => $l) {
32 32
 				$l = trim($l);
33
-				$header[$key] = str_pad(' ', (Configuration::getPlainTextWith() - strlen($l)), ' ', STR_PAD_LEFT) . $l;
33
+				$header[$key] = str_pad(' ', (Configuration::getPlainTextWith() - strlen($l)), ' ', STR_PAD_LEFT).$l;
34 34
 			}
35 35
 		} elseif ($this->contentObject->data['header_position'] == 'center') {
36 36
 			foreach ($header as $key => $l) {
37 37
 				$l = trim($l);
38
-				$header[$key] = str_pad(' ', floor((Configuration::getPlainTextWith() - strlen($l)) / 2), ' ', STR_PAD_LEFT) . $l;
38
+				$header[$key] = str_pad(' ', floor((Configuration::getPlainTextWith() - strlen($l)) / 2), ' ', STR_PAD_LEFT).$l;
39 39
 			}
40 40
 		}
41 41
 		$header = implode(LF, $header);
Please login to merge, or discard this patch.
Classes/Rendering/Text.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 	 */
20 20
 	public function renderInternal() {
21 21
 
22
-		$lines[] = trim($this->breakContent(strip_tags($this->parseBody($this->contentObject->data['bodytext']))), CRLF . TAB);
22
+		$lines[] = trim($this->breakContent(strip_tags($this->parseBody($this->contentObject->data['bodytext']))), CRLF.TAB);
23 23
 		return $lines;
24 24
 
25 25
 	}
Please login to merge, or discard this patch.
Classes/Rendering/Plugin.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -26,16 +26,16 @@  discard block
 block discarded – undo
26 26
 
27 27
 		if (isset($template->setup['tt_content.']['list.']['20.'][$listType])) {
28 28
 			$theValue = $template->setup['tt_content.']['list.']['20.'][$listType];
29
-			$theConf = $template->setup['tt_content.']['list.']['20.'][$listType . '.'];
29
+			$theConf = $template->setup['tt_content.']['list.']['20.'][$listType.'.'];
30 30
 		} else {
31 31
 			$tmp = explode('_pi', $listType);
32 32
 			if (count($tmp) < 2) {
33
-				$myName = 'tx_' . str_replace('_', '', $tmp[0]);
33
+				$myName = 'tx_'.str_replace('_', '', $tmp[0]);
34 34
 			} else {
35
-				$myName = 'tx_' . str_replace('_', '', $tmp[0]) . '_pi' . $tmp[1];
35
+				$myName = 'tx_'.str_replace('_', '', $tmp[0]).'_pi'.$tmp[1];
36 36
 			}
37 37
 			$theValue = $template->setup['plugin.'][$myName];
38
-			$theConf = $template->setup['plugin.'][$myName . '.'];
38
+			$theConf = $template->setup['plugin.'][$myName.'.'];
39 39
 		}
40 40
 		$content = $this->contentObject->cObjGetSingle($theValue, $theConf);
41 41
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 		if (!is_array($theConf) || strlen($theConf['plainType']) < 2) {
50 50
 			$defaultOutput = $this->configuration['defaultOutput'];
51 51
 			if ($defaultOutput && $myName) {
52
-				$lines[] = str_replace('###CType###', $this->contentObject->data['CType'] . ': "' . $this->contentObject->data['list_type'] . '"; plugin: "' . $myName . '"; plainType: "' . (is_array($theConf) ? $theConf['plainType'] : '') . '"', $defaultOutput);
52
+				$lines[] = str_replace('###CType###', $this->contentObject->data['CType'].': "'.$this->contentObject->data['list_type'].'"; plugin: "'.$myName.'"; plainType: "'.(is_array($theConf) ? $theConf['plainType'] : '').'"', $defaultOutput);
53 53
 			}
54 54
 		}
55 55
 
Please login to merge, or discard this patch.
Classes/Rendering/Menu.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 		$type = $contentObject->data['layout'];
40 40
 		$type = MathUtility::forceIntegerInRange($type, 0, 3);
41 41
 
42
-		$tConf = $this->configuration['bulletlist.'][$type . '.'];
42
+		$tConf = $this->configuration['bulletlist.'][$type.'.'];
43 43
 
44 44
 		$cParts = explode(chr(10), $str);
45 45
 		$lines = array();
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 			$bullet = substr(str_replace('#', $c, $bullet), 0, $bLen);
56 56
 			$secondRow = substr($tConf['secondRow'] ? $tConf['secondRow'] : str_pad('', strlen($bullet), ' '), 0, $bLen);
57 57
 
58
-			$lines[] = $bullet . $this->breakLines($substrs, chr(10) . $secondRow, Configuration::getPlainTextWith() - $bLen);
58
+			$lines[] = $bullet.$this->breakLines($substrs, chr(10).$secondRow, Configuration::getPlainTextWith() - $bLen);
59 59
 
60 60
 			$blanks = MathUtility::forceIntegerInRange($tConf['blanks'], 0, 1000);
61 61
 			if ($blanks) {
Please login to merge, or discard this patch.