Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-stoehr committed Oct 26, 2023
1 parent a023482 commit 0488d7a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 20 deletions.
10 changes: 5 additions & 5 deletions Tests/Unit/Format/AltoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class AltoTest extends UnitTestCase
*/
public function getRawData(): void
{
$xml = simplexml_load_file( __DIR__ . '/../../Fixtures/Format/alto.xml');
$xml = simplexml_load_file(__DIR__ . '/../../Fixtures/Format/alto.xml');
$alto = new Alto();

$rawText = $alto->getRawText($xml);
Expand All @@ -27,7 +27,7 @@ public function getRawData(): void
*/
public function getTextAsMiniOcr(): void
{
$xml = simplexml_load_file( __DIR__ . '/../../Fixtures/Format/alto.xml');
$xml = simplexml_load_file(__DIR__ . '/../../Fixtures/Format/alto.xml');
$alto = new Alto();

$rawText = $alto->getTextAsMiniOcr($xml);
Expand Down Expand Up @@ -65,7 +65,7 @@ public function getTextAsMiniOcr(): void
*/
public function getTextAsMiniOcrNoTextBlock(): void
{
$xml = simplexml_load_file( __DIR__ . '/../../Fixtures/Format/altoNoTextBlock.xml');
$xml = simplexml_load_file(__DIR__ . '/../../Fixtures/Format/altoNoTextBlock.xml');
$alto = new Alto();

$rawText = $alto->getTextAsMiniOcr($xml);
Expand All @@ -79,7 +79,7 @@ public function getTextAsMiniOcrNoTextBlock(): void
*/
public function getTextAsMiniOcrNoTextline(): void
{
$xml = simplexml_load_file( __DIR__ . '/../../Fixtures/Format/altoNoTextLine.xml');
$xml = simplexml_load_file(__DIR__ . '/../../Fixtures/Format/altoNoTextLine.xml');
$alto = new Alto();

$rawText = $alto->getTextAsMiniOcr($xml);
Expand All @@ -93,7 +93,7 @@ public function getTextAsMiniOcrNoTextline(): void
*/
public function getTextAsMiniOcrNoString(): void
{
$xml = simplexml_load_file( __DIR__ . '/../../Fixtures/Format/altoNoString.xml');
$xml = simplexml_load_file(__DIR__ . '/../../Fixtures/Format/altoNoString.xml');
$alto = new Alto();

$rawText = $alto->getTextAsMiniOcr($xml);
Expand Down
4 changes: 2 additions & 2 deletions Tests/Unit/Format/AudioVideoMDTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ public function setUp(): void
*/
public function canExtractDuration(): void
{
$xml = simplexml_load_file( __DIR__ . '/../../Fixtures/Format/audioVideo.xml');
$xml = simplexml_load_file(__DIR__ . '/../../Fixtures/Format/audioVideo.xml');
$audioVideoMD = new AudioVideoMD();

$videoXml = $xml->xpath('//mets:xmlData')[0];

$audioVideoMD->extractMetadata($videoXml,$this->metadata);
$audioVideoMD->extractMetadata($videoXml, $this->metadata);

$this->assertEquals(
[
Expand Down
24 changes: 12 additions & 12 deletions Tests/Unit/Format/ModsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ public function setUp(): void
*/
public function extractAuthorsIfNoAutRoleTermAssigned(): void
{
$xml = simplexml_load_file( __DIR__ . '/../../Fixtures/Format/modsAuthorNoAutRoleTerm.xml');
$xml = simplexml_load_file(__DIR__ . '/../../Fixtures/Format/modsAuthorNoAutRoleTerm.xml');
$mods = new Mods();

$mods->extractMetadata($xml,$this->metadata, false);
$mods->extractMetadata($xml, $this->metadata, false);

$this->assertEquals(
[
Expand All @@ -70,10 +70,10 @@ public function extractAuthorsIfNoAutRoleTermAssigned(): void
*/
public function extractAuthorsWithAutRoleTermAssigned(): void
{
$xml = simplexml_load_file( __DIR__ . '/../../Fixtures/Format/modsAuthorWithAutRoleTerm.xml');
$xml = simplexml_load_file(__DIR__ . '/../../Fixtures/Format/modsAuthorWithAutRoleTerm.xml');
$mods = new Mods();

$mods->extractMetadata($xml,$this->metadata, false);
$mods->extractMetadata($xml, $this->metadata, false);
$this->assertEquals(
[
'May, Jack, I',
Expand All @@ -92,10 +92,10 @@ public function extractAuthorsWithAutRoleTermAssigned(): void
*/
public function extractPlaces(): void
{
$xml = simplexml_load_file( __DIR__ . '/../../Fixtures/Format/modsOriginInfo.xml');
$xml = simplexml_load_file(__DIR__ . '/../../Fixtures/Format/modsOriginInfo.xml');
$mods = new Mods();

$mods->extractMetadata($xml,$this->metadata, false);
$mods->extractMetadata($xml, $this->metadata, false);

$this->assertEquals(
[
Expand All @@ -121,10 +121,10 @@ public function extractPlaces(): void
*/
public function extractYears(): void
{
$xml = simplexml_load_file( __DIR__ . '/../../Fixtures/Format/modsOriginInfo.xml');
$xml = simplexml_load_file(__DIR__ . '/../../Fixtures/Format/modsOriginInfo.xml');
$mods = new Mods();

$mods->extractMetadata($xml,$this->metadata, false);
$mods->extractMetadata($xml, $this->metadata, false);

$this->assertEquals(
[
Expand All @@ -150,10 +150,10 @@ public function extractYears(): void
*/
public function extractPlacesWithElectronicEdInside(): void
{
$xml = simplexml_load_file( __DIR__ . '/../../Fixtures/Format/modsOriginInfoWithEditionElectonicEd.xml');
$xml = simplexml_load_file(__DIR__ . '/../../Fixtures/Format/modsOriginInfoWithEditionElectonicEd.xml');
$mods = new Mods();

$mods->extractMetadata($xml,$this->metadata, false);
$mods->extractMetadata($xml, $this->metadata, false);

$this->assertEquals(
[
Expand All @@ -179,10 +179,10 @@ public function extractPlacesWithElectronicEdInside(): void
*/
public function extractYearsWithElectronicEdInside(): void
{
$xml = simplexml_load_file( __DIR__ . '/../../Fixtures/Format/modsOriginInfoWithEditionElectonicEd.xml');
$xml = simplexml_load_file(__DIR__ . '/../../Fixtures/Format/modsOriginInfoWithEditionElectonicEd.xml');
$mods = new Mods();

$mods->extractMetadata($xml,$this->metadata, false);
$mods->extractMetadata($xml, $this->metadata, false);

$this->assertEquals(
[
Expand Down
1 change: 0 additions & 1 deletion Tests/Unit/Format/TeiHeaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Kitodo\Dlf\Tests\Unit\Format;

use Kitodo\Dlf\Format\TeiHeader ;
use TYPO3\TestingFramework\Core\Unit\UnitTestCase;

class TeiHeaderTest extends UnitTestCase
Expand Down

0 comments on commit 0488d7a

Please sign in to comment.