1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2024-10-30 07:32:39 +01:00

Applied latest StyleCI changes

This commit is contained in:
Dan Brown 2021-11-06 22:00:33 +00:00
parent 921e25e7e1
commit f2b1d2e1e7
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9
7 changed files with 8 additions and 6 deletions

View File

@ -42,7 +42,7 @@ class TagRepo
}
if ($searchTerm) {
$query->where(function(Builder $query) use ($searchTerm) {
$query->where(function (Builder $query) use ($searchTerm) {
$query->where('name', 'like', '%' . $searchTerm . '%')
->orWhere('value', 'like', '%' . $searchTerm . '%');
});

View File

@ -11,6 +11,7 @@ class Ldap
{
/**
* Connect to an LDAP server.
*
* @return resource
*/
public function connect(string $hostName, int $port)

View File

@ -10,7 +10,7 @@ use Illuminate\Support\Collection;
* Class Chapter.
*
* @property Collection<Page> $pages
* @property string $description
* @property string $description
*/
class Chapter extends BookChild
{

View File

@ -22,7 +22,6 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
* @property string $html
* @property int $revision_number
* @property Page $page
*
* @property-read ?User $createdBy
*/
class PageRevision extends Model

View File

@ -39,6 +39,7 @@ class SlugGenerator
/**
* Check if a slug is already in-use for this
* type of model within the same parent.
*
* @param Sluggable&Model $model
*/
protected function slugInUse(string $slug, Sluggable $model): bool

View File

@ -29,12 +29,12 @@ class TagController extends Controller
->paginate(50)
->appends(array_filter([
'search' => $search,
'name' => $nameFilter
'name' => $nameFilter,
]));
return view('tags.index', [
'tags' => $tags,
'search' => $search,
'tags' => $tags,
'search' => $search,
'nameFilter' => $nameFilter,
]);
}

View File

@ -9,6 +9,7 @@ class Model extends EloquentModel
/**
* Provides public access to get the raw attribute value from the model.
* Used in areas where no mutations are required but performance is critical.
*
* @return mixed
*/
public function getRawAttribute(string $key)