Skip to content

NOW MANAGED ON CODEBERG

Applied latest StyleCI changes

Dan Brownf2b1d2e1e7b9
diff --git a/app/Actions/TagRepo.php b/app/Actions/TagRepo.php
index 06a1b893d..ab1b40677 100644
--- a/app/Actions/TagRepo.php
+++ b/app/Actions/TagRepo.php
@@ -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 . '%');
});
diff --git a/app/Auth/Access/Ldap.php b/app/Auth/Access/Ldap.php
index 6259de0ae..4bf6db474 100644
--- a/app/Auth/Access/Ldap.php
+++ b/app/Auth/Access/Ldap.php
@@ -11,6 +11,7 @@ class Ldap
{
/**
* Connect to an LDAP server.
+ *
* @return resource
*/
public function connect(string $hostName, int $port)
diff --git a/app/Entities/Models/Chapter.php b/app/Entities/Models/Chapter.php
index 75630832b..0e2917af3 100644
--- a/app/Entities/Models/Chapter.php
+++ b/app/Entities/Models/Chapter.php
@@ -10,7 +10,7 @@ use Illuminate\Support\Collection;
* Class Chapter.
*
* @property Collection<Page> $pages
- * @property string $description
+ * @property string $description
*/
class Chapter extends BookChild
{
diff --git a/app/Entities/Models/PageRevision.php b/app/Entities/Models/PageRevision.php
index 336fd67da..6856c23e1 100644
--- a/app/Entities/Models/PageRevision.php
+++ b/app/Entities/Models/PageRevision.php
@@ -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
diff --git a/app/Entities/Tools/SlugGenerator.php b/app/Entities/Tools/SlugGenerator.php
index e715f769f..9fd9036ad 100644
--- a/app/Entities/Tools/SlugGenerator.php
+++ b/app/Entities/Tools/SlugGenerator.php
@@ -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
diff --git a/app/Http/Controllers/TagController.php b/app/Http/Controllers/TagController.php
index aaf0cb9b2..1fe32e5ca 100644
--- a/app/Http/Controllers/TagController.php
+++ b/app/Http/Controllers/TagController.php
@@ -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,
]);
}
diff --git a/app/Model.php b/app/Model.php
index bd524332c..6fdc25097 100644
--- a/app/Model.php
+++ b/app/Model.php
@@ -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)