1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Applied StyleCi changes, updated php deps

This commit is contained in:
Dan Brown
2022-08-29 17:46:41 +01:00
parent e537d0c4e8
commit 1cc7c649dc
26 changed files with 435 additions and 526 deletions

View File

@ -19,8 +19,8 @@ class BookLinkModelResolver implements CrossLinkModelResolver
$bookSlug = $matches[1];
/** @var ?Book $model */
$model = Book::query()->where('slug', '=', $bookSlug)->first(['id']);
$model = Book::query()->where('slug', '=', $bookSlug)->first(['id']);
return $model;
}
}
}

View File

@ -19,8 +19,8 @@ class BookshelfLinkModelResolver implements CrossLinkModelResolver
$shelfSlug = $matches[1];
/** @var ?Bookshelf $model */
$model = Bookshelf::query()->where('slug', '=', $shelfSlug)->first(['id']);
$model = Bookshelf::query()->where('slug', '=', $shelfSlug)->first(['id']);
return $model;
}
}
}

View File

@ -24,4 +24,4 @@ class ChapterLinkModelResolver implements CrossLinkModelResolver
return $model;
}
}
}

View File

@ -10,4 +10,4 @@ interface CrossLinkModelResolver
* Resolve the given href link value to a model.
*/
public function resolve(string $link): ?Model;
}
}

View File

@ -24,4 +24,4 @@ class PageLinkModelResolver implements CrossLinkModelResolver
return $model;
}
}
}

View File

@ -22,4 +22,4 @@ class PagePermalinkModelResolver implements CrossLinkModelResolver
return $model;
}
}
}