Completed
Push — master ( e1e23b...70f5e9 )
by Ralf
15s queued 13s
created
Classes/ViewHelpers/Link/PreviewViewHelper.php 4 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
         $additionalGetVars = '&tx_dlf[id]=' . urlencode($previewMets) . '&no_cache=1';
63 63
         $title = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('manager.tooltip.preview', 'dpf', $arguments = null);
64 64
         $icon = '<a href="#" data-toggle="tooltip" class="' . $class . '" onclick="' . htmlspecialchars(\TYPO3\CMS\Backend\Utility\BackendUtility::viewOnClick($pageUid, $this->backPath, '', '', '', $additionalGetVars)) . '" title="' . $title . '">' .
65
-                          $insideText . '</a>';
65
+                            $insideText . '</a>';
66 66
 
67 67
         return $icon;
68 68
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     protected function getViewIcon(array $row, $pageUid, $apiPid, $insideText, $class)
58 58
     {
59 59
 
60
-        $previewMets = BackendUtility::getViewDomain($pageUid) . '/index.php?id='.$apiPid.'&tx_dpf[qid]=' . $row['uid'] . '&tx_dpf[action]=' . $row['action'];
60
+        $previewMets = BackendUtility::getViewDomain($pageUid) . '/index.php?id=' . $apiPid . '&tx_dpf[qid]=' . $row['uid'] . '&tx_dpf[action]=' . $row['action'];
61 61
 
62 62
         $additionalGetVars = '&tx_dlf[id]=' . urlencode($previewMets) . '&no_cache=1';
63 63
         $title = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('manager.tooltip.preview', 'dpf', $arguments = null);
Please login to merge, or discard this patch.
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -19,8 +19,7 @@  discard block
 block discarded – undo
19 19
 use TYPO3\CMS\Backend\Utility\BackendUtility;
20 20
 use TYPO3\CMS\Fluid\ViewHelpers\Be\AbstractBackendViewHelper;
21 21
 
22
-class PreviewViewHelper extends AbstractBackendViewHelper
23
-{
22
+class PreviewViewHelper extends AbstractBackendViewHelper {
24 23
 
25 24
     /**
26 25
      * @var \TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface
@@ -31,8 +30,7 @@  discard block
 block discarded – undo
31 30
      * @param \TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface $configurationManager
32 31
      * @return void
33 32
      */
34
-    public function injectConfigurationManager(\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface $configurationManager)
35
-    {
33
+    public function injectConfigurationManager(\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface $configurationManager) {
36 34
         $this->configurationManager = $configurationManager;
37 35
     }
38 36
 
@@ -54,8 +52,7 @@  discard block
 block discarded – undo
54 52
      * @param  string $class
55 53
      * @return string html output
56 54
      */
57
-    protected function getViewIcon(array $row, $pageUid, $apiPid, $insideText, $class)
58
-    {
55
+    protected function getViewIcon(array $row, $pageUid, $apiPid, $insideText, $class) {
59 56
 
60 57
         $previewMets = BackendUtility::getViewDomain($pageUid) . '/index.php?id='.$apiPid.'&tx_dpf[qid]=' . $row['uid'] . '&tx_dpf[action]=' . $row['action'];
61 58
 
@@ -78,8 +75,7 @@  discard block
 block discarded – undo
78 75
      * @param  string $class
79 76
      * @return string the rendered record list
80 77
      */
81
-    public function render(array $arguments, $pageUid, $apiPid, $class)
82
-    {
78
+    public function render(array $arguments, $pageUid, $apiPid, $class) {
83 79
 
84 80
         if ($arguments['document']) {
85 81
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
         $previewMets = BackendUtility::getViewDomain($pageUid) . '/index.php?id='.$apiPid.'&tx_dpf[qid]=' . $row['uid'] . '&tx_dpf[action]=' . $row['action'];
61 61
 
62 62
         $additionalGetVars = '&tx_dlf[id]=' . urlencode($previewMets) . '&no_cache=1';
63
-        $title = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('manager.tooltip.preview', 'dpf', $arguments = null);
63
+        $title = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('manager.tooltip.preview', 'dpf', $arguments = NULL);
64 64
         $icon = '<a href="#" data-toggle="tooltip" class="' . $class . '" onclick="' . htmlspecialchars(\TYPO3\CMS\Backend\Utility\BackendUtility::viewOnClick($pageUid, $this->backPath, '', '', '', $additionalGetVars)) . '" title="' . $title . '">' .
65 65
                           $insideText . '</a>';
66 66
 
Please login to merge, or discard this patch.
Classes/ViewHelpers/Link/DataCiteViewHelper.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     protected function getViewIcon($row, $pageUid, $apiPid, $insideText, $class)
42 42
     {
43 43
 
44
-        $dataCite = BackendUtility::getViewDomain($pageUid) . '/index.php?id='.$apiPid.'&tx_dpf[qid]=' . $row['uid'] . '&tx_dpf[action]=' . $row['action'];
44
+        $dataCite = BackendUtility::getViewDomain($pageUid) . '/index.php?id=' . $apiPid . '&tx_dpf[qid]=' . $row['uid'] . '&tx_dpf[action]=' . $row['action'];
45 45
 
46 46
         $title = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('manager.tooltip.datacite', 'dpf', $arguments = null);
47 47
         $icon  = '<a href="' . $dataCite . '" data-toggle="tooltip" class="' . $class . '" title="' . $title . '">' . $insideText . '</a>';
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -19,8 +19,7 @@  discard block
 block discarded – undo
19 19
 use TYPO3\CMS\Backend\Utility\BackendUtility;
20 20
 use TYPO3\CMS\Fluid\ViewHelpers\Be\AbstractBackendViewHelper;
21 21
 
22
-class DataCiteViewHelper extends AbstractBackendViewHelper
23
-{
22
+class DataCiteViewHelper extends AbstractBackendViewHelper {
24 23
 
25 24
     /**
26 25
      * documentRepository
@@ -38,8 +37,7 @@  discard block
 block discarded – undo
38 37
      * @param  string $class
39 38
      * @return string html output
40 39
      */
41
-    protected function getViewIcon($row, $pageUid, $apiPid, $insideText, $class)
42
-    {
40
+    protected function getViewIcon($row, $pageUid, $apiPid, $insideText, $class) {
43 41
 
44 42
         $dataCite = BackendUtility::getViewDomain($pageUid) . '/index.php?id='.$apiPid.'&tx_dpf[qid]=' . $row['uid'] . '&tx_dpf[action]=' . $row['action'];
45 43
 
@@ -59,8 +57,7 @@  discard block
 block discarded – undo
59 57
      * @param  string $class
60 58
      * @return string the rendered record list
61 59
      */
62
-    public function render(array $arguments, $pageUid, $apiPid, $class)
63
-    {
60
+    public function render(array $arguments, $pageUid, $apiPid, $class) {
64 61
 
65 62
         if ($arguments['document']) {
66 63
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 
44 44
         $dataCite = BackendUtility::getViewDomain($pageUid) . '/index.php?id='.$apiPid.'&tx_dpf[qid]=' . $row['uid'] . '&tx_dpf[action]=' . $row['action'];
45 45
 
46
-        $title = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('manager.tooltip.datacite', 'dpf', $arguments = null);
46
+        $title = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('manager.tooltip.datacite', 'dpf', $arguments = NULL);
47 47
         $icon  = '<a href="' . $dataCite . '" data-toggle="tooltip" class="' . $class . '" title="' . $title . '">' . $insideText . '</a>';
48 48
 
49 49
         return $icon;
Please login to merge, or discard this patch.
Classes/Plugins/MetaTags/MetaTags.php 1 patch
Upper-Lower-Casing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,18 +55,18 @@  discard block
 block discarded – undo
55 55
 
56 56
         if (is_array($dpfTSconfig['settings.'])) {
57 57
 
58
-            \TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule($dpfTSconfig['settings.'], $this->conf, true, false);
58
+            \TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule($dpfTSconfig['settings.'], $this->conf, TRUE, FALSE);
59 59
             $this->conf = $dpfTSconfig['settings.'];
60 60
 
61 61
         }
62 62
 
63 63
         // Turn cache on.
64
-        $this->setCache(true);
64
+        $this->setCache(TRUE);
65 65
 
66 66
         // Load current document.
67 67
         $this->loadDocument();
68 68
 
69
-        if ($this->doc === null) {
69
+        if ($this->doc === NULL) {
70 70
 
71 71
             // Quit without doing anything if required variables are not set.
72 72
             return $content;
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
                         'useCacheHash'     => 0,
172 172
                         'parameter'        => $this->conf['apiPid'],
173 173
                         'additionalParams' => '&tx_dpf[qid]=' . $values[0] . '&tx_dpf[action]=attachment&tx_dpf[attachment]=ATT-0',
174
-                        'forceAbsoluteUrl' => true,
174
+                        'forceAbsoluteUrl' => TRUE,
175 175
                     );
176 176
 
177 177
                     // replace uid with URI to dpf API
Please login to merge, or discard this patch.