]> BookStack Code Mirror - bookstack/commitdiff
Applied latest StyleCI changes
authorDan Brown <redacted>
Sat, 6 Nov 2021 22:00:33 +0000 (22:00 +0000)
committerDan Brown <redacted>
Sat, 6 Nov 2021 22:00:33 +0000 (22:00 +0000)
app/Actions/TagRepo.php
app/Auth/Access/Ldap.php
app/Entities/Models/Chapter.php
app/Entities/Models/PageRevision.php
app/Entities/Tools/SlugGenerator.php
app/Http/Controllers/TagController.php
app/Model.php

index 06a1b893d888acc7415636ce7a2739a60764c2f1..ab1b40677e81c0600128849096fa085d5f39d141 100644 (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 . '%');
             });
index 6259de0ae9b6cbdd9113dfc759ab12ac5030f20f..4bf6db474d527d92de5135b7b924aeee969fd73e 100644 (file)
@@ -11,6 +11,7 @@ class Ldap
 {
     /**
      * Connect to an LDAP server.
+     *
      * @return resource
      */
     public function connect(string $hostName, int $port)
index 75630832b46a77d626afba127f676d4b48f4a8b3..0e2917af3badbdaab21538320436f33f3cc27630 100644 (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
 {
index 336fd67da155eb267a01e533429cc1b6748c9355..6856c23e1674ee27cb939fbea32c07fe69435a08 100644 (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
index e715f769fd5bdbbdac0215ad48b8972b8c7f1e05..9fd9036adefdc84661fa28926212edacd8a83021 100644 (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
index aaf0cb9b274e34f7f97b913b390f44e4aee59ede..1fe32e5caf1f64ee9067972b532afdb44f250059 100644 (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,
         ]);
     }
index bd524332cde77b6dea2f6dcba05966dbde7d0571..6fdc250976586386005c37bf3ca333d14373ebb4 100644 (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)