Passed
Pull Request — master (#103)
by Alexander
03:37
created
Classes/Hooks/KitodoProductionHacks.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,8 +20,7 @@  discard block
 block discarded – undo
20 20
  * @subpackage dlf
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
@@ -34,8 +33,7 @@  discard block
 block discarded – undo
34 33
      *
35 34
      * @return void
36 35
      */
37
-    public function construct_postProcessRecordId(\SimpleXMLElement &$xml, &$record_id)
38
-    {
36
+    public function construct_postProcessRecordId(\SimpleXMLElement &$xml, &$record_id) {
39 37
         if (!$record_id) {
40 38
             $xml->registerXPathNamespace('mods', 'http://www.loc.gov/mods/v3');
41 39
             // Get all logical structure nodes with metadata, but without associated METS-Pointers.
Please login to merge, or discard this patch.
Classes/Format/TeiHeader.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,8 +20,7 @@  discard block
 block discarded – undo
20 20
  * @subpackage dlf
21 21
  * @access public
22 22
  */
23
-class TeiHeader implements \Kitodo\Dlf\Common\MetadataInterface
24
-{
23
+class TeiHeader implements \Kitodo\Dlf\Common\MetadataInterface {
25 24
     /**
26 25
      * This extracts the essential TEIHDR metadata from XML
27 26
      *
@@ -32,8 +31,7 @@  discard block
 block discarded – undo
32 31
      *
33 32
      * @return void
34 33
      */
35
-    public function extractMetadata(\SimpleXMLElement $xml, array &$metadata)
36
-    {
34
+    public function extractMetadata(\SimpleXMLElement $xml, array &$metadata) {
37 35
         $xml->registerXPathNamespace('teihdr', 'http://www.tei-c.org/ns/1.0');
38 36
     }
39 37
 }
Please login to merge, or discard this patch.
Classes/Format/Mods.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,8 +20,7 @@  discard block
 block discarded – undo
20 20
  * @subpackage dlf
21 21
  * @access public
22 22
  */
23
-class Mods implements \Kitodo\Dlf\Common\MetadataInterface
24
-{
23
+class Mods implements \Kitodo\Dlf\Common\MetadataInterface {
25 24
     /**
26 25
      * This extracts the essential MODS metadata from XML
27 26
      *
@@ -32,8 +31,7 @@  discard block
 block discarded – undo
32 31
      *
33 32
      * @return void
34 33
      */
35
-    public function extractMetadata(\SimpleXMLElement $xml, array &$metadata)
36
-    {
34
+    public function extractMetadata(\SimpleXMLElement $xml, array &$metadata) {
37 35
         $xml->registerXPathNamespace('mods', 'http://www.loc.gov/mods/v3');
38 36
         // Get "author" and "author_sorting".
39 37
         $authors = $xml->xpath('./mods:name[./mods:role/mods:roleTerm[@type="code" and @authority="marcrelator"]="aut"]');
Please login to merge, or discard this patch.
Classes/Common/FulltextInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,7 @@
 block discarded – undo
21 21
  * @access public
22 22
  * @abstract
23 23
  */
24
-interface FulltextInterface
25
-{
24
+interface FulltextInterface {
26 25
     /**
27 26
      * This extracts raw fulltext data from XML
28 27
      *
Please login to merge, or discard this patch.
Classes/Common/MetadataInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,7 @@
 block discarded – undo
21 21
  * @access public
22 22
  * @abstract
23 23
  */
24
-interface MetadataInterface
25
-{
24
+interface MetadataInterface {
26 25
     /**
27 26
      * This extracts metadata from XML
28 27
      *
Please login to merge, or discard this patch.
Classes/Common/IiifUrlReader.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -25,8 +25,7 @@  discard block
 block discarded – undo
25 25
  * @subpackage dlf
26 26
  * @access public
27 27
  */
28
-class IiifUrlReader implements UrlReaderInterface
29
-{
28
+class IiifUrlReader implements UrlReaderInterface {
30 29
     /**
31 30
      * Singleton instance of the class
32 31
      *
@@ -40,8 +39,7 @@  discard block
 block discarded – undo
40 39
      * {@inheritDoc}
41 40
      * @see \Ubl\Iiif\Tools\UrlReaderInterface::getContent()
42 41
      */
43
-    public function getContent($url)
44
-    {
42
+    public function getContent($url) {
45 43
         $fileContents = GeneralUtility::getUrl($url);
46 44
         if ($fileContents !== false) {
47 45
             return $fileContents;
@@ -57,8 +55,7 @@  discard block
 block discarded – undo
57 55
      *
58 56
      * @return IiifUrlReader
59 57
      */
60
-    public static function getInstance()
61
-    {
58
+    public static function getInstance() {
62 59
         if (!isset(self::$instance)) {
63 60
             self::$instance = new IiifUrlReader();
64 61
         }
Please login to merge, or discard this patch.
Classes/Common/KitodoFlashMessageRenderer.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,7 @@
 block discarded – undo
21 21
  * The created output contains all classes which are required for
22 22
  * the TYPO3 backend. Any kind of message contains also a nice icon.
23 23
  */
24
-class KitodoFlashMessageRenderer implements \TYPO3\CMS\Core\Messaging\Renderer\FlashMessageRendererInterface
25
-{
24
+class KitodoFlashMessageRenderer implements \TYPO3\CMS\Core\Messaging\Renderer\FlashMessageRendererInterface {
26 25
     /**
27 26
      * @var string The message severity class names
28 27
      */
Please login to merge, or discard this patch.
Classes/ExpressionLanguage/DocumentTypeProvider.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,10 +23,8 @@
 block discarded – undo
23 23
  * @subpackage dlf
24 24
  * @access public
25 25
  */
26
-class DocumentTypeProvider extends AbstractProvider
27
-{
28
-    public function __construct()
29
-    {
26
+class DocumentTypeProvider extends AbstractProvider {
27
+    public function __construct() {
30 28
         $this->expressionLanguageProviders = [
31 29
             DocumentTypeFunctionProvider::class
32 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
@@ -24,8 +24,7 @@
 block discarded – undo
24 24
  * @subpackage dlf
25 25
  * @access public
26 26
  */
27
-class SolrCoreStatus extends AbstractNode
28
-{
27
+class SolrCoreStatus extends AbstractNode {
29 28
     /**
30 29
      * Shows Solr core status for given 'index_name'
31 30
      *
Please login to merge, or discard this patch.