Apply rules on lib dir

This commit is contained in:
Mike Jolley
2024-03-18 13:39:29 +00:00
committed by Jan Jakeš
parent 35fbac6320
commit 435f638011
159 changed files with 800 additions and 732 deletions

View File

@@ -94,8 +94,7 @@ class AutomatedLatestContent extends APIEndpoint {
'args' => $data,
// If the request is for Posts or Products block then we are fetching data for a static block
'dynamic' => !(isset($data['type']) && in_array($data['type'], ["posts", "products"])),
]
)));
])));
return $this->successResponse(
$this->ALC->transformPosts($data, $posts)
);