@@ -79,7 +79,7 @@ class ArticlesController extends AppController
7979 $tags = $this->request->getParam('pass');
8080
8181 $customFinderOptions = [
82- 'tags' => $tags
82+ 'tags' => $tags,
8383 ];
8484 // We're using the $settings argument to paginate() here.
8585 // But the same structure could be used in $this->paginate
@@ -90,7 +90,7 @@ class ArticlesController extends AppController
9090 // public function findTagged(Query $query, array $tagged = [])
9191 $settings = [
9292 'finder' => [
93- 'tagged' => $customFinderOptions
93+ 'tagged' => $customFinderOptions,
9494 ]
9595 ];
9696 $articles = $this->paginate($this->Articles, $settings);
@@ -153,7 +153,7 @@ call to the `paginate()` method:
153153// Paginate property
154154protected array $paginate = [
155155 'Articles' => ['scope' => 'article'],
156- 'Tags' => ['scope' => 'tag']
156+ 'Tags' => ['scope' => 'tag'],
157157];
158158
159159// In a controller action
@@ -197,7 +197,7 @@ $this->paginate = [
197197
198198$publishedArticles = $this->paginate(
199199 $this->Articles->find('all', scope: 'published_articles')
200- ->where(['published' => true])
200+ ->where(['published' => true]),
201201);
202202
203203// Load an additional table object to allow differentiating in the paginator
@@ -209,7 +209,7 @@ $unpublishedArticlesTable = $this->fetchTable('UnpublishedArticles', [
209209
210210$unpublishedArticles = $this->paginate(
211211 $unpublishedArticlesTable->find('all', scope: 'unpublished_articles')
212- ->where(['published' => false])
212+ ->where(['published' => false]),
213213);
214214```
215215
@@ -355,7 +355,7 @@ example reducing it to `10`:
355355``` php
356356protected array $paginate = [
357357 // Other keys here.
358- 'maxLimit' => 10
358+ 'maxLimit' => 10,
359359];
360360```
361361
0 commit comments