Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
243
Issues
243
List
Boards
Labels
Service Desk
Milestones
Merge Requests
30
Merge Requests
30
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Commits
a9126588
Commit
a9126588
authored
5 minutes ago
by
Juan Manuel Solaro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fix) apply lint fixes
parent
63c28906
epic/post-scheduler
1 merge request
!294
WIP: epic/post-scheduler
Pipeline
#79429117
running with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
FilterEntitiesDelegate.php
Core/Entities/Delegates/FilterEntitiesDelegate.php
+5
-3
No files found.
Core/Entities/Delegates/FilterEntitiesDelegate.php
View file @
a9126588
...
...
@@ -10,7 +10,7 @@ namespace Minds\Core\Entities\Delegates;
use
Minds\Core\Security\ACL
;
use
Minds\Entities\User
;
class
FilterEntitiesDelegate
class
FilterEntitiesDelegate
{
/** @var ACL */
protected
$acl
;
...
...
@@ -32,7 +32,8 @@ class FilterEntitiesDelegate
* @param array $entities
* @return array
*/
public
function
filter
(
$entities
)
{
public
function
filter
(
$entities
)
{
return
array_values
(
array_filter
(
$entities
,
function
(
$entity
)
{
$filterByScheduled
=
false
;
if
(
$this
->
shouldFilterScheduled
(
$entity
->
getType
()))
{
...
...
@@ -43,7 +44,8 @@ class FilterEntitiesDelegate
}));
}
private
function
shouldFilterScheduled
(
$type
)
{
private
function
shouldFilterScheduled
(
$type
)
{
return
$type
==
'activity'
||
$type
==
'blog'
||
$type
==
'video'
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment