Skip to content

Commit

Permalink
Merge branch 'main' of github.com:leepownall/read-time
Browse files Browse the repository at this point in the history
  • Loading branch information
leepownall committed Apr 7, 2024
2 parents 6bf20f7 + 08818c5 commit b46775d
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/fix-php-code-style-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
ref: ${{ github.head_ref }}

- name: Fix PHP code style issues
uses: aglipanci/laravel-pint-action@2.3.0
uses: aglipanci/laravel-pint-action@2.3.1

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@

All notable changes to `read-time` will be documented in this file.

## 0.1.0 - 2023-11-01

0.1.0
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Read Time

[![Latest Version on Packagist](https://img.shields.io/packagist/v/leepownall/read-time.svg?style=flat-square)](https://packagist.org/packages/leepownall/read-time)
[![Tests](https://img.shields.io/github/actions/workflow/status/leepownall/read-time/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/leepownall/read-time/actions/workflows/run-tests.yml)
[![Total Downloads](https://img.shields.io/packagist/dt/leepownall/read-time.svg?style=flat-square)](https://packagist.org/packages/leepownall/read-time)
[![Latest Version on Packagist](https://img.shields.io/packagist/v/pownall/read-time.svg?style=flat-square)](https://packagist.org/packages/pownall/read-time)
[![Tests](https://github.com/leepownall/read-time/actions/workflows/run-tests.yml/badge.svg?branch=main&style=flat-square)](https://github.com/leepownall/read-time/actions/workflows/run-tests.yml)
[![Total Downloads](https://img.shields.io/packagist/dt/pownall/read-time.svg?style=flat-square)](https://packagist.org/packages/pownall/read-time)

Simple package for displaying read time.

Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "pownall/read-time",
"description": "This is my package read-time",
"description": "Simple package for displaying read time",
"keywords": [
"leepownall",
"read-time"
"read-time",
"laravel"
],
"homepage": "https://github.com/leepownall/read-time",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/ReadTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class ReadTime

private int $wordsPerMinute;

public function __construct(string|array $content, ?int $wordsPerMinute = null)
public function __construct(string|array $content, int $wordsPerMinute = null)
{
$this->wordsPerMinute = $wordsPerMinute !== null
? $wordsPerMinute
Expand Down
2 changes: 1 addition & 1 deletion src/ReadTimeServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function configurePackage(Package $package): void

public function bootingPackage(): void
{
Blade::directive('readtime', function (string|array $content, ?int $wordsPerMinute = null): string {
Blade::directive('readtime', function (string|array $content, int $wordsPerMinute = null): string {
return new ReadTime($content, $wordsPerMinute);
});
}
Expand Down

0 comments on commit b46775d

Please sign in to comment.