Passed
Pull Request — master (#123)
by
unknown
05:25
created
Tests/Unit/Common/HelperTest.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,10 +15,8 @@
 block discarded – undo
15 15
 use Kitodo\Dlf\Common\Helper;
16 16
 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
17 17
 
18
-class HelperTest extends UnitTestCase
19
-{
20
-    public function assertInvalidXml($xml)
21
-    {
18
+class HelperTest extends UnitTestCase {
19
+    public function assertInvalidXml($xml) {
22 20
         $result = Helper::getXmlFileAsString($xml);
23 21
         self::assertEquals(false, $result);
24 22
     }
Please login to merge, or discard this patch.
Upper-Lower-Casing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     public function assertInvalidXml($xml)
21 21
     {
22 22
         $result = Helper::getXmlFileAsString($xml);
23
-        self::assertEquals(false, $result);
23
+        self::assertEquals(FALSE, $result);
24 24
     }
25 25
 
26 26
     /**
@@ -29,8 +29,8 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public function invalidXmlYieldsFalse(): void
31 31
     {
32
-        self::assertInvalidXml(false);
33
-        self::assertInvalidXml(null);
32
+        self::assertInvalidXml(FALSE);
33
+        self::assertInvalidXml(NULL);
34 34
         self::assertInvalidXml(1);
35 35
         self::assertInvalidXml([]);
36 36
         self::assertInvalidXml(new \stdClass());
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 <root>
51 51
     <single />
52 52
 </root>
53
-XML;
53
+xml;
54 54
         $node = Helper::getXmlFileAsString($xml);
55 55
         self::assertIsObject($node);
56 56
         self::assertEquals('root', $node->getName());
Please login to merge, or discard this patch.
Tests/Functional/Repository/TokenRepositoryTest.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     {
37 37
         parent::tearDown();
38 38
 
39
-        unlink(__DIR__ . '/../../Fixtures/Repository/tokenTemp.csv');
39
+        unlink(__DIR__.'/../../Fixtures/Repository/tokenTemp.csv');
40 40
     }
41 41
 
42 42
     /**
@@ -45,8 +45,8 @@  discard block
 block discarded – undo
45 45
      */
46 46
     public function deleteExpiredTokens(): void
47 47
     {
48
-        $inputCsvFile = __DIR__ . '/../../Fixtures/Repository/token.csv';
49
-        $outputCsvFile = __DIR__ . '/../../Fixtures/Repository/tokenTemp.csv';
48
+        $inputCsvFile = __DIR__.'/../../Fixtures/Repository/token.csv';
49
+        $outputCsvFile = __DIR__.'/../../Fixtures/Repository/tokenTemp.csv';
50 50
 
51 51
         $inputCsvData = file_get_contents($inputCsvFile);
52 52
         $csvData = str_getcsv($inputCsvData, "\n");
Please login to merge, or discard this 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\Domain\Repository\TokenRepository;
16 16
 use Kitodo\Dlf\Tests\Functional\FunctionalTestCase;
17 17
 
18
-class TokenRepositoryTest extends FunctionalTestCase
19
-{
18
+class TokenRepositoryTest extends FunctionalTestCase {
20 19
     /**
21 20
      * @var TokenRepository
22 21
      */
Please login to merge, or discard this patch.
Tests/Functional/Repository/CollectionRepositoryTest.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
             20000
33 33
         );
34 34
 
35
-        $this->importCSVDataSet(__DIR__ . '/../../Fixtures/Repository/collections.csv');
35
+        $this->importCSVDataSet(__DIR__.'/../../Fixtures/Repository/collections.csv');
36 36
     }
37 37
 
38 38
     /**
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,7 @@
 block discarded – undo
16 16
 use Kitodo\Dlf\Domain\Repository\CollectionRepository;
17 17
 use Kitodo\Dlf\Tests\Functional\FunctionalTestCase;
18 18
 
19
-class CollectionRepositoryTest extends FunctionalTestCase
20
-{
19
+class CollectionRepositoryTest extends FunctionalTestCase {
21 20
     /**
22 21
      * @var CollectionRepository
23 22
      */
Please login to merge, or discard this patch.
Upper-Lower-Casing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -107,14 +107,14 @@  discard block
 block discarded – undo
107 107
         $collectionsByLabel = $this->findCollectionsBySettings(
108 108
             [
109 109
                 'index_name' => ['Geschichte', 'collection-with-single-document'],
110
-                'show_userdefined' => true
110
+                'show_userdefined' => TRUE
111 111
             ]
112 112
         );
113 113
         self::assertCount(2, $collectionsByLabel);
114 114
         self::assertArrayHasKey('Geschichte', $collectionsByLabel);
115 115
         self::assertArrayHasKey('Collection with single document', $collectionsByLabel);
116 116
 
117
-        $collectionsByLabel = $this->findCollectionsBySettings(['show_userdefined' => true]);
117
+        $collectionsByLabel = $this->findCollectionsBySettings(['show_userdefined' => TRUE]);
118 118
         self::assertCount(4, $collectionsByLabel);
119 119
         self::assertArrayHasKey('Musik', $collectionsByLabel);
120 120
         self::assertArrayHasKey('Collection with single document', $collectionsByLabel);
@@ -125,20 +125,20 @@  discard block
 block discarded – undo
125 125
             implode(', ', array_keys($collectionsByLabel))
126 126
         );
127 127
 
128
-        $collectionsByLabel = $this->findCollectionsBySettings(['show_userdefined' => false]);
128
+        $collectionsByLabel = $this->findCollectionsBySettings(['show_userdefined' => FALSE]);
129 129
         self::assertCount(2, $collectionsByLabel);
130 130
         self::assertArrayHasKey('Musik', $collectionsByLabel);
131 131
         self::assertArrayHasKey('Collection with single document', $collectionsByLabel);
132 132
 
133
-        $collectionsByLabel = $this->findCollectionsBySettings(['hideEmptyOaiNames' => true]);
133
+        $collectionsByLabel = $this->findCollectionsBySettings(['hideEmptyOaiNames' => TRUE]);
134 134
         self::assertCount(2, $collectionsByLabel);
135 135
         self::assertArrayHasKey('Musik', $collectionsByLabel);
136 136
         self::assertArrayHasKey('Collection with single document', $collectionsByLabel);
137 137
 
138 138
         $collectionsByLabel = $this->findCollectionsBySettings(
139 139
             [
140
-                'hideEmptyOaiNames' => true,
141
-                'show_userdefined' => true
140
+                'hideEmptyOaiNames' => TRUE,
141
+                'show_userdefined' => TRUE
142 142
             ]
143 143
         );
144 144
         self::assertCount(3, $collectionsByLabel);
@@ -148,8 +148,8 @@  discard block
 block discarded – undo
148 148
 
149 149
         $collectionsByLabel = $this->findCollectionsBySettings(
150 150
             [
151
-                'hideEmptyOaiNames' => false,
152
-                'show_userdefined' => true
151
+                'hideEmptyOaiNames' => FALSE,
152
+                'show_userdefined' => TRUE
153 153
             ]
154 154
         );
155 155
         self::assertCount(4, $collectionsByLabel);
@@ -161,8 +161,8 @@  discard block
 block discarded – undo
161 161
         $collectionsByLabel = $this->findCollectionsBySettings(
162 162
             [
163 163
                 'collections' => '1101, 1102, 1103, 1104',
164
-                'show_userdefined' => true,
165
-                'hideEmptyOaiNames' => false,
164
+                'show_userdefined' => TRUE,
165
+                'hideEmptyOaiNames' => FALSE,
166 166
                 'index_name' => ['Geschichte', 'collection-with-single-document']
167 167
             ]
168 168
         );
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
     public function canGetIndexNameForSolr(): void
180 180
     {
181 181
         $indexName = $this->collectionRepository->getIndexNameForSolr(
182
-            ['show_userdefined' => true, 'storagePid' => '20000'], 'history'
182
+            ['show_userdefined' => TRUE, 'storagePid' => '20000'], 'history'
183 183
         );
184 184
         $result = $indexName->fetchAllAssociative();
185 185
         self::assertEquals(1, $indexName->rowCount());
@@ -188,12 +188,12 @@  discard block
 block discarded – undo
188 188
         self::assertEquals('1103', $result[0]['uid']);
189 189
 
190 190
         $indexName = $this->collectionRepository->getIndexNameForSolr(
191
-            ['show_userdefined' => false, 'storagePid' => '20000'], 'history'
191
+            ['show_userdefined' => FALSE, 'storagePid' => '20000'], 'history'
192 192
         );
193 193
         self::assertEquals(0, $indexName->rowCount());
194 194
 
195 195
         $indexName = $this->collectionRepository->getIndexNameForSolr(
196
-            ['show_userdefined' => false, 'storagePid' => '20000'], 'collection-with-single-document'
196
+            ['show_userdefined' => FALSE, 'storagePid' => '20000'], 'collection-with-single-document'
197 197
         );
198 198
         self::assertEquals(1, $indexName->rowCount());
199 199
         self::assertEquals('collection-with-single-document', $indexName->fetchOne());
Please login to merge, or discard this patch.
Tests/Functional/Repository/MailRepositoryTest.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
             20000
33 33
         );
34 34
 
35
-        $this->importCSVDataSet(__DIR__ . '/../../Fixtures/Repository/mail.csv');
35
+        $this->importCSVDataSet(__DIR__.'/../../Fixtures/Repository/mail.csv');
36 36
     }
37 37
 
38 38
     /**
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,7 @@
 block discarded – undo
16 16
 use Kitodo\Dlf\Domain\Repository\MailRepository;
17 17
 use Kitodo\Dlf\Tests\Functional\FunctionalTestCase;
18 18
 
19
-class MailRepositoryTest extends FunctionalTestCase
20
-{
19
+class MailRepositoryTest extends FunctionalTestCase {
21 20
     /**
22 21
      * @var MailRepository
23 22
      */
Please login to merge, or discard this patch.
Tests/Functional/Repository/MetatdataRepositoryTest.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
             20000
33 33
         );
34 34
 
35
-        $this->importCSVDataSet(__DIR__ . '/../../Fixtures/Repository/metadata.csv');
35
+        $this->importCSVDataSet(__DIR__.'/../../Fixtures/Repository/metadata.csv');
36 36
     }
37 37
 
38 38
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,8 +16,7 @@  discard block
 block discarded – undo
16 16
 use Kitodo\Dlf\Domain\Repository\MetadataRepository;
17 17
 use Kitodo\Dlf\Tests\Functional\FunctionalTestCase;
18 18
 
19
-class MetadataRepositoryTest extends FunctionalTestCase
20
-{
19
+class MetadataRepositoryTest extends FunctionalTestCase {
21 20
     /**
22 21
      * @var MetadataRepository
23 22
      */
@@ -40,8 +39,7 @@  discard block
 block discarded – undo
40 39
      * @param $settings
41 40
      * @return array
42 41
      */
43
-    protected function findBySettings($settings)
44
-    {
42
+    protected function findBySettings($settings) {
45 43
         $metadata = $this->metadataRepository->findBySettings($settings);
46 44
         self::assertNotNull($metadata);
47 45
         self::assertInstanceOf(QueryResult::class, $metadata);
Please login to merge, or discard this patch.
Upper-Lower-Casing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -67,14 +67,14 @@  discard block
 block discarded – undo
67 67
             implode(', ', array_keys($metadataByLabel))
68 68
         );
69 69
 
70
-        $metadataByLabel = $this->findBySettings(['is_listed' => true]);
70
+        $metadataByLabel = $this->findBySettings(['is_listed' => TRUE]);
71 71
         self::assertCount(3, $metadataByLabel);
72 72
         self::assertEquals(
73 73
             'Autor, Institution, Titel',
74 74
             implode(', ', array_keys($metadataByLabel))
75 75
         );
76 76
 
77
-        $metadataByLabel = $this->findBySettings(['is_sortable' => true]);
77
+        $metadataByLabel = $this->findBySettings(['is_sortable' => TRUE]);
78 78
         self::assertCount(4, $metadataByLabel);
79 79
         self::assertEquals(
80 80
             'Ort, Untertitel, Autor, Titel',
@@ -83,8 +83,8 @@  discard block
 block discarded – undo
83 83
 
84 84
         $metadataByLabel = $this->findBySettings(
85 85
             [
86
-                'is_sortable' => true,
87
-                'is_listed' => true
86
+                'is_sortable' => TRUE,
87
+                'is_listed' => TRUE
88 88
             ]
89 89
         );
90 90
         self::assertCount(2, $metadataByLabel);
Please login to merge, or discard this patch.
Tests/Functional/Api/PageViewProxyTest.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
         ]);
87 87
 
88 88
         self::assertEquals(200, $response->getStatusCode());
89
-        self::assertEquals('This is some plain text test file.' . "\n", (string) $response->getBody());
89
+        self::assertEquals('This is some plain text test file.'."\n", (string) $response->getBody());
90 90
     }
91 91
 
92 92
     /**
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,12 +15,10 @@  discard block
 block discarded – undo
15 15
 use Kitodo\Dlf\Tests\Functional\FunctionalTestCase;
16 16
 use TYPO3\CMS\Core\Utility\GeneralUtility;
17 17
 
18
-class PageViewProxyTest extends FunctionalTestCase
19
-{
18
+class PageViewProxyTest extends FunctionalTestCase {
20 19
     protected $disableJsonWrappedResponse = true;
21 20
 
22
-    protected function getDlfConfiguration()
23
-    {
21
+    protected function getDlfConfiguration() {
24 22
         return array_merge(parent::getDlfConfiguration(), [
25 23
             'general' => [
26 24
                 'enableInternalProxy' => true
@@ -28,8 +26,7 @@  discard block
 block discarded – undo
28 26
         ]);
29 27
     }
30 28
 
31
-    protected function queryProxy(array $query, string $method = 'GET')
32
-    {
29
+    protected function queryProxy(array $query, string $method = 'GET') {
33 30
         $query['eID'] = 'tx_dlf_pageview_proxy';
34 31
 
35 32
         return $this->httpClient->request($method, '', [
Please login to merge, or discard this patch.
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,13 +17,13 @@
 block discarded – undo
17 17
 
18 18
 class PageViewProxyTest extends FunctionalTestCase
19 19
 {
20
-    protected $disableJsonWrappedResponse = true;
20
+    protected $disableJsonWrappedResponse = TRUE;
21 21
 
22 22
     protected function getDlfConfiguration()
23 23
     {
24 24
         return array_merge(parent::getDlfConfiguration(), [
25 25
             'general' => [
26
-                'enableInternalProxy' => true
26
+                'enableInternalProxy' => TRUE
27 27
             ]
28 28
         ]);
29 29
     }
Please login to merge, or discard this patch.
Tests/Functional/Api/OaiPmhTest.php 3 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -51,15 +51,15 @@  discard block
 block discarded – undo
51 51
     {
52 52
         parent::setUp();
53 53
 
54
-        $this->oaiUrl = $this->baseUrl . 'index.php?id=' . $this->oaiPage;
55
-        $this->oaiUrlNoStoragePid = $this->baseUrl . 'index.php?id=' . $this->oaiPageNoStoragePid;
54
+        $this->oaiUrl = $this->baseUrl.'index.php?id='.$this->oaiPage;
55
+        $this->oaiUrlNoStoragePid = $this->baseUrl.'index.php?id='.$this->oaiPageNoStoragePid;
56 56
 
57
-        $this->importCSVDataSet(__DIR__ . '/../../Fixtures/Common/documents_1.csv');
58
-        $this->importCSVDataSet(__DIR__ . '/../../Fixtures/Common/metadata.csv');
59
-        $this->importCSVDataSet(__DIR__ . '/../../Fixtures/Common/libraries.csv');
60
-        $this->importCSVDataSet(__DIR__ . '/../../Fixtures/Common/pages.csv');
61
-        $this->importDataSet(__DIR__ . '/../../Fixtures/OaiPmh/pages.xml');
62
-        $this->importCSVDataSet(__DIR__ . '/../../Fixtures/OaiPmh/solrcores.csv');
57
+        $this->importCSVDataSet(__DIR__.'/../../Fixtures/Common/documents_1.csv');
58
+        $this->importCSVDataSet(__DIR__.'/../../Fixtures/Common/metadata.csv');
59
+        $this->importCSVDataSet(__DIR__.'/../../Fixtures/Common/libraries.csv');
60
+        $this->importCSVDataSet(__DIR__.'/../../Fixtures/Common/pages.csv');
61
+        $this->importDataSet(__DIR__.'/../../Fixtures/OaiPmh/pages.xml');
62
+        $this->importCSVDataSet(__DIR__.'/../../Fixtures/OaiPmh/solrcores.csv');
63 63
 
64 64
         $this->solrCoreRepository = $this->initializeRepository(SolrCoreRepository::class, 20000);
65 65
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             $coreName = Solr::createCore();
76 76
             $solr = Solr::getInstance($coreName);
77 77
 
78
-            $this->importSolrDocuments($solr, __DIR__ . '/../../Fixtures/Common/documents_1.solr.json');
78
+            $this->importSolrDocuments($solr, __DIR__.'/../../Fixtures/Common/documents_1.solr.json');
79 79
         }
80 80
 
81 81
         $oaiCoreModel = $this->solrCoreRepository->findByUid(11001);
Please login to merge, or discard this patch.
Braces   +14 added lines, -28 removed lines patch added patch discarded remove patch
@@ -21,8 +21,7 @@  discard block
 block discarded – undo
21 21
 use Phpoaipmh\Exception\OaipmhException;
22 22
 use SimpleXMLElement;
23 23
 
24
-class OaiPmhTest extends FunctionalTestCase
25
-{
24
+class OaiPmhTest extends FunctionalTestCase {
26 25
     protected $disableJsonWrappedResponse = true;
27 26
 
28 27
     protected array $coreExtensionsToLoad = [
@@ -66,8 +65,7 @@  discard block
 block discarded – undo
66 65
         $this->setUpOaiSolr();
67 66
     }
68 67
 
69
-    protected function setUpOaiSolr()
70
-    {
68
+    protected function setUpOaiSolr() {
71 69
         // Setup Solr only once for all tests in this suite
72 70
         static $solr = null;
73 71
 
@@ -87,8 +85,7 @@  discard block
 block discarded – undo
87 85
     /**
88 86
      * @test
89 87
      */
90
-    public function correctlyRespondsOnBadVerb()
91
-    {
88
+    public function correctlyRespondsOnBadVerb() {
92 89
         $client = new HttpClient();
93 90
         $response = $client->get($this->baseUrl, [
94 91
             'query' => [
@@ -113,8 +110,7 @@  discard block
 block discarded – undo
113 110
     /**
114 111
      * @test
115 112
      */
116
-    public function canIdentify()
117
-    {
113
+    public function canIdentify() {
118 114
         $oai = Endpoint::build($this->oaiUrl);
119 115
         $identity = $oai->identify();
120 116
 
@@ -127,8 +123,7 @@  discard block
 block discarded – undo
127 123
     /**
128 124
      * @test
129 125
      */
130
-    public function identifyGivesFallbackDatestampWhenNoDocuments()
131
-    {
126
+    public function identifyGivesFallbackDatestampWhenNoDocuments() {
132 127
         $oai = Endpoint::build($this->oaiUrlNoStoragePid);
133 128
         $identity = $oai->identify();
134 129
 
@@ -138,8 +133,7 @@  discard block
 block discarded – undo
138 133
     /**
139 134
      * @test
140 135
      */
141
-    public function canListMetadataFormats()
142
-    {
136
+    public function canListMetadataFormats() {
143 137
         $oai = Endpoint::build($this->oaiUrl);
144 138
         $formats = $oai->listMetadataFormats();
145 139
 
@@ -154,8 +148,7 @@  discard block
 block discarded – undo
154 148
     /**
155 149
      * @test
156 150
      */
157
-    public function canListRecords()
158
-    {
151
+    public function canListRecords() {
159 152
         $oai = Endpoint::build($this->oaiUrl);
160 153
         $result = $oai->listRecords('mets');
161 154
 
@@ -168,8 +161,7 @@  discard block
 block discarded – undo
168 161
     /**
169 162
      * @test
170 163
      */
171
-    public function noRecordsUntil1900()
172
-    {
164
+    public function noRecordsUntil1900() {
173 165
         $this->expectException(OaipmhException::class);
174 166
         $this->expectExceptionMessage('empty list');
175 167
 
@@ -182,8 +174,7 @@  discard block
 block discarded – undo
182 174
     /**
183 175
      * @test
184 176
      */
185
-    public function canUseResumptionToken()
186
-    {
177
+    public function canUseResumptionToken() {
187 178
         // NOTE: cursor and expirationDate are optional by the specification,
188 179
         //       but we include them in our implementation
189 180
 
@@ -241,8 +232,7 @@  discard block
 block discarded – undo
241 232
     /**
242 233
      * @test
243 234
      */
244
-    public function noResumptionTokenForCompleteList()
245
-    {
235
+    public function noResumptionTokenForCompleteList() {
246 236
         $client = new HttpClient();
247 237
 
248 238
         foreach (['ListIdentifiers', 'ListRecords'] as $verb) {
@@ -264,8 +254,7 @@  discard block
 block discarded – undo
264 254
     /**
265 255
      * @test
266 256
      */
267
-    public function canListAndResumeIdentifiers()
268
-    {
257
+    public function canListAndResumeIdentifiers() {
269 258
         $oai = Endpoint::build($this->oaiUrl);
270 259
         $result = $oai->listIdentifiers('mets');
271 260
 
@@ -278,18 +267,15 @@  discard block
 block discarded – undo
278 267
         self::assertEquals('oai:de:slub-dresden:db:id-476248086', $record->identifier);
279 268
     }
280 269
 
281
-    protected function parseUtc(string $dateTime)
282
-    {
270
+    protected function parseUtc(string $dateTime) {
283 271
         return DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $dateTime);
284 272
     }
285 273
 
286
-    protected function assertUtcDateString(string $dateTime)
287
-    {
274
+    protected function assertUtcDateString(string $dateTime) {
288 275
         self::assertInstanceOf(DateTime::class, $this->parseUtc($dateTime));
289 276
     }
290 277
 
291
-    protected function assertInFuture(string $dateTime)
292
-    {
278
+    protected function assertInFuture(string $dateTime) {
293 279
         self::assertGreaterThan(new DateTime(), $this->parseUtc($dateTime));
294 280
     }
295 281
 }
Please login to merge, or discard this patch.
Upper-Lower-Casing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 
24 24
 class OaiPmhTest extends FunctionalTestCase
25 25
 {
26
-    protected $disableJsonWrappedResponse = true;
26
+    protected $disableJsonWrappedResponse = TRUE;
27 27
 
28 28
     protected array $coreExtensionsToLoad = [
29 29
         'fluid',
@@ -69,9 +69,9 @@  discard block
 block discarded – undo
69 69
     protected function setUpOaiSolr()
70 70
     {
71 71
         // Setup Solr only once for all tests in this suite
72
-        static $solr = null;
72
+        static $solr = NULL;
73 73
 
74
-        if ($solr === null) {
74
+        if ($solr === NULL) {
75 75
             $coreName = Solr::createCore();
76 76
             $solr = Solr::getInstance($coreName);
77 77
 
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
         $this->expectExceptionMessage('empty list');
175 175
 
176 176
         $oai = Endpoint::build($this->oaiUrl);
177
-        $result = $oai->listRecords('mets', null, (new DateTime())->setDate(1900, 1, 1));
177
+        $result = $oai->listRecords('mets', NULL, (new DateTime())->setDate(1900, 1, 1));
178 178
 
179 179
         $result->current();
180 180
     }
Please login to merge, or discard this patch.
Tests/Functional/ViewHelpers/JsFooterViewHelperTest.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,7 @@
 block discarded – undo
20 20
 /**
21 21
  * @covers JsFooterViewHelper
22 22
  */
23
-class JsFooterViewHelperTest extends FunctionalTestCase
24
-{
23
+class JsFooterViewHelperTest extends FunctionalTestCase {
25 24
     /**
26 25
      * @var bool Speed up this test case, it needs no database
27 26
      */
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     /**
26 26
      * @var bool Speed up this test case, it needs no database
27 27
      */
28
-    protected bool $initializeDatabase = false;
28
+    protected bool $initializeDatabase = FALSE;
29 29
 
30 30
     /**
31 31
      * @test
Please login to merge, or discard this patch.
Tests/Functional/ViewHelpers/MetadataWrapVariableViewHelperTest.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 
35 35
         $view->assign(
36 36
             'configObject',
37
-            [ 'wrap' => 'all.wrap = <article class="shlb-metadata-text-item metadata-title">|</article>
37
+            ['wrap' => 'all.wrap = <article class="shlb-metadata-text-item metadata-title">|</article>
38 38
                  key.wrap = <label>|</label>
39 39
                  value.required = 1
40 40
                  value.wrap = <li>|</li>'
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,7 @@
 block discarded – undo
18 18
 /**
19 19
  * @covers MetadataWrapVariableViewHelper
20 20
  */
21
-class MetadataWrapVariableViewHelperTest extends FunctionalTestCase
22
-{
21
+class MetadataWrapVariableViewHelperTest extends FunctionalTestCase {
23 22
     /**
24 23
      * @var bool Speed up this test case, it needs no database
25 24
      */
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     /**
26 26
      * @var bool Speed up this test case, it needs no database
27 27
      */
28
-    protected bool $initializeDatabase = false;
28
+    protected bool $initializeDatabase = FALSE;
29 29
 
30 30
     /**
31 31
      * @test
Please login to merge, or discard this patch.