@@ -11,7 +11,6 @@  | 
                                                    ||
| 11 | 11 | use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;  | 
                                                        
| 12 | 12 | use TYPO3\CMS\Core\Utility\GeneralUtility;  | 
                                                        
| 13 | 13 | use TYPO3\CMS\Core\Utility\HttpUtility;  | 
                                                        
| 14 | -use TYPO3\CMS\Extbase\Utility\DebuggerUtility;  | 
                                                        |
| 15 | 14 | |
| 16 | 15 | /**  | 
                                                        
| 17 | 16 | * Inliner for CSS  | 
                                                        
@@ -20,7 +20,7 @@  | 
                                                    ||
| 20 | 20 | /**  | 
                                                        
| 21 | 21 | * Render the given element  | 
                                                        
| 22 | 22 | *  | 
                                                        
| 23 | - * @return array  | 
                                                        |
| 23 | + * @return string  | 
                                                        |
| 24 | 24 | */  | 
                                                        
| 25 | 25 | public function renderInternal()  | 
                                                        
| 26 | 26 |      { | 
                                                        
@@ -42,7 +42,7 @@ discard block  | 
                                                    ||
| 42 | 42 | $type = $contentObject->data['layout'];  | 
                                                        
| 43 | 43 | $type = MathUtility::forceIntegerInRange($type, 0, 3);  | 
                                                        
| 44 | 44 | |
| 45 | - $tConf = $this->configuration['bulletlist.'][$type . '.'];  | 
                                                        |
| 45 | + $tConf = $this->configuration['bulletlist.'][$type.'.'];  | 
                                                        |
| 46 | 46 | |
| 47 | 47 | $cParts = explode(chr(10), $str);  | 
                                                        
| 48 | 48 | $lines = array();  | 
                                                        
@@ -58,7 +58,7 @@ discard block  | 
                                                    ||
| 58 | 58 |              $bullet = substr(str_replace('#', $c, $bullet), 0, $bLen); | 
                                                        
| 59 | 59 |              $secondRow = substr($tConf['secondRow'] ? $tConf['secondRow'] : str_pad('', strlen($bullet), ' '), 0, $bLen); | 
                                                        
| 60 | 60 | |
| 61 | - $lines[] = $bullet . $this->breakLines($substrs, chr(10) . $secondRow, Configuration::getPlainTextWith() - $bLen);  | 
                                                        |
| 61 | + $lines[] = $bullet.$this->breakLines($substrs, chr(10).$secondRow, Configuration::getPlainTextWith() - $bLen);  | 
                                                        |
| 62 | 62 | |
| 63 | 63 | $blanks = MathUtility::forceIntegerInRange($tConf['blanks'], 0, 1000);  | 
                                                        
| 64 | 64 |              if ($blanks) { | 
                                                        
@@ -16,7 +16,7 @@  | 
                                                    ||
| 16 | 16 | /**  | 
                                                        
| 17 | 17 | * Render the current content  | 
                                                        
| 18 | 18 | *  | 
                                                        
| 19 | - * @return array  | 
                                                        |
| 19 | + * @return string[]  | 
                                                        |
| 20 | 20 | */  | 
                                                        
| 21 | 21 | public function renderInternal()  | 
                                                        
| 22 | 22 |      { | 
                                                        
@@ -21,7 +21,7 @@  | 
                                                    ||
| 21 | 21 | public function renderInternal()  | 
                                                        
| 22 | 22 |      { | 
                                                        
| 23 | 23 | |
| 24 | - $lines[] = trim($this->breakContent(strip_tags($this->parseBody($this->contentObject->data['bodytext']))), CRLF . TAB);  | 
                                                        |
| 24 | + $lines[] = trim($this->breakContent(strip_tags($this->parseBody($this->contentObject->data['bodytext']))), CRLF.TAB);  | 
                                                        |
| 25 | 25 | return $lines;  | 
                                                        
| 26 | 26 | |
| 27 | 27 | }  | 
                                                        
@@ -220,7 +220,7 @@ discard block  | 
                                                    ||
| 220 | 220 | */  | 
                                                        
| 221 | 221 | protected function renderLine($columnsLengths, $specialLine = 'default', $charMode = 'Char')  | 
                                                        
| 222 | 222 |      { | 
                                                        
| 223 | -        if (isset($this->tableSettings[$this->renderMode]['outer' . ucfirst($specialLine)]) && $this->tableSettings[$this->renderMode]['outer' . ucfirst($specialLine)] === false) { | 
                                                        |
| 223 | +        if (isset($this->tableSettings[$this->renderMode]['outer'.ucfirst($specialLine)]) && $this->tableSettings[$this->renderMode]['outer'.ucfirst($specialLine)] === false) { | 
                                                        |
| 224 | 224 | return false;  | 
                                                        
| 225 | 225 | }  | 
                                                        
| 226 | 226 | $row = '';  | 
                                                        
@@ -228,7 +228,7 @@ discard block  | 
                                                    ||
| 228 | 228 |              if ($key !== 0 || $this->tableSettings[$this->renderMode]['outerLeft']) { | 
                                                        
| 229 | 229 | $row .= $this->tableSettings[$this->renderMode]['join'];  | 
                                                        
| 230 | 230 | }  | 
                                                        
| 231 | - $row .= str_repeat($this->tableSettings[$this->renderMode]['x' . $charMode], ($this->tableSettings[$this->renderMode]['xSpace'] * 2) + $column_length);  | 
                                                        |
| 231 | + $row .= str_repeat($this->tableSettings[$this->renderMode]['x'.$charMode], ($this->tableSettings[$this->renderMode]['xSpace'] * 2) + $column_length);  | 
                                                        |
| 232 | 232 | }  | 
                                                        
| 233 | 233 |          if ($this->tableSettings[$this->renderMode]['outerRight']) { | 
                                                        
| 234 | 234 | $row .= $this->tableSettings[$this->renderMode]['join'];  | 
                                                        
@@ -57,12 +57,12 @@ discard block  | 
                                                    ||
| 57 | 57 | */  | 
                                                        
| 58 | 58 | function parseBody($str, $altConf = 'bodytext')  | 
                                                        
| 59 | 59 |      { | 
                                                        
| 60 | -        if ($this->configuration[$altConf . '.']['doubleLF']) { | 
                                                        |
| 60 | +        if ($this->configuration[$altConf.'.']['doubleLF']) { | 
                                                        |
| 61 | 61 |              $str = preg_replace("/\n/", "\n\n", $str); | 
                                                        
| 62 | 62 | }  | 
                                                        
| 63 | 63 | // Regular parsing:  | 
                                                        
| 64 | 64 |          $str = preg_replace('/<br\s*\/?>/i', chr(10), $str); | 
                                                        
| 65 | - $str = $this->contentObject->stdWrap($str, $this->configuration[$altConf . '.']['stdWrap.']);  | 
                                                        |
| 65 | + $str = $this->contentObject->stdWrap($str, $this->configuration[$altConf.'.']['stdWrap.']);  | 
                                                        |
| 66 | 66 | |
| 67 | 67 | // Then all a-tags:  | 
                                                        
| 68 | 68 | $aConf = array();  | 
                                                        
@@ -73,11 +73,11 @@ discard block  | 
                                                    ||
| 73 | 73 | $str = $this->contentObject->stdWrap($str, $aConf);  | 
                                                        
| 74 | 74 |          $str = str_replace(' ', ' ', htmlspecialchars_decode($str)); | 
                                                        
| 75 | 75 | |
| 76 | -        if ($this->configuration[$altConf . '.']['header']) { | 
                                                        |
| 77 | - $str = $this->configuration[$altConf . '.']['header'] . LF . $str;  | 
                                                        |
| 76 | +        if ($this->configuration[$altConf.'.']['header']) { | 
                                                        |
| 77 | + $str = $this->configuration[$altConf.'.']['header'].LF.$str;  | 
                                                        |
| 78 | 78 | }  | 
                                                        
| 79 | 79 | |
| 80 | - return chr(10) . $str;  | 
                                                        |
| 80 | + return chr(10).$str;  | 
                                                        |
| 81 | 81 | }  | 
                                                        
| 82 | 82 | |
| 83 | 83 | /**  | 
                                                        
@@ -121,7 +121,7 @@ discard block  | 
                                                    ||
| 121 | 121 | */  | 
                                                        
| 122 | 122 | function breakLines($str, $implChar = LF, $charWidth = false)  | 
                                                        
| 123 | 123 |      { | 
                                                        
| 124 | - $charWidth = $charWidth === false ? Configuration::getPlainTextWith() : (int)$charWidth;  | 
                                                        |
| 124 | + $charWidth = $charWidth === false ? Configuration::getPlainTextWith() : (int) $charWidth;  | 
                                                        |
| 125 | 125 | return MailUtility::breakLinesForEmail($str, $implChar, $charWidth);  | 
                                                        
| 126 | 126 | }  | 
                                                        
| 127 | 127 | }  | 
                                                        
@@ -32,12 +32,12 @@  | 
                                                    ||
| 32 | 32 |          if ($this->contentObject->data['header_position'] == 'right') { | 
                                                        
| 33 | 33 |              foreach ($header as $key => $l) { | 
                                                        
| 34 | 34 | $l = trim($l);  | 
                                                        
| 35 | -                $header[$key] = str_pad(' ', (Configuration::getPlainTextWith() - strlen($l)), ' ', STR_PAD_LEFT) . $l; | 
                                                        |
| 35 | +                $header[$key] = str_pad(' ', (Configuration::getPlainTextWith() - strlen($l)), ' ', STR_PAD_LEFT).$l; | 
                                                        |
| 36 | 36 | }  | 
                                                        
| 37 | 37 |          } elseif ($this->contentObject->data['header_position'] == 'center') { | 
                                                        
| 38 | 38 |              foreach ($header as $key => $l) { | 
                                                        
| 39 | 39 | $l = trim($l);  | 
                                                        
| 40 | -                $header[$key] = str_pad(' ', floor((Configuration::getPlainTextWith() - strlen($l)) / 2), ' ', STR_PAD_LEFT) . $l; | 
                                                        |
| 40 | +                $header[$key] = str_pad(' ', floor((Configuration::getPlainTextWith() - strlen($l)) / 2), ' ', STR_PAD_LEFT).$l; | 
                                                        |
| 41 | 41 | }  | 
                                                        
| 42 | 42 | }  | 
                                                        
| 43 | 43 | $header = implode(LF, $header);  | 
                                                        
@@ -16,7 +16,7 @@  | 
                                                    ||
| 16 | 16 | /**  | 
                                                        
| 17 | 17 | * Render the current content  | 
                                                        
| 18 | 18 | *  | 
                                                        
| 19 | - * @return array  | 
                                                        |
| 19 | + * @return string[]  | 
                                                        |
| 20 | 20 | */  | 
                                                        
| 21 | 21 | public function renderInternal()  | 
                                                        
| 22 | 22 |      { | 
                                                        
@@ -28,16 +28,16 @@ discard block  | 
                                                    ||
| 28 | 28 | |
| 29 | 29 |          if (isset($template->setup['tt_content.']['list.']['20.'][$listType])) { | 
                                                        
| 30 | 30 | $theValue = $template->setup['tt_content.']['list.']['20.'][$listType];  | 
                                                        
| 31 | - $theConf = $template->setup['tt_content.']['list.']['20.'][$listType . '.'];  | 
                                                        |
| 31 | + $theConf = $template->setup['tt_content.']['list.']['20.'][$listType.'.'];  | 
                                                        |
| 32 | 32 |          } else { | 
                                                        
| 33 | 33 |              $tmp = explode('_pi', $listType); | 
                                                        
| 34 | 34 |              if (count($tmp) < 2) { | 
                                                        
| 35 | -                $myName = 'tx_' . str_replace('_', '', $tmp[0]); | 
                                                        |
| 35 | +                $myName = 'tx_'.str_replace('_', '', $tmp[0]); | 
                                                        |
| 36 | 36 |              } else { | 
                                                        
| 37 | -                $myName = 'tx_' . str_replace('_', '', $tmp[0]) . '_pi' . $tmp[1]; | 
                                                        |
| 37 | +                $myName = 'tx_'.str_replace('_', '', $tmp[0]).'_pi'.$tmp[1]; | 
                                                        |
| 38 | 38 | }  | 
                                                        
| 39 | 39 | $theValue = $template->setup['plugin.'][$myName];  | 
                                                        
| 40 | - $theConf = $template->setup['plugin.'][$myName . '.'];  | 
                                                        |
| 40 | + $theConf = $template->setup['plugin.'][$myName.'.'];  | 
                                                        |
| 41 | 41 | }  | 
                                                        
| 42 | 42 | $content = $this->contentObject->cObjGetSingle($theValue, $theConf);  | 
                                                        
| 43 | 43 | |
@@ -51,7 +51,7 @@ discard block  | 
                                                    ||
| 51 | 51 |          if (!is_array($theConf) || strlen($theConf['plainType']) < 2) { | 
                                                        
| 52 | 52 | $defaultOutput = $this->configuration['defaultOutput'];  | 
                                                        
| 53 | 53 |              if ($defaultOutput && $myName) { | 
                                                        
| 54 | -                $lines[] = str_replace('###CType###', $this->contentObject->data['CType'] . ': "' . $this->contentObject->data['list_type'] . '"; plugin: "' . $myName . '"; plainType: "' . (is_array($theConf) ? $theConf['plainType'] : '') . '"', $defaultOutput); | 
                                                        |
| 54 | +                $lines[] = str_replace('###CType###', $this->contentObject->data['CType'].': "'.$this->contentObject->data['list_type'].'"; plugin: "'.$myName.'"; plainType: "'.(is_array($theConf) ? $theConf['plainType'] : '').'"', $defaultOutput); | 
                                                        |
| 55 | 55 | }  | 
                                                        
| 56 | 56 | }  | 
                                                        
| 57 | 57 | |
@@ -69,7 +69,7 @@ discard block  | 
                                                    ||
| 69 | 69 | |
| 70 | 70 | $theLink = $this->getLink($ll);  | 
                                                        
| 71 | 71 |                      if ($theLink) { | 
                                                        
| 72 | - $lines[] = $this->configuration['images.']['linkPrefix'] . $theLink;  | 
                                                        |
| 72 | + $lines[] = $this->configuration['images.']['linkPrefix'].$theLink;  | 
                                                        |
| 73 | 73 | }  | 
                                                        
| 74 | 74 | }  | 
                                                        
| 75 | 75 | $imageExists = true;  | 
                                                        
@@ -81,7 +81,7 @@ discard block  | 
                                                    ||
| 81 | 81 |          if ($links && count($linksArr) == 1) { | 
                                                        
| 82 | 82 | $theLink = $this->getLink($links);  | 
                                                        
| 83 | 83 |              if ($theLink) { | 
                                                        
| 84 | - $lines[] = $this->configuration['images.']['linkPrefix'] . $theLink;  | 
                                                        |
| 84 | + $lines[] = $this->configuration['images.']['linkPrefix'].$theLink;  | 
                                                        |
| 85 | 85 | }  | 
                                                        
| 86 | 86 | }  | 
                                                        
| 87 | 87 |          if ($caption) { | 
                                                        
@@ -93,6 +93,6 @@ discard block  | 
                                                    ||
| 93 | 93 | $lines[] = $this->breakContent($caption);  | 
                                                        
| 94 | 94 | }  | 
                                                        
| 95 | 95 | |
| 96 | - return chr(10) . implode(chr(10), $lines);  | 
                                                        |
| 96 | + return chr(10).implode(chr(10), $lines);  | 
                                                        |
| 97 | 97 | }  | 
                                                        
| 98 | 98 | }  | 
                                                        
@@ -16,7 +16,7 @@  | 
                                                    ||
| 16 | 16 | /**  | 
                                                        
| 17 | 17 | * Render the current content  | 
                                                        
| 18 | 18 | *  | 
                                                        
| 19 | - * @return array  | 
                                                        |
| 19 | + * @return string[]  | 
                                                        |
| 20 | 20 | */  | 
                                                        
| 21 | 21 | public function renderInternal()  | 
                                                        
| 22 | 22 |      { | 
                                                        
@@ -46,7 +46,7 @@ discard block  | 
                                                    ||
| 46 | 46 |      { | 
                                                        
| 47 | 47 | $lines = array();  | 
                                                        
| 48 | 48 | $this->conf = $conf;  | 
                                                        
| 49 | - $CType = (string)$this->cObj->data['CType'];  | 
                                                        |
| 49 | + $CType = (string) $this->cObj->data['CType'];  | 
                                                        |
| 50 | 50 |          if (isset($this->conf['forceCType']) && trim($this->conf['forceCType']) !== '') { | 
                                                        
| 51 | 51 | $CType = trim($this->conf['forceCType']);  | 
                                                        
| 52 | 52 | }  | 
                                                        
@@ -79,10 +79,10 @@ discard block  | 
                                                    ||
| 79 | 79 | $renderObject = $objectManager->get($className);  | 
                                                        
| 80 | 80 | $lines = $renderObject->render($this->cObj, $this->conf);  | 
                                                        
| 81 | 81 |          } else { | 
                                                        
| 82 | - $lines[] = 'CType: ' . $CType . ' have no rendering definitions';  | 
                                                        |
| 82 | + $lines[] = 'CType: '.$CType.' have no rendering definitions';  | 
                                                        |
| 83 | 83 | }  | 
                                                        
| 84 | 84 | $content = implode(LF, $lines);  | 
                                                        
| 85 | - return trim($content, CRLF . TAB);  | 
                                                        |
| 85 | + return trim($content, CRLF.TAB);  | 
                                                        |
| 86 | 86 | }  | 
                                                        
| 87 | 87 | |
| 88 | 88 | /**  | 
                                                        
@@ -102,6 +102,6 @@ discard block  | 
                                                    ||
| 102 | 102 |          if (strtolower(substr($theLink, 0, 7)) == 'mailto:') { | 
                                                        
| 103 | 103 | $theLink = substr($theLink, 7);  | 
                                                        
| 104 | 104 | }  | 
                                                        
| 105 | - return $this->cObj->getCurrentVal() . ' ( ' . $theLink . ' )';  | 
                                                        |
| 105 | + return $this->cObj->getCurrentVal().' ( '.$theLink.' )';  | 
                                                        |
| 106 | 106 | }  | 
                                                        
| 107 | 107 | }  | 
                                                        
@@ -20,7 +20,7 @@  | 
                                                    ||
| 20 | 20 | /**  | 
                                                        
| 21 | 21 | * Render the given element  | 
                                                        
| 22 | 22 | *  | 
                                                        
| 23 | - * @return array  | 
                                                        |
| 23 | + * @return string  | 
                                                        |
| 24 | 24 | */  | 
                                                        
| 25 | 25 | public function renderInternal()  | 
                                                        
| 26 | 26 |      { |