]> BookStack Code Mirror - bookstack/blobdiff - app/Api/ListingResponseBuilder.php
Fixed tests from streaming changes
[bookstack] / app / Api / ListingResponseBuilder.php
index 6da92040b4cc4a40679fa46abe2a842b087397eb..7de5ddf07b133302820396f8847dc70523ad096a 100644 (file)
@@ -48,7 +48,7 @@ class ListingResponseBuilder
         $filteredQuery = $this->filterQuery($this->query);
 
         $total = $filteredQuery->count();
-        $data = $this->fetchData($filteredQuery)->each(function($model) {
+        $data = $this->fetchData($filteredQuery)->each(function ($model) {
             foreach ($this->resultModifiers as $modifier) {
                 $modifier($model);
             }
@@ -61,7 +61,8 @@ class ListingResponseBuilder
     }
 
     /**
-     * Add a callback to modify each element of the results
+     * Add a callback to modify each element of the results.
+     *
      * @param (callable(Model)) $modifier
      */
     public function modifyResults($modifier): void