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 @@ -26,13 +26,17 @@
"php": ">=8.2"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "3.89.2",
"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"
}
}
4 changes: 2 additions & 2 deletions src/VuFindCode/EAN.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* EAN validation and checksumming functionality
* EAN validation and checksumming functionality.
*
* PHP version 7
*
Expand Down Expand Up @@ -33,7 +33,7 @@
use function strlen;

/**
* EAN Class
* EAN Class.
*
* This class provides EAN validation and checksumming functionality.
*
Expand Down
10 changes: 5 additions & 5 deletions src/VuFindCode/ISBN.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* ISBN validation and conversion functionality
* ISBN validation and conversion functionality.
*
* PHP version 7
*
Expand Down Expand Up @@ -33,7 +33,7 @@
use function strlen;

/**
* ISBN Class
* ISBN Class.
*
* This class provides ISBN validation and conversion functionality.
*
Expand All @@ -46,21 +46,21 @@
class ISBN
{
/**
* Raw ISBN string
* Raw ISBN string.
*
* @var string
*/
protected $raw;

/**
* Validation status of ISBN (null until checked)
* Validation status of ISBN (null until checked).
*
* @var bool
*/
protected $valid = null;

/**
* Constructor
* Constructor.
*
* @param string $raw Raw ISBN string to convert/validate.
*/
Expand Down
10 changes: 5 additions & 5 deletions src/VuFindCode/ISMN.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* ISMN validation and conversion functionality
* ISMN validation and conversion functionality.
*
* PHP version 7
*
Expand Down Expand Up @@ -32,7 +32,7 @@
use function strlen;

/**
* ISMN Class
* ISMN Class.
*
* This class provides ISMN validation and conversion functionality.
*
Expand All @@ -45,21 +45,21 @@
class ISMN
{
/**
* Raw ISMN string
* Raw ISMN string.
*
* @var string
*/
protected $raw;

/**
* Validation status of ISMN (null until checked)
* Validation status of ISMN (null until checked).
*
* @var bool
*/
protected $valid = null;

/**
* Constructor
* Constructor.
*
* @param string $raw Raw ISMN string to convert/validate.
*/
Expand Down
4 changes: 2 additions & 2 deletions tests/ISBNTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* ISBN Test Class
* ISBN Test Class.
*
* PHP version 7
*
Expand Down Expand Up @@ -32,7 +32,7 @@
use VuFindCode\ISBN;

/**
* ISBN Test Class
* ISBN Test Class.
*
* @category VuFind
* @package Tests
Expand Down
4 changes: 2 additions & 2 deletions tests/ISMNTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* ISMN Test Class
* ISMN Test Class.
*
* PHP version 7
*
Expand Down Expand Up @@ -32,7 +32,7 @@
use VuFindCode\ISMN;

/**
* ISMN Test Class
* ISMN Test Class.
*
* @category VuFind
* @package Tests
Expand Down
2 changes: 2 additions & 0 deletions tests/vufind.php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
],
'cast_spaces' => ['space' => 'none'],
'class_attributes_separation' => ['elements' => ['method' => 'one', 'property' => 'one']],
'class_reference_name_casing' => true,
'concat_space' => ['spacing' => 'one'],
'ereg_to_preg' => true,
'get_class_to_class_keyword' => true,
Expand Down Expand Up @@ -57,6 +58,7 @@
'sort_algorithm' => 'alpha',
],
'phpdoc_no_access' => true,
'phpdoc_summary' => true,
'php_unit_method_casing' => true,
'pow_to_exponentiation' => true,
'single_line_after_imports' => true,
Expand Down
Loading