Passed
Pull Request — master (#123)
by
unknown
04:23
created
Classes/Domain/Model/ActionLog.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,7 @@
 block discarded – undo
22 22
  *
23 23
  * @access public
24 24
  */
25
-class ActionLog extends AbstractEntity
26
-{
25
+class ActionLog extends AbstractEntity {
27 26
     /**
28 27
      * @access protected
29 28
      * @var int
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
@@ -24,8 +24,7 @@
 block discarded – undo
24 24
  *
25 25
  * @access public
26 26
  */
27
-class SolrCore extends AbstractEntity
28
-{
27
+class SolrCore extends AbstractEntity {
29 28
     /**
30 29
      * @access protected
31 30
      * @var int
Please login to merge, or discard this patch.
Classes/Middleware/SearchSuggest.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,8 +30,7 @@
 block discarded – undo
30 30
  *
31 31
  * @access public
32 32
  */
33
-class SearchSuggest implements MiddlewareInterface
34
-{
33
+class SearchSuggest implements MiddlewareInterface {
35 34
     /**
36 35
      * The process method of the middleware.
37 36
      *
Please login to merge, or discard this patch.
Classes/Middleware/SearchInDocument.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -31,8 +31,7 @@  discard block
 block discarded – undo
31 31
  *
32 32
  * @access public
33 33
  */
34
-class SearchInDocument implements MiddlewareInterface
35
-{
34
+class SearchInDocument implements MiddlewareInterface {
36 35
     /**
37 36
      * This holds the solr instance
38 37
      *
@@ -136,8 +135,7 @@  discard block
 block discarded – undo
136 135
      *
137 136
      * @return \Solarium\Core\Query\Result\ResultInterface result
138 137
      */
139
-    private function executeSolrQuery($parameters)
140
-    {
138
+    private function executeSolrQuery($parameters) {
141 139
         $query = $this->solr->service->createSelect();
142 140
         $query->setFields([$this->fields['id'], $this->fields['uid'], $this->fields['page']]);
143 141
         $query->setQuery($this->getQuery($parameters));
@@ -187,8 +185,7 @@  discard block
 block discarded – undo
187 185
      *
188 186
      * @return int|string uid of the document
189 187
      */
190
-    private function getUid(string $uid)
191
-    {
188
+    private function getUid(string $uid) {
192 189
         return is_numeric($uid) ? intval($uid) : $uid;
193 190
     }
194 191
 }
Please login to merge, or discard this patch.
Build/Documentation/dbdocs/Generator.php 1 patch
Braces   +8 added lines, -16 removed lines patch added patch discarded remove patch
@@ -32,8 +32,7 @@  discard block
 block discarded – undo
32 32
  * @subpackage dlf
33 33
  * @access public
34 34
  */
35
-class Generator
36
-{
35
+class Generator {
37 36
     /**
38 37
      * @var LanguageService
39 38
      */
@@ -57,37 +56,32 @@  discard block
 block discarded – undo
57 56
     /**
58 57
      * @param LanguageService $languageService
59 58
      */
60
-    public function injectLanguageService(LanguageService $languageService)
61
-    {
59
+    public function injectLanguageService(LanguageService $languageService) {
62 60
         $this->languageService = $languageService;
63 61
     }
64 62
 
65 63
     /**
66 64
      * @param DataMapper $dataMapper
67 65
      */
68
-    public function injectDataMapper(DataMapper $dataMapper)
69
-    {
66
+    public function injectDataMapper(DataMapper $dataMapper) {
70 67
         $this->dataMapper = $dataMapper;
71 68
     }
72 69
 
73 70
     /**
74 71
      * @param SqlReader $sqlReader
75 72
      */
76
-    public function injectSqlReader(DataMapper $sqlReader)
77
-    {
73
+    public function injectSqlReader(DataMapper $sqlReader) {
78 74
         $this->sqlReader = $sqlReader;
79 75
     }
80 76
 
81 77
     /**
82 78
      * @param ConfigurationManager $configurationManager
83 79
      */
84
-    public function injectConfigurationManager(ConfigurationManager $configurationManager)
85
-    {
80
+    public function injectConfigurationManager(ConfigurationManager $configurationManager) {
86 81
         $this->configurationManager = $configurationManager;
87 82
     }
88 83
 
89
-    public function __construct()
90
-    {
84
+    public function __construct() {
91 85
 
92 86
     }
93 87
 
@@ -205,8 +199,7 @@  discard block
 block discarded – undo
205 199
         return $result;
206 200
     }
207 201
 
208
-    protected function parseDocComment($docComment)
209
-    {
202
+    protected function parseDocComment($docComment) {
210 203
         // TODO: Consider using phpDocumentor (though that splits the docblock into summary and description)
211 204
 
212 205
         // Adopted from DocCommentParser in TYPO3 v9
@@ -231,8 +224,7 @@  discard block
 block discarded – undo
231 224
     /**
232 225
      * Transform table structure into .rst page.
233 226
      */
234
-    public function generatePage(array $tables)
235
-    {
227
+    public function generatePage(array $tables) {
236 228
         $page = new RstSection();
237 229
         $page->setHeader('Database Tables');
238 230
         $page->addText(<<<RST
Please login to merge, or discard this patch.
Tests/Unit/Format/ModsTest.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,8 +15,7 @@
 block discarded – undo
15 15
 use Kitodo\Dlf\Format\Mods;
16 16
 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
17 17
 
18
-class ModsTest extends UnitTestCase
19
-{
18
+class ModsTest extends UnitTestCase {
20 19
     protected $metadata = [];
21 20
 
22 21
     public function setUp(): void
Please login to merge, or discard this patch.
Tests/Unit/Format/AudioVideoMDTest.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,8 +15,7 @@
 block discarded – undo
15 15
 use Kitodo\Dlf\Format\AudioVideoMD;
16 16
 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
17 17
 
18
-class AudioVideoMDTest extends UnitTestCase
19
-{
18
+class AudioVideoMDTest extends UnitTestCase {
20 19
     protected $metadata = [];
21 20
 
22 21
     public function setUp(): void
Please login to merge, or discard this patch.
Tests/Unit/Format/AltoTest.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,8 +15,7 @@
 block discarded – undo
15 15
 use Kitodo\Dlf\Format\Alto;
16 16
 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
17 17
 
18
-class AltoTest extends UnitTestCase
19
-{
18
+class AltoTest extends UnitTestCase {
20 19
     /**
21 20
      * @test
22 21
      * @group extract data
Please login to merge, or discard this patch.
Tests/Unit/Format/TeiHeaderTest.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@
 block discarded – undo
14 14
 
15 15
 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
16 16
 
17
-class TeiHeaderTest extends UnitTestCase
18
-{
17
+class TeiHeaderTest extends UnitTestCase {
19 18
     protected $metadata = [];
20 19
 
21 20
     public function setUp(): void
Please login to merge, or discard this patch.