Passed
Push — master ( 3603b1...7670bb )
by Ralf
10:54
created
Classes/Plugins/DownloadTool/DownloadTool.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -24,8 +24,7 @@  discard block
 block discarded – undo
24 24
  * @subpackage    tx_dpf
25 25
  * @access    public
26 26
  */
27
-class DownloadTool extends \Kitodo\Dlf\Common\AbstractPlugin
28
-{
27
+class DownloadTool extends \Kitodo\Dlf\Common\AbstractPlugin {
29 28
     public $scriptRelPath = 'Classes/Plugins/DownloadTool.php';
30 29
 
31 30
     /**
@@ -38,8 +37,7 @@  discard block
 block discarded – undo
38 37
      *
39 38
      * @return    string        The content that is displayed on the website
40 39
      */
41
-    public function main($content, $conf)
42
-    {
40
+    public function main($content, $conf) {
43 41
         $this->init($conf);
44 42
 
45 43
         // get the tx_dpf.settings too
@@ -97,8 +95,7 @@  discard block
 block discarded – undo
97 95
 
98 96
      * @return array of attachments
99 97
      */
100
-    protected function getAttachments()
101
-    {
98
+    protected function getAttachments() {
102 99
         // Get pdf documents
103 100
         $xPath = 'mets:fileSec/mets:fileGrp[@USE="' . $this->conf['fileGrpDownload'] . '"]/mets:file';
104 101
         $files = $this->doc->mets->xpath($xPath);
@@ -121,8 +118,7 @@  discard block
 block discarded – undo
121 118
         return $attachments;
122 119
     }
123 120
 
124
-    protected function getVGWortUrl()
125
-    {
121
+    protected function getVGWortUrl() {
126 122
         // Get VG-Wort-OpenKey for document
127 123
         $this->doc->mets->registerXPathNamespace("slub", 'http://slub-dresden.de/');
128 124
         $xPath = '//slub:info/slub:vgwortOpenKey';
Please login to merge, or discard this patch.
Classes/Plugins/RelatedListTool/RelatedListTool.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -24,8 +24,7 @@  discard block
 block discarded – undo
24 24
  * @subpackage    tx_dpf
25 25
  * @access    public
26 26
  */
27
-class RelatedListTool extends \Kitodo\Dlf\Common\AbstractPlugin
28
-{
27
+class RelatedListTool extends \Kitodo\Dlf\Common\AbstractPlugin {
29 28
     public $scriptRelPath = 'Classes/Plugins/RelatedListTool.php';
30 29
 
31 30
     /**
@@ -38,8 +37,7 @@  discard block
 block discarded – undo
38 37
      *
39 38
      * @return    string        The content that is displayed on the website
40 39
      */
41
-    public function main($content, $conf)
42
-    {
40
+    public function main($content, $conf) {
43 41
         $this->init($conf);
44 42
 
45 43
         // get the tx_dpf.settings too
@@ -107,15 +105,13 @@  discard block
 block discarded – undo
107 105
         return $this->cObj->substituteSubpart($this->template, '###ITEMS###', $content, true);
108 106
     }
109 107
 
110
-    private function compareByOrderVolumeTitle($a, $b)
111
-    {
108
+    private function compareByOrderVolumeTitle($a, $b) {
112 109
         $s1 = join(' ', array($a['order'], $a['volume'], $a['title']));
113 110
         $s2 = join(' ', array($b['order'], $b['volume'], $b['title']));
114 111
         return strnatcmp($s1, $s2);
115 112
     }
116 113
 
117
-    public function getRelatedItems()
118
-    {
114
+    public function getRelatedItems() {
119 115
         $xPath = '//mods:relatedItem[@type="constituent"]';
120 116
         $items = $this->doc->mets->xpath($xPath);
121 117
         $relatedItems = array();
Please login to merge, or discard this patch.
Classes/Plugins/MetaTags/MetaTags.php 1 patch
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -25,8 +25,7 @@  discard block
 block discarded – undo
25 25
  * @subpackage    tx_dpf
26 26
  * @access    public
27 27
  */
28
-class MetaTags extends \Kitodo\Dlf\Common\AbstractPlugin
29
-{
28
+class MetaTags extends \Kitodo\Dlf\Common\AbstractPlugin {
30 29
     public $scriptRelPath = 'Classes/Plugins/MetaTags.php';
31 30
 
32 31
     /**
@@ -45,8 +44,7 @@  discard block
 block discarded – undo
45 44
      *
46 45
      * @return    string        The content that is displayed on the website
47 46
      */
48
-    public function main($content, $conf)
49
-    {
47
+    public function main($content, $conf) {
50 48
 
51 49
         $this->init($conf);
52 50
 
@@ -107,8 +105,7 @@  discard block
 block discarded – undo
107 105
      *
108 106
      * @return    string        The metadata array ready for output
109 107
      */
110
-    protected function printMetaTags(array $metadata)
111
-    {
108
+    protected function printMetaTags(array $metadata) {
112 109
 
113 110
         $output = '';
114 111
         // Load all the metadata values into the content object's data array.
@@ -196,8 +193,7 @@  discard block
 block discarded – undo
196 193
      *
197 194
      * @return Formatted date
198 195
      */
199
-    protected function safelyFormatDate($format, $date)
200
-    {
196
+    protected function safelyFormatDate($format, $date) {
201 197
         return (strlen($date) == 4) ? $date : date($format, strtotime($date));
202 198
     }
203 199
 
@@ -207,8 +203,7 @@  discard block
 block discarded – undo
207 203
 
208 204
      * @return array of attachments
209 205
      */
210
-    protected function getAttachments()
211
-    {
206
+    protected function getAttachments() {
212 207
         $attachments = array();
213 208
 
214 209
         $xPath = 'mets:fileSec/mets:fileGrp[@USE="' . $this->conf['fileGrpDownload'] . '"]/mets:file';
Please login to merge, or discard this patch.