Passed
Pull Request — master (#123)
by
unknown
04:23
created
Classes/Controller/AudioPlayerController.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,12 +52,12 @@
 block discarded – undo
52 52
             $(document).ready(function() {
53 53
                 AudioPlayer = new dlfAudioPlayer({
54 54
                     audio: {
55
-                        mimeType: "' . $this->audio['mimetype'] . '",
56
-                        title: "' . $this->audio['label'] . '",
57
-                        url:  "' . $this->audio['url'] . '"
55
+                        mimeType: "' . $this->audio['mimetype'].'",
56
+                        title: "' . $this->audio['label'].'",
57
+                        url:  "' . $this->audio['url'].'"
58 58
                     },
59 59
                     parentElId: "tx-dlf-audio",
60
-                    swfPath: "' . PathUtility::stripPathSitePrefix(ExtensionManagementUtility::extPath('dlf')) . 'Resources/Public/JavaScript/jPlayer/jquery.jplayer.swf"
60
+                    swfPath: "' . PathUtility::stripPathSitePrefix(ExtensionManagementUtility::extPath('dlf')).'Resources/Public/JavaScript/jPlayer/jquery.jplayer.swf"
61 61
                 });
62 62
             });
63 63
         ';
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,7 @@
 block discarded – undo
24 24
  *
25 25
  * @access public
26 26
  */
27
-class AudioplayerController extends AbstractController
28
-{
27
+class AudioplayerController extends AbstractController {
29 28
     /**
30 29
      * Holds the current audio file's URL, MIME type and optional label
31 30
      *
Please login to merge, or discard this patch.
Classes/Api/Orcid/Profile.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
             $this->raw->registerXPathNamespace('personal-details', 'http://www.orcid.org/ns/personal-details');
130 130
             $givenNames = $this->raw->xpath('./personal-details:name/personal-details:given-names');
131 131
             $familyName = $this->raw->xpath('./personal-details:name/personal-details:family-name');
132
-            return (string) $givenNames[0] . ' ' . (string) $familyName[0];
132
+            return (string) $givenNames[0].' '.(string) $familyName[0];
133 133
         } else {
134 134
             $this->logger->warning('No name found for given ORCID');
135 135
             return false;
Please login to merge, or discard this patch.
Braces   +6 added lines, -12 removed lines patch added patch discarded remove patch
@@ -26,8 +26,7 @@  discard block
 block discarded – undo
26 26
  *
27 27
  * @access public
28 28
  **/
29
-class Profile
30
-{
29
+class Profile {
31 30
     /**
32 31
      * @access protected
33 32
      * @var Logger This holds the logger
@@ -55,8 +54,7 @@  discard block
 block discarded – undo
55 54
      *
56 55
      * @return void
57 56
      **/
58
-    public function __construct(string $orcid)
59
-    {
57
+    public function __construct(string $orcid) {
60 58
         $this->logger = GeneralUtility::makeInstance(LogManager::class)->getLogger(static::class);
61 59
         $this->client = new Client($orcid, GeneralUtility::makeInstance(RequestFactory::class));
62 60
     }
@@ -68,8 +66,7 @@  discard block
 block discarded – undo
68 66
      *
69 67
      * @return array|false
70 68
      **/
71
-    public function getData()
72
-    {
69
+    public function getData() {
73 70
         $this->getRaw('person');
74 71
         if ($this->raw !== false && !empty($this->raw)) {
75 72
             $data = [];
@@ -90,8 +87,7 @@  discard block
 block discarded – undo
90 87
      *
91 88
      * @return string|false
92 89
      **/
93
-    public function getAddress()
94
-    {
90
+    public function getAddress() {
95 91
         $this->getRaw('address');
96 92
         if ($this->raw !== false && !empty($this->raw)) {
97 93
             $this->raw->registerXPathNamespace('address', 'http://www.orcid.org/ns/address');
@@ -109,8 +105,7 @@  discard block
 block discarded – undo
109 105
      *
110 106
      * @return string|false
111 107
      **/
112
-    public function getEmail()
113
-    {
108
+    public function getEmail() {
114 109
         $this->getRaw('email');
115 110
         if ($this->raw !== false && !empty($this->raw)) {
116 111
             $this->raw->registerXPathNamespace('email', 'http://www.orcid.org/ns/email');
@@ -128,8 +123,7 @@  discard block
 block discarded – undo
128 123
      *
129 124
      * @return string|false
130 125
      **/
131
-    public function getFullName()
132
-    {
126
+    public function getFullName() {
133 127
         $this->getRaw('personal-details');
134 128
         if ($this->raw !== false && !empty($this->raw)) {
135 129
             $this->raw->registerXPathNamespace('personal-details', 'http://www.orcid.org/ns/personal-details');
Please login to merge, or discard this patch.
Tests/routeFunctionalInstance.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,10 +15,10 @@
 block discarded – undo
15 15
 preg_match("@.*/(?:acceptance|functional-[a-z\d]+)@", $_SERVER['REQUEST_URI'], $matches);
16 16
 
17 17
 if (!empty($matches)) {
18
-    $root = realpath($_SERVER['DOCUMENT_ROOT'] . $matches[0]);
18
+    $root = realpath($_SERVER['DOCUMENT_ROOT'].$matches[0]);
19 19
     if ($root !== false) {
20
-        putenv('TYPO3_PATH_ROOT=' . $root);
21
-        putenv('TYPO3_PATH_APP=' . $root);
20
+        putenv('TYPO3_PATH_ROOT='.$root);
21
+        putenv('TYPO3_PATH_APP='.$root);
22 22
     }
23 23
 }
24 24
 
Please login to merge, or discard this patch.
Classes/Hooks/Form/FieldInformation/EditInProductionWarning.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,7 @@
 block discarded – undo
24 24
  *
25 25
  * @access public
26 26
  */
27
-class EditInProductionWarning extends AbstractNode
28
-{
27
+class EditInProductionWarning extends AbstractNode {
29 28
     /**
30 29
      * Generates warning message when editing 'index_name' field
31 30
      *
Please login to merge, or discard this patch.
Classes/Hooks/Form/FieldInformation/SolrCoreStatus.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,7 @@
 block discarded – undo
25 25
  *
26 26
  * @access public
27 27
  */
28
-class SolrCoreStatus extends AbstractNode
29
-{
28
+class SolrCoreStatus extends AbstractNode {
30 29
     /**
31 30
      * Shows Solr core status for given 'index_name'
32 31
      *
Please login to merge, or discard this patch.
Classes/Hooks/DataHandler.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,8 +33,7 @@
 block discarded – undo
33 33
  *
34 34
  * @access public
35 35
  */
36
-class DataHandler implements LoggerAwareInterface
37
-{
36
+class DataHandler implements LoggerAwareInterface {
38 37
     use LoggerAwareTrait;
39 38
 
40 39
     /**
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -149,10 +149,10 @@  discard block
 block discarded – undo
149 149
                     ) {
150 150
                         // Get current configuration.
151 151
                         $result = $queryBuilder
152
-                            ->select($table . '.is_listed AS is_listed')
152
+                            ->select($table.'.is_listed AS is_listed')
153 153
                             ->from($table)
154 154
                             ->where(
155
-                                $queryBuilder->expr()->eq($table . '.uid', (int) $id),
155
+                                $queryBuilder->expr()->eq($table.'.uid', (int) $id),
156 156
                                 Helper::whereExpression($table)
157 157
                             )
158 158
                             ->setMaxResults(1)
@@ -175,10 +175,10 @@  discard block
 block discarded – undo
175 175
                     ) {
176 176
                         // Get current configuration.
177 177
                         $result = $queryBuilder
178
-                            ->select($table . '.index_autocomplete AS index_autocomplete')
178
+                            ->select($table.'.index_autocomplete AS index_autocomplete')
179 179
                             ->from($table)
180 180
                             ->where(
181
-                                $queryBuilder->expr()->eq($table . '.uid', (int) $id),
181
+                                $queryBuilder->expr()->eq($table.'.uid', (int) $id),
182 182
                                 Helper::whereExpression($table)
183 183
                             )
184 184
                             ->setMaxResults(1)
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
         if ($solr->ready) {
349 349
             // Delete Solr document.
350 350
             $updateQuery = $solr->service->createUpdate();
351
-            $updateQuery->addDeleteQuery('uid:' . (int) $id);
351
+            $updateQuery->addDeleteQuery('uid:'.(int) $id);
352 352
             $updateQuery->addCommit(false);
353 353
             $solr->service->update($updateQuery);
354 354
         }
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
             $document->setCurrentDocument($doc);
372 372
             Indexer::add($document, $this->getDocumentRepository());
373 373
         } else {
374
-            $this->logger->error('Failed to re-index document with UID ' . (string) $id);
374
+            $this->logger->error('Failed to re-index document with UID '.(string) $id);
375 375
         }
376 376
     }
377 377
 
@@ -422,7 +422,7 @@  discard block
 block discarded – undo
422 422
                     try {
423 423
                         $response = $solr->service->coreAdmin($query);
424 424
                         if ($response->getWasSuccessful() == false) {
425
-                            $this->logger->warning('Core ' . $resArray['core'] . ' could not be deleted from Apache Solr');
425
+                            $this->logger->warning('Core '.$resArray['core'].' could not be deleted from Apache Solr');
426 426
                         }
427 427
                     } catch (\Exception $e) {
428 428
                         $this->logger->warning($e->getMessage());
Please login to merge, or discard this patch.
Classes/Hooks/KitodoProductionHacks.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
                 }
58 58
                 $dmdIds = explode(' ', $id);
59 59
                 foreach ($dmdIds as $dmdId) {
60
-                    $recordIds = $xml->xpath('//mets:dmdSec[@ID="' . $dmdId . '"]//mods:mods/mods:recordInfo/mods:recordIdentifier');
60
+                    $recordIds = $xml->xpath('//mets:dmdSec[@ID="'.$dmdId.'"]//mods:mods/mods:recordInfo/mods:recordIdentifier');
61 61
                     if (!empty($recordIds)) {
62 62
                         $recordId = (string) $recordIds[0];
63 63
                         break;
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,7 @@
 block discarded – undo
20 20
  *
21 21
  * @access public
22 22
  */
23
-class KitodoProductionHacks
24
-{
23
+class KitodoProductionHacks {
25 24
     /**
26 25
      * Hook for \Kitodo\Dlf\Common\MetsDocument::establishRecordId()
27 26
      * When using Kitodo.Production the record identifier is saved only in MODS, but not
Please login to merge, or discard this patch.
Classes/Hooks/ConfigurationForm.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,8 +24,7 @@  discard block
 block discarded – undo
24 24
  *
25 25
  * @access public
26 26
  */
27
-class ConfigurationForm
28
-{
27
+class ConfigurationForm {
29 28
 
30 29
     /**
31 30
      * Check if a connection to a Solr server could be established with the given credentials.
@@ -60,8 +59,7 @@  discard block
 block discarded – undo
60 59
      *
61 60
      * @return void
62 61
      */
63
-    public function __construct()
64
-    {
62
+    public function __construct() {
65 63
         // Load backend localization file.
66 64
         Helper::getLanguageService()->includeLLFile('EXT:dlf/Resources/Private/Language/locallang_be.xlf');
67 65
     }
Please login to merge, or discard this patch.
Classes/Hooks/ItemsProcFunc.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@
 block discarded – undo
29 29
  *
30 30
  * @access public
31 31
  */
32
-class ItemsProcFunc implements LoggerAwareInterface
33
-{
32
+class ItemsProcFunc implements LoggerAwareInterface {
34 33
     use LoggerAwareTrait;
35 34
 
36 35
     /**
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -155,8 +155,8 @@
 block discarded – undo
155 155
             ->select(...explode(',', $fields))
156 156
             ->from($table)
157 157
             ->where(
158
-                $queryBuilder->expr()->eq($table . '.pid', $this->storagePid),
159
-                $queryBuilder->expr()->in($table . '.sys_language_uid', [-1, 0]),
158
+                $queryBuilder->expr()->eq($table.'.pid', $this->storagePid),
159
+                $queryBuilder->expr()->in($table.'.sys_language_uid', [-1, 0]),
160 160
                 $andWhere
161 161
             )
162 162
             ->orderBy($sorting)
Please login to merge, or discard this patch.