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
2 changes: 1 addition & 1 deletion .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
run: vendor/bin/pest --coverage

- name: Send code coverage
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: false
2 changes: 2 additions & 0 deletions .github/workflows/phpstan-php-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ jobs:
- uses: php-actions/phpstan@v3
with:
path: src/
version: "composer"
php_version: 8.3
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.3, 8.2, 8.1]
php: [8.4, 8.3, 8.2, 8.1]
stability: [prefer-stable]

name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "kiwilan/php-audio",
"description": "PHP package to parse and update audio files metadata, with `JamesHeinrich/getID3`.",
"version": "4.0.01",
"version": "4.0.02",
"keywords": [
"audio",
"php",
Expand Down Expand Up @@ -42,7 +42,7 @@
],
"require": {
"php": "^8.1",
"james-heinrich/getid3": "^v1.9.22"
"james-heinrich/getid3": "v1.9.22"
},
"require-dev": {
"pestphp/pest": "^2.0",
Expand Down
24 changes: 12 additions & 12 deletions src/Id3/Reader/Id3Audio.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ class Id3Audio
* @param Id3Stream[] $streams
*/
protected function __construct(
readonly public ?string $data_format = null,
readonly public ?int $channels = null,
readonly public ?int $sample_rate = null,
readonly public ?float $bitrate = null,
readonly public ?string $channel_mode = null,
readonly public ?string $bitrate_mode = null,
readonly public ?string $codec = null,
readonly public ?string $encoder = null,
readonly public bool $lossless = false,
readonly public ?string $encoder_options = null,
readonly public ?float $compression_ratio = null,
readonly public array $streams = [],
public readonly ?string $data_format = null,
public readonly ?int $channels = null,
public readonly ?int $sample_rate = null,
public readonly ?float $bitrate = null,
public readonly ?string $channel_mode = null,
public readonly ?string $bitrate_mode = null,
public readonly ?string $codec = null,
public readonly ?string $encoder = null,
public readonly bool $lossless = false,
public readonly ?string $encoder_options = null,
public readonly ?float $compression_ratio = null,
public readonly array $streams = [],
) {}

public static function make(?array $metadata): ?self
Expand Down
18 changes: 9 additions & 9 deletions src/Id3/Reader/Id3AudioTag.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
class Id3AudioTag
{
protected function __construct(
readonly public ?Tag\Id3TagAudioV1 $id3v1 = null,
readonly public ?Tag\Id3TagAudioV2 $id3v2 = null,
readonly public ?Tag\Id3TagQuicktime $quicktime = null,
readonly public ?Tag\Id3TagAsf $asf = null,
readonly public ?Tag\Id3TagVorbisComment $vorbiscomment = null,
readonly public ?Tag\Id3TagRiff $riff = null,
readonly public ?Tag\Id3TagMatroska $matroska = null,
readonly public ?Tag\Id3TagApe $ape = null,
readonly public bool $is_empty = false,
public readonly ?Tag\Id3TagAudioV1 $id3v1 = null,
public readonly ?Tag\Id3TagAudioV2 $id3v2 = null,
public readonly ?Tag\Id3TagQuicktime $quicktime = null,
public readonly ?Tag\Id3TagAsf $asf = null,
public readonly ?Tag\Id3TagVorbisComment $vorbiscomment = null,
public readonly ?Tag\Id3TagRiff $riff = null,
public readonly ?Tag\Id3TagMatroska $matroska = null,
public readonly ?Tag\Id3TagApe $ape = null,
public readonly bool $is_empty = false,
) {}

public static function make(?array $metadata): ?self
Expand Down
4 changes: 2 additions & 2 deletions src/Id3/Reader/Id3Comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
class Id3Comments
{
protected function __construct(
readonly public ?string $language = null,
readonly public ?Id3CommentsPicture $picture = null,
public readonly ?string $language = null,
public readonly ?Id3CommentsPicture $picture = null,
) {}

public static function make(?array $metadata): ?self
Expand Down
14 changes: 7 additions & 7 deletions src/Id3/Reader/Id3CommentsPicture.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
class Id3CommentsPicture
{
protected function __construct(
readonly public ?string $data = null,
readonly public ?string $image_mime = null,
readonly public ?int $image_width = null,
readonly public ?int $image_height = null,
readonly public ?string $picture_type = null,
readonly public ?string $description = null,
readonly public ?int $data_length = null,
public readonly ?string $data = null,
public readonly ?string $image_mime = null,
public readonly ?int $image_width = null,
public readonly ?int $image_height = null,
public readonly ?string $picture_type = null,
public readonly ?string $description = null,
public readonly ?int $data_length = null,
) {}

public static function make(?array $metadata): ?self
Expand Down
22 changes: 11 additions & 11 deletions src/Id3/Reader/Id3Stream.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
class Id3Stream
{
protected function __construct(
readonly public ?string $data_format = null,
readonly public ?int $channels = null,
readonly public ?int $sample_rate = null,
readonly public ?float $bitrate = null,
readonly public ?string $channel_mode = null,
readonly public ?string $bitrate_mode = null,
readonly public ?string $codec = null,
readonly public ?string $encoder = null,
readonly public bool $lossless = false,
readonly public ?string $encoder_options = null,
readonly public ?float $compression_ratio = null,
public readonly ?string $data_format = null,
public readonly ?int $channels = null,
public readonly ?int $sample_rate = null,
public readonly ?float $bitrate = null,
public readonly ?string $channel_mode = null,
public readonly ?string $bitrate_mode = null,
public readonly ?string $codec = null,
public readonly ?string $encoder = null,
public readonly bool $lossless = false,
public readonly ?string $encoder_options = null,
public readonly ?float $compression_ratio = null,
) {}

public static function make(?array $metadata): ?self
Expand Down
10 changes: 5 additions & 5 deletions src/Id3/Reader/Id3Video.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
class Id3Video
{
protected function __construct(
readonly public ?string $data_format = null,
readonly public ?int $rotate = null,
readonly public ?float $resolution_x = null,
readonly public ?float $resolution_y = null,
readonly public ?float $frame_rate = null,
public readonly ?string $data_format = null,
public readonly ?int $rotate = null,
public readonly ?float $resolution_x = null,
public readonly ?float $resolution_y = null,
public readonly ?float $frame_rate = null,
) {}

public static function make(?array $metadata): ?self
Expand Down
36 changes: 18 additions & 18 deletions src/Id3/Tag/Id3TagApe.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,24 @@
class Id3TagApe extends Id3Tag
{
public function __construct(
readonly public ?string $title = null,
readonly public ?string $artist = null,
readonly public ?string $album = null,
readonly public ?string $album_artist = null,
readonly public ?string $composer = null,
readonly public ?string $comment = null,
readonly public ?string $genre = null,
readonly public ?string $disc = null,
readonly public ?string $compilation = null,
readonly public ?string $track = null,
readonly public ?string $date = null,
readonly public ?string $encoder = null,
readonly public ?string $description = null,
readonly public ?string $copyright = null,
readonly public ?string $lyrics = null,
readonly public ?string $podcastdesc = null,
readonly public ?string $language = null,
readonly public ?string $year = null,
public readonly ?string $title = null,
public readonly ?string $artist = null,
public readonly ?string $album = null,
public readonly ?string $album_artist = null,
public readonly ?string $composer = null,
public readonly ?string $comment = null,
public readonly ?string $genre = null,
public readonly ?string $disc = null,
public readonly ?string $compilation = null,
public readonly ?string $track = null,
public readonly ?string $date = null,
public readonly ?string $encoder = null,
public readonly ?string $description = null,
public readonly ?string $copyright = null,
public readonly ?string $lyrics = null,
public readonly ?string $podcastdesc = null,
public readonly ?string $language = null,
public readonly ?string $year = null,
) {}

public static function make(?array $metadata): ?self
Expand Down
20 changes: 10 additions & 10 deletions src/Id3/Tag/Id3TagAsf.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
class Id3TagAsf extends Id3Tag
{
public function __construct(
readonly public ?string $title = null,
readonly public ?string $artist = null,
readonly public ?string $album = null,
readonly public ?string $albumartist = null,
readonly public ?string $composer = null,
readonly public ?string $partofset = null,
readonly public ?string $genre = null,
readonly public ?string $track_number = null,
readonly public ?string $year = null,
readonly public ?string $encodingsettings = null,
public readonly ?string $title = null,
public readonly ?string $artist = null,
public readonly ?string $album = null,
public readonly ?string $albumartist = null,
public readonly ?string $composer = null,
public readonly ?string $partofset = null,
public readonly ?string $genre = null,
public readonly ?string $track_number = null,
public readonly ?string $year = null,
public readonly ?string $encodingsettings = null,
) {}

public static function make(?array $metadata): ?self
Expand Down
14 changes: 7 additions & 7 deletions src/Id3/Tag/Id3TagAudioV1.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
class Id3TagAudioV1 extends Id3Tag
{
public function __construct(
readonly public ?string $title = null,
readonly public ?string $artist = null,
readonly public ?string $album = null,
readonly public ?string $year = null,
readonly public ?string $genre = null,
readonly public ?string $comment = null,
readonly public ?string $track_number = null,
public readonly ?string $title = null,
public readonly ?string $artist = null,
public readonly ?string $album = null,
public readonly ?string $year = null,
public readonly ?string $genre = null,
public readonly ?string $comment = null,
public readonly ?string $track_number = null,
) {}

public static function make(?array $metadata): ?self
Expand Down
28 changes: 14 additions & 14 deletions src/Id3/Tag/Id3TagAudioV2.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@
class Id3TagAudioV2 extends Id3Tag
{
public function __construct(
readonly public ?string $album = null,
readonly public ?string $artist = null,
readonly public ?string $band = null,
readonly public ?string $comment = null,
readonly public ?string $composer = null,
readonly public ?string $part_of_a_set = null,
readonly public ?string $genre = null,
readonly public ?string $part_of_a_compilation = null,
readonly public ?string $title = null,
readonly public ?string $track_number = null,
readonly public ?string $year = null,
readonly public ?string $copyright = null,
readonly public ?string $unsynchronised_lyric = null,
readonly public ?string $language = null,
public readonly ?string $album = null,
public readonly ?string $artist = null,
public readonly ?string $band = null,
public readonly ?string $comment = null,
public readonly ?string $composer = null,
public readonly ?string $part_of_a_set = null,
public readonly ?string $genre = null,
public readonly ?string $part_of_a_compilation = null,
public readonly ?string $title = null,
public readonly ?string $track_number = null,
public readonly ?string $year = null,
public readonly ?string $copyright = null,
public readonly ?string $unsynchronised_lyric = null,
public readonly ?string $language = null,
) {}

public static function make(?array $metadata): ?self
Expand Down
30 changes: 15 additions & 15 deletions src/Id3/Tag/Id3TagMatroska.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@
class Id3TagMatroska extends Id3Tag
{
public function __construct(
readonly public ?string $title = null,
readonly public ?string $muxingapp = null,
readonly public ?string $writingapp = null,
readonly public ?string $album = null,
readonly public ?string $artist = null,
readonly public ?string $album_artist = null,
readonly public ?string $comment = null,
readonly public ?string $composer = null,
readonly public ?string $disc = null,
readonly public ?string $genre = null,
readonly public ?string $compilation = null,
readonly public ?string $part_number = null,
readonly public ?string $date = null,
readonly public ?string $encoder = null,
readonly public ?string $duration = null,
public readonly ?string $title = null,
public readonly ?string $muxingapp = null,
public readonly ?string $writingapp = null,
public readonly ?string $album = null,
public readonly ?string $artist = null,
public readonly ?string $album_artist = null,
public readonly ?string $comment = null,
public readonly ?string $composer = null,
public readonly ?string $disc = null,
public readonly ?string $genre = null,
public readonly ?string $compilation = null,
public readonly ?string $part_number = null,
public readonly ?string $date = null,
public readonly ?string $encoder = null,
public readonly ?string $duration = null,
) {}

public static function make(?array $metadata): ?self
Expand Down
38 changes: 19 additions & 19 deletions src/Id3/Tag/Id3TagQuicktime.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,25 @@
class Id3TagQuicktime extends Id3Tag
{
public function __construct(
readonly public ?string $title = null,
readonly public ?string $track_number = null,
readonly public ?string $disc_number = null,
readonly public ?string $compilation = null,
readonly public ?string $album = null,
readonly public ?string $genre = null,
readonly public ?string $composer = null,
readonly public ?string $creation_date = null,
readonly public ?string $copyright = null,
readonly public ?string $artist = null,
readonly public ?string $album_artist = null,
readonly public ?string $encoded_by = null,
readonly public ?string $encoding_tool = null,
readonly public ?string $description = null,
readonly public ?string $description_long = null,
readonly public ?string $language = null,
readonly public ?string $lyrics = null,
readonly public ?string $comment = null,
readonly public ?string $stik = null,
public readonly ?string $title = null,
public readonly ?string $track_number = null,
public readonly ?string $disc_number = null,
public readonly ?string $compilation = null,
public readonly ?string $album = null,
public readonly ?string $genre = null,
public readonly ?string $composer = null,
public readonly ?string $creation_date = null,
public readonly ?string $copyright = null,
public readonly ?string $artist = null,
public readonly ?string $album_artist = null,
public readonly ?string $encoded_by = null,
public readonly ?string $encoding_tool = null,
public readonly ?string $description = null,
public readonly ?string $description_long = null,
public readonly ?string $language = null,
public readonly ?string $lyrics = null,
public readonly ?string $comment = null,
public readonly ?string $stik = null,
) {}

public static function make(?array $metadata): ?self
Expand Down
Loading