Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,17 @@
"vufind-org/vufindcode": "^1.2"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "3.64.0",
"friendsofphp/php-cs-fixer": "3.95.15",
"guzzlehttp/guzzle": "^7.8.1",
"phpmd/phpmd": "2.15.0",
"phpstan/phpstan": "2.1.32",
"phpunit/phpunit": "11.5.50",
"phing/phing": "3.1.0",
"rector/rector": "2.2.7",
"phpstan/phpstan": "2.2.5",
"phpunit/phpunit": "11.5.56",
"phing/phing": "3.1.2",
"rector/rector": "2.5.7",
"squizlabs/php_codesniffer": "4.0.1"
},
"scripts": {
"fix": "phing fix-php",
"qa": "phing qa-console"
}
}
24 changes: 12 additions & 12 deletions src/Lint/CodeData.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* Code Data to support Lint for MARC records
* Code Data to support Lint for MARC records.
*
* This module is adapted from the MARC::Lint::CodeData CPAN module for Perl,
* maintained by Bryan Baldus <eijabb@cpan.org> and available for download at
Expand Down Expand Up @@ -59,77 +59,77 @@
class CodeData
{
/**
* Valid Geographic Area Codes
* Valid Geographic Area Codes.
*
* @var array
*/
public $geogAreaCodes;

/**
* Obsolete Geographic Area Codes
* Obsolete Geographic Area Codes.
*
* @var array
*/
public $obsoleteGeogAreaCodes;

/**
* Valid Language Codes
* Valid Language Codes.
*
* @var array
*/
public $languageCodes;

/**
* Obsolete Language Codes
* Obsolete Language Codes.
*
* @var array
*/
public $obsoleteLanguageCodes;

/**
* Valid Country Codes
* Valid Country Codes.
*
* @var array
*/
public $countryCodes;

/**
* Obsolete Country Codes
* Obsolete Country Codes.
*
* @var array
*/
public $obsoleteCountryCodes;

/**
* Valid sources for fields 600-651
* Valid sources for fields 600-651.
*
* @var array
*/
public $sources600_651;

/**
* Obsolete sources for fields 600-651
* Obsolete sources for fields 600-651.
*
* @var array
*/
public $obsoleteSources600_651;

/**
* Valid sources for field 655
* Valid sources for field 655.
*
* @var array
*/
public $sources655;

/**
* Obsolete sources for field 655
* Obsolete sources for field 655.
*
* @var array
*/
public $obsoleteSources655;

/**
* Start function
* Start function.
*
* Initialize code arrays.
*
Expand Down
10 changes: 5 additions & 5 deletions src/MarcCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
class MarcCollection implements \Iterator
{
/**
* Supported serialization formats
* Supported serialization formats.
*
* @var array
*/
Expand All @@ -52,21 +52,21 @@ class MarcCollection implements \Iterator
];

/**
* Records in the collection
* Records in the collection.
*
* @var array
*/
protected $records = [];

/**
* Iteration position
* Iteration position.
*
* @var int
*/
protected $position = 0;

/**
* Constructor
* Constructor.
*
* @param string $data MARC record collection in MARCXML or ISO2709 format
*/
Expand All @@ -76,7 +76,7 @@ public function __construct(string $data = '')
}

/**
* Set MARC record data
* Set MARC record data.
*
* @param string $data MARC record in MARCXML or ISO2709 format
*
Expand Down
14 changes: 7 additions & 7 deletions src/MarcCollectionFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
class MarcCollectionFile implements \Iterator
{
/**
* Supported serialization formats
* Supported serialization formats.
*
* @var array
*/
Expand All @@ -52,35 +52,35 @@ class MarcCollectionFile implements \Iterator
];

/**
* Serialized format stream
* Serialized format stream.
*
* @var Serialization\SerializationFileInterface
*/
protected $stream;

/**
* Iteration position
* Iteration position.
*
* @var int
*/
protected $position = 0;

/**
* Current record
* Current record.
*
* @var string
*/
protected $record = '';

/**
* Message callback
* Message callback.
*
* @var callable
*/
protected $messageCallback;

/**
* Constructor
* Constructor.
*
* @param string $file MARC record collection file in MARCXML or
* ISO2709 format
Expand All @@ -95,7 +95,7 @@ public function __construct(string $file = '', ?callable $messageCallback = null
}

/**
* Set MARC record file
* Set MARC record file.
*
* @param string $file MARC record collection file in MARCXML or ISO2709 format
*
Expand Down
10 changes: 5 additions & 5 deletions src/MarcLint.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* Lint for MARC records
* Lint for MARC records.
*
* This module is adapted from the MARC::Lint CPAN module for Perl, maintained by
* Bryan Baldus <eijabb@cpan.org> and available at http://search.cpan.org/~eijabb/
Expand Down Expand Up @@ -56,28 +56,28 @@
class MarcLint
{
/**
* Rules used for testing records
* Rules used for testing records.
*
* @var array
*/
protected $rules;

/**
* A Lint\CodeData object for validating codes
* A Lint\CodeData object for validating codes.
*
* @var Lint\CodeData
*/
protected $data;

/**
* Warnings generated during analysis
* Warnings generated during analysis.
*
* @var array
*/
protected $warnings = [];

/**
* Start function
* Start function.
*
* Set up rules for testing MARC records.
*
Expand Down
Loading
Loading