Update Laravel Pint

This commit is contained in:
Jonny Barnes 2023-07-27 21:14:23 +01:00
parent 87e04b063f
commit b1407af945
Signed by: jonny
SSH key fingerprint: SHA256:CTuSlns5U7qlD9jqHvtnVmfYV3Zwl2Z7WnJ4/dqOaL8
9 changed files with 15 additions and 15 deletions

View file

@ -8,7 +8,7 @@ use App\Models\Article;
class ArticleService extends Service class ArticleService extends Service
{ {
public function create(array $request, ?string $client = null): Article public function create(array $request, string $client = null): Article
{ {
return Article::create([ return Article::create([
'title' => $this->getDataByKey($request, 'name'), 'title' => $this->getDataByKey($request, 'name'),

View file

@ -18,7 +18,7 @@ class BookmarkService extends Service
/** /**
* Create a new Bookmark. * Create a new Bookmark.
*/ */
public function create(array $request, ?string $client = null): Bookmark public function create(array $request, string $client = null): Bookmark
{ {
if (Arr::get($request, 'properties.bookmark-of.0')) { if (Arr::get($request, 'properties.bookmark-of.0')) {
//micropub request //micropub request

View file

@ -13,7 +13,7 @@ class LikeService extends Service
/** /**
* Create a new Like. * Create a new Like.
*/ */
public function create(array $request, ?string $client = null): Like public function create(array $request, string $client = null): Like
{ {
if (Arr::get($request, 'properties.like-of.0')) { if (Arr::get($request, 'properties.like-of.0')) {
//micropub request //micropub request

View file

@ -15,7 +15,7 @@ class HEntryService
/** /**
* Create the relevant model from some h-entry data. * Create the relevant model from some h-entry data.
*/ */
public function process(array $request, ?string $client = null): ?string public function process(array $request, string $client = null): ?string
{ {
if (Arr::get($request, 'properties.like-of') || Arr::get($request, 'like-of')) { if (Arr::get($request, 'properties.like-of') || Arr::get($request, 'like-of')) {
return resolve(LikeService::class)->create($request)->longurl; return resolve(LikeService::class)->create($request)->longurl;

View file

@ -18,7 +18,7 @@ class NoteService extends Service
/** /**
* Create a new note. * Create a new note.
*/ */
public function create(array $request, ?string $client = null): Note public function create(array $request, string $client = null): Note
{ {
$note = Note::create( $note = Note::create(
[ [

View file

@ -9,7 +9,7 @@ use Illuminate\Support\Arr;
abstract class Service abstract class Service
{ {
abstract public function create(array $request, ?string $client = null): Model; abstract public function create(array $request, string $client = null): Model;
protected function getDataByKey(array $request, string $key): ?string protected function getDataByKey(array $request, string $key): ?string
{ {

14
composer.lock generated
View file

@ -9165,16 +9165,16 @@
}, },
{ {
"name": "laravel/pint", "name": "laravel/pint",
"version": "v1.10.3", "version": "v1.10.5",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/laravel/pint.git", "url": "https://github.com/laravel/pint.git",
"reference": "c472786bca01e4812a9bb7933b23edfc5b6877b7" "reference": "a458fb057bfa2f5a09888a8aa349610be807b0c3"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/laravel/pint/zipball/c472786bca01e4812a9bb7933b23edfc5b6877b7", "url": "https://api.github.com/repos/laravel/pint/zipball/a458fb057bfa2f5a09888a8aa349610be807b0c3",
"reference": "c472786bca01e4812a9bb7933b23edfc5b6877b7", "reference": "a458fb057bfa2f5a09888a8aa349610be807b0c3",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -9185,9 +9185,9 @@
"php": "^8.1.0" "php": "^8.1.0"
}, },
"require-dev": { "require-dev": {
"friendsofphp/php-cs-fixer": "^3.18.0", "friendsofphp/php-cs-fixer": "^3.21.1",
"illuminate/view": "^10.5.1", "illuminate/view": "^10.5.1",
"laravel-zero/framework": "^10.0.2", "laravel-zero/framework": "^10.1.1",
"mockery/mockery": "^1.5.1", "mockery/mockery": "^1.5.1",
"nunomaduro/larastan": "^2.5.1", "nunomaduro/larastan": "^2.5.1",
"nunomaduro/termwind": "^1.15.1", "nunomaduro/termwind": "^1.15.1",
@ -9227,7 +9227,7 @@
"issues": "https://github.com/laravel/pint/issues", "issues": "https://github.com/laravel/pint/issues",
"source": "https://github.com/laravel/pint" "source": "https://github.com/laravel/pint"
}, },
"time": "2023-06-20T15:55:03+00:00" "time": "2023-07-14T10:26:01+00:00"
}, },
{ {
"name": "laravel/sail", "name": "laravel/sail",

File diff suppressed because one or more lines are too long

View file

@ -1,5 +1,5 @@
{ {
"/app.js": "/app.js?id=c6d58c1ba0a1e0ad976bd661884a1582", "/app.js": "/app.js?id=7e1968acfd75b8dc843675097962e3ce",
"/app-dark.css": "/app-dark.css?id=15c72df05e2b1147fa3e4b0670cfb435", "/app-dark.css": "/app-dark.css?id=15c72df05e2b1147fa3e4b0670cfb435",
"/app.css": "/app.css?id=4d6a1a7fe095eedc2cb2a4ce822ea8a5", "/app.css": "/app.css?id=4d6a1a7fe095eedc2cb2a4ce822ea8a5",
"/img/favicon.png": "/img/favicon.png?id=1542bfe8a0010dcbee710da13cce367f", "/img/favicon.png": "/img/favicon.png?id=1542bfe8a0010dcbee710da13cce367f",