Passed
Pull Request — master (#103)
by Alexander
03:37
created
Classes/Hooks/ConfigurationForm.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@  discard block
 block discarded – undo
29 29
  * @subpackage dlf
30 30
  * @access public
31 31
  */
32
-class ConfigurationForm
33
-{
32
+class ConfigurationForm {
34 33
 
35 34
     /**
36 35
      * Check if a connection to a Solr server could be established with the given credentials.
@@ -39,8 +38,7 @@  discard block
 block discarded – undo
39 38
      *
40 39
      * @return string Message informing the user of success or failure
41 40
      */
42
-    public function checkSolrConnection()
43
-    {
41
+    public function checkSolrConnection() {
44 42
         $solr = Solr::getInstance();
45 43
         if ($solr->ready) {
46 44
             Helper::addMessage(
@@ -65,8 +63,7 @@  discard block
 block discarded – undo
65 63
      *
66 64
      * @return void
67 65
      */
68
-    public function __construct()
69
-    {
66
+    public function __construct() {
70 67
         // Load backend localization file.
71 68
         Helper::getLanguageService()->includeLLFile('EXT:dlf/Resources/Private/Language/locallang_be.xlf');
72 69
     }
Please login to merge, or discard this patch.
Classes/Domain/Model/SolrCore.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
  * @subpackage dlf
22 22
  * @access public
23 23
  */
24
-class SolrCore extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
25
-{
24
+class SolrCore extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
26 25
     /**
27 26
      * @var int
28 27
      */
Please login to merge, or discard this patch.
Classes/Domain/Model/Format.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
  * @subpackage dlf
26 26
  * @access public
27 27
  */
28
-class Format extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
29
-{
28
+class Format extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
30 29
     /**
31 30
      * Name of the type that is used to reference it.
32 31
      *
Please login to merge, or discard this patch.
Classes/Domain/Model/Basket.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,8 +19,7 @@
 block discarded – undo
19 19
  * @subpackage dlf
20 20
  * @access public
21 21
  */
22
-class Basket extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
23
-{
22
+class Basket extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
24 23
     /**
25 24
      * @var string|null
26 25
      */
Please login to merge, or discard this patch.
Classes/Domain/Model/MetadataFormat.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
  * @subpackage dlf
26 26
  * @access public
27 27
  */
28
-class MetadataFormat extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
29
-{
28
+class MetadataFormat extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
30 29
     /**
31 30
      * UID of the ``tx_dlf_metadata`` that is encoded by this metadata entry.
32 31
      *
Please login to merge, or discard this patch.
Classes/Domain/Model/Metadata.php 1 patch
Braces   +6 added lines, -12 removed lines patch added patch discarded remove patch
@@ -22,8 +22,7 @@  discard block
 block discarded – undo
22 22
  * @subpackage dlf
23 23
  * @access public
24 24
  */
25
-class Metadata extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
26
-{
25
+class Metadata extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
27 26
     /**
28 27
      * @var \Kitodo\Dlf\Domain\Model\Metadata
29 28
      */
@@ -109,14 +108,12 @@  discard block
 block discarded – undo
109 108
     /**
110 109
      * constructor
111 110
      */
112
-    public function __construct()
113
-    {
111
+    public function __construct() {
114 112
         // Do not remove the next line: It would break the functionality
115 113
         $this->initStorageObjects();
116 114
     }
117 115
 
118
-    protected function initStorageObjects()
119
-    {
116
+    protected function initStorageObjects() {
120 117
         $this->format = new ObjectStorage();
121 118
     }
122 119
 
@@ -187,8 +184,7 @@  discard block
 block discarded – undo
187 184
     /**
188 185
      * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\Kitodo\Dlf\Domain\Model\MetadataFormat> $format
189 186
      */
190
-    public function getFormat()
191
-    {
187
+    public function getFormat() {
192 188
         return $this->format;
193 189
     }
194 190
 
@@ -207,8 +203,7 @@  discard block
 block discarded – undo
207 203
      *
208 204
      * @return void
209 205
      */
210
-    public function addFormat(MetadataFormat $format)
211
-    {
206
+    public function addFormat(MetadataFormat $format) {
212 207
         $this->format->attach($format);
213 208
     }
214 209
 
@@ -219,8 +214,7 @@  discard block
 block discarded – undo
219 214
      *
220 215
      * @return void
221 216
      */
222
-    public function removeFormat(MetadataFormat $formatToRemove)
223
-    {
217
+    public function removeFormat(MetadataFormat $formatToRemove) {
224 218
         $this->format->detach($formatToRemove);
225 219
     }
226 220
 
Please login to merge, or discard this patch.
Classes/Domain/Model/Document.php 2 patches
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -23,8 +23,7 @@  discard block
 block discarded – undo
23 23
  * @subpackage dlf
24 24
  * @access public
25 25
  */
26
-class Document extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
27
-{
26
+class Document extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
28 27
     /**
29 28
      * @var \DateTime
30 29
      */
@@ -192,14 +191,12 @@  discard block
 block discarded – undo
192 191
     /**
193 192
      * constructor
194 193
      */
195
-    public function __construct()
196
-    {
194
+    public function __construct() {
197 195
         // Do not remove the next line: It would break the functionality
198 196
         $this->initStorageObjects();
199 197
     }
200 198
 
201
-    protected function initStorageObjects()
202
-    {
199
+    protected function initStorageObjects() {
203 200
         $this->collections = new ObjectStorage();
204 201
     }
205 202
 
@@ -577,8 +574,7 @@  discard block
 block discarded – undo
577 574
      *
578 575
      * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\Kitodo\Dlf\Domain\Model\Collection> $collections
579 576
      */
580
-    public function getCollections()
581
-    {
577
+    public function getCollections() {
582 578
         return $this->collections;
583 579
     }
584 580
 
@@ -607,8 +603,7 @@  discard block
 block discarded – undo
607 603
      *
608 604
      * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\Kitodo\Dlf\Domain\Model\Collection> collections
609 605
      */
610
-    public function removeCollection(Collection $collection)
611
-    {
606
+    public function removeCollection(Collection $collection) {
612 607
         $this->collections->detach($collection);
613 608
     }
614 609
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      *
41 41
      * @var \Kitodo\Dlf\Common\Doc|null
42 42
      */
43
-    protected $doc = null;
43
+    protected $doc = NULL;
44 44
 
45 45
     /**
46 46
      * @var string
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
      * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\Kitodo\Dlf\Domain\Model\Collection>
157 157
      * @Extbase\ORM\Lazy
158 158
      */
159
-    protected $collections = null;
159
+    protected $collections = NULL;
160 160
 
161 161
     /**
162 162
      * @var string
Please login to merge, or discard this patch.
Classes/Domain/Model/Token.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,8 +19,7 @@
 block discarded – undo
19 19
  * @subpackage dlf
20 20
  * @access public
21 21
  */
22
-class Token extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
23
-{
22
+class Token extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
24 23
     /**
25 24
      * The resumption token string.
26 25
      *
Please login to merge, or discard this patch.
Classes/Domain/Model/Structure.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,8 +19,7 @@
 block discarded – undo
19 19
  * @subpackage dlf
20 20
  * @access public
21 21
  */
22
-class Structure extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
23
-{
22
+class Structure extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
24 23
     /**
25 24
      * @var \Kitodo\Dlf\Domain\Model\Structure
26 25
      */
Please login to merge, or discard this patch.