Passed
Pull Request — master (#123)
by
unknown
06:40
created
Classes/Middleware/SearchInDocument.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 
72 72
         $encrypted = (string) $parameters['encrypted'];
73 73
         if (empty($encrypted)) {
74
-            throw new \InvalidArgumentException('No valid parameter passed: ' . $parameters['middleware'] . '  ' . $parameters['encrypted'] . '!', 1580585079);
74
+            throw new \InvalidArgumentException('No valid parameter passed: '.$parameters['middleware'].'  '.$parameters['encrypted'].'!', 1580585079);
75 75
         }
76 76
 
77 77
         $output = [
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
      */
175 175
     private function getQuery(array $parameters): string
176 176
     {
177
-        return $this->fields['fulltext'] . ':(' . Solr::escapeQuery((string) $parameters['q']) . ') AND ' . $this->fields['uid'] . ':' . $this->getUid($parameters['uid']);
177
+        return $this->fields['fulltext'].':('.Solr::escapeQuery((string) $parameters['q']).') AND '.$this->fields['uid'].':'.$this->getUid($parameters['uid']);
178 178
     }
179 179
 
180 180
     /**
Please login to merge, or discard this patch.
Tests/Unit/Format/ModsTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      */
61 61
     public function extractAuthorsIfNoAutRoleTermAssigned(): void
62 62
     {
63
-        $xml = simplexml_load_file(__DIR__ . '/../../Fixtures/Format/modsAuthorNoAutRoleTerm.xml');
63
+        $xml = simplexml_load_file(__DIR__.'/../../Fixtures/Format/modsAuthorNoAutRoleTerm.xml');
64 64
         $mods = new Mods();
65 65
 
66 66
         $mods->extractMetadata($xml, $this->metadata, false);
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      */
81 81
     public function extractAuthorsWithAutRoleTermAssigned(): void
82 82
     {
83
-        $xml = simplexml_load_file(__DIR__ . '/../../Fixtures/Format/modsAuthorWithAutRoleTerm.xml');
83
+        $xml = simplexml_load_file(__DIR__.'/../../Fixtures/Format/modsAuthorWithAutRoleTerm.xml');
84 84
         $mods = new Mods();
85 85
 
86 86
         $mods->extractMetadata($xml, $this->metadata, false);
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      */
103 103
     public function extractPlaces(): void
104 104
     {
105
-        $xml = simplexml_load_file(__DIR__ . '/../../Fixtures/Format/modsOriginInfo.xml');
105
+        $xml = simplexml_load_file(__DIR__.'/../../Fixtures/Format/modsOriginInfo.xml');
106 106
         $mods = new Mods();
107 107
 
108 108
         $mods->extractMetadata($xml, $this->metadata, false);
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
      */
132 132
     public function extractYears(): void
133 133
     {
134
-        $xml = simplexml_load_file(__DIR__ . '/../../Fixtures/Format/modsOriginInfo.xml');
134
+        $xml = simplexml_load_file(__DIR__.'/../../Fixtures/Format/modsOriginInfo.xml');
135 135
         $mods = new Mods();
136 136
 
137 137
         $mods->extractMetadata($xml, $this->metadata, false);
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      */
161 161
     public function extractPlacesWithElectronicEdInside(): void
162 162
     {
163
-        $xml = simplexml_load_file(__DIR__ . '/../../Fixtures/Format/modsOriginInfoWithEditionElectronicEd.xml');
163
+        $xml = simplexml_load_file(__DIR__.'/../../Fixtures/Format/modsOriginInfoWithEditionElectronicEd.xml');
164 164
         $mods = new Mods();
165 165
 
166 166
         $mods->extractMetadata($xml, $this->metadata, false);
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
      */
190 190
     public function extractYearsWithElectronicEdInside(): void
191 191
     {
192
-        $xml = simplexml_load_file(__DIR__ . '/../../Fixtures/Format/modsOriginInfoWithEditionElectronicEd.xml');
192
+        $xml = simplexml_load_file(__DIR__.'/../../Fixtures/Format/modsOriginInfoWithEditionElectronicEd.xml');
193 193
         $mods = new Mods();
194 194
 
195 195
         $mods->extractMetadata($xml, $this->metadata, false);
Please login to merge, or discard this patch.
Tests/Unit/Format/AudioVideoMDTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      */
37 37
     public function canExtractDuration(): void
38 38
     {
39
-        $xml = simplexml_load_file(__DIR__ . '/../../Fixtures/Format/audioVideo.xml');
39
+        $xml = simplexml_load_file(__DIR__.'/../../Fixtures/Format/audioVideo.xml');
40 40
         $audioVideoMD = new AudioVideoMD();
41 41
 
42 42
         $videoXml = $xml->xpath('//mets:xmlData')[0];
Please login to merge, or discard this patch.
Tests/Unit/Format/AltoTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      */
24 24
     public function getRawData(): void
25 25
     {
26
-        $xml = simplexml_load_file(__DIR__ . '/../../Fixtures/Format/alto.xml');
26
+        $xml = simplexml_load_file(__DIR__.'/../../Fixtures/Format/alto.xml');
27 27
         $alto = new Alto();
28 28
 
29 29
         $rawText = $alto->getRawText($xml);
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public function getTextAsMiniOcr(): void
39 39
     {
40
-        $xml = simplexml_load_file(__DIR__ . '/../../Fixtures/Format/alto.xml');
40
+        $xml = simplexml_load_file(__DIR__.'/../../Fixtures/Format/alto.xml');
41 41
         $alto = new Alto();
42 42
 
43 43
         $rawText = $alto->getTextAsMiniOcr($xml);
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
      */
76 76
     public function getTextAsMiniOcrNoTextBlock(): void
77 77
     {
78
-        $xml = simplexml_load_file(__DIR__ . '/../../Fixtures/Format/altoNoTextBlock.xml');
78
+        $xml = simplexml_load_file(__DIR__.'/../../Fixtures/Format/altoNoTextBlock.xml');
79 79
         $alto = new Alto();
80 80
 
81 81
         $rawText = $alto->getTextAsMiniOcr($xml);
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      */
90 90
     public function getTextAsMiniOcrNoTextline(): void
91 91
     {
92
-        $xml = simplexml_load_file(__DIR__ . '/../../Fixtures/Format/altoNoTextLine.xml');
92
+        $xml = simplexml_load_file(__DIR__.'/../../Fixtures/Format/altoNoTextLine.xml');
93 93
         $alto = new Alto();
94 94
 
95 95
         $rawText = $alto->getTextAsMiniOcr($xml);
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     public function getTextAsMiniOcrNoString(): void
105 105
     {
106
-        $xml = simplexml_load_file(__DIR__ . '/../../Fixtures/Format/altoNoString.xml');
106
+        $xml = simplexml_load_file(__DIR__.'/../../Fixtures/Format/altoNoString.xml');
107 107
         $alto = new Alto();
108 108
 
109 109
         $rawText = $alto->getTextAsMiniOcr($xml);
Please login to merge, or discard this patch.
Tests/Functional/Repository/TokenRepositoryTest.php 1 patch
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.
Tests/Functional/Repository/CollectionRepositoryTest.php 1 patch
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.
Tests/Functional/Repository/DocumentRepositoryTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@
 block discarded – undo
31 31
 
32 32
         $this->documentRepository = $this->initializeRepository(DocumentRepository::class, 20000);
33 33
 
34
-        $this->importCSVDataSet(__DIR__ . '/../../Fixtures/Common/documents_1.csv');
35
-        $this->importDataSet(__DIR__ . '/../../Fixtures/Common/pages.xml');
36
-        $this->importCSVDataSet(__DIR__ . '/../../Fixtures/Common/libraries.csv');
34
+        $this->importCSVDataSet(__DIR__.'/../../Fixtures/Common/documents_1.csv');
35
+        $this->importDataSet(__DIR__.'/../../Fixtures/Common/pages.xml');
36
+        $this->importCSVDataSet(__DIR__.'/../../Fixtures/Common/libraries.csv');
37 37
     }
38 38
 
39 39
     /**
Please login to merge, or discard this patch.
Tests/Functional/Repository/MailRepositoryTest.php 1 patch
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.
Tests/Functional/Repository/MetatdataRepositoryTest.php 1 patch
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.