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
241
Issues
241
List
Boards
Labels
Service Desk
Milestones
Merge Requests
30
Merge Requests
30
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
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
e45b8753
Commit
e45b8753
authored
just now
by
Emiliano Balbuena
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(chore): Lint code
parent
bb12f5f2
epic/minds-pro
1 merge request
!296
WIP: (feat): Minds Pro (development branch) - Release 3
Pipeline
#78675416
pending with stages
Changes
10
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
12 additions
and
21 deletions
+12
-21
channel.php
Controllers/api/v2/feeds/channel.php
+0
-1
Manager.php
Core/Pro/Channel/Manager.php
+1
-3
HydrateSettingsDelegate.php
Core/Pro/Delegates/HydrateSettingsDelegate.php
+1
-2
InitializeSettingsDelegate.php
Core/Pro/Delegates/InitializeSettingsDelegate.php
+1
-2
Domain.php
Core/Pro/Domain.php
+2
-3
Manager.php
Core/Pro/Manager.php
+1
-2
Repository.php
Core/Pro/Repository.php
+2
-3
Manager.php
Core/Router/Manager.php
+1
-2
ProMiddleware.php
Core/Router/Middleware/ProMiddleware.php
+1
-2
User.php
Entities/User.php
+2
-1
No files found.
Controllers/api/v2/feeds/channel.php
View file @
e45b8753
...
...
@@ -226,5 +226,4 @@ class channel implements Interfaces\Api
{
return
Factory
::
response
([]);
}
}
This diff is collapsed.
Click to expand it.
Core/Pro/Channel/Manager.php
View file @
e45b8753
...
...
@@ -31,8 +31,7 @@ class Manager
public
function
__construct
(
$repository
=
null
,
$top
=
null
)
{
)
{
$this
->
repository
=
$repository
?:
new
Repository
();
$this
->
top
=
$top
?:
new
TopManager
();
}
...
...
@@ -73,7 +72,6 @@ class Manager
$container
=
(
string
)
$this
->
user
->
guid
;
foreach
(
$tags
as
$tag
)
{
$opts
=
[
'container_guid'
=>
$container
,
'access_id'
=>
[
2
,
$container
],
...
...
This diff is collapsed.
Click to expand it.
Core/Pro/Delegates/HydrateSettingsDelegate.php
View file @
e45b8753
...
...
@@ -30,8 +30,7 @@ class HydrateSettingsDelegate
public
function
__construct
(
$entitiesBuilder
=
null
,
$config
=
null
)
{
)
{
$this
->
entitiesBuilder
=
$entitiesBuilder
?:
Di
::
_
()
->
get
(
'EntitiesBuilder'
);
$this
->
config
=
$config
?:
Di
::
_
()
->
get
(
'Config'
);
}
...
...
This diff is collapsed.
Click to expand it.
Core/Pro/Delegates/InitializeSettingsDelegate.php
View file @
e45b8753
...
...
@@ -22,8 +22,7 @@ class InitializeSettingsDelegate
*/
public
function
__construct
(
$repository
=
null
)
{
)
{
$this
->
repository
=
$repository
?:
new
Repository
();
}
...
...
This diff is collapsed.
Click to expand it.
Core/Pro/Domain.php
View file @
e45b8753
...
...
@@ -26,8 +26,7 @@ class Domain
public
function
__construct
(
$config
=
null
,
$repository
=
null
)
{
)
{
$this
->
config
=
$config
?:
Di
::
_
()
->
get
(
'Config'
);
$this
->
repository
=
$repository
?:
new
Repository
();
}
...
...
@@ -40,7 +39,7 @@ class Domain
{
$rootDomains
=
$this
->
config
->
get
(
'root_domains'
)
?:
[];
if
(
in_array
(
strtolower
(
$domain
),
$rootDomains
))
{
if
(
in_array
(
strtolower
(
$domain
),
$rootDomains
,
true
))
{
return
null
;
}
...
...
This diff is collapsed.
Click to expand it.
Core/Pro/Manager.php
View file @
e45b8753
...
...
@@ -39,8 +39,7 @@ class Manager
$saveAction
=
null
,
$initializeSettingsDelegate
=
null
,
$hydrateSettingsDelegate
=
null
)
{
)
{
$this
->
repository
=
$repository
?:
new
Repository
();
$this
->
saveAction
=
$saveAction
?:
new
Save
();
$this
->
initializeSettingsDelegate
=
$initializeSettingsDelegate
?:
new
Delegates\InitializeSettingsDelegate
();
...
...
This diff is collapsed.
Click to expand it.
Core/Pro/Repository.php
View file @
e45b8753
...
...
@@ -25,8 +25,7 @@ class Repository
*/
public
function
__construct
(
$db
=
null
)
{
)
{
$this
->
db
=
$db
?:
Di
::
_
()
->
get
(
'Database\Cassandra\Cql'
);
}
...
...
@@ -66,7 +65,7 @@ class Repository
}
if
(
$opts
[
'offset'
])
{
$cqlOpts
[
'paging_state_token'
]
=
base64_decode
(
$opts
[
'offset'
]);
$cqlOpts
[
'paging_state_token'
]
=
base64_decode
(
$opts
[
'offset'
]
,
true
);
}
$prepared
=
new
Custom
();
...
...
This diff is collapsed.
Click to expand it.
Core/Router/Manager.php
View file @
e45b8753
...
...
@@ -21,8 +21,7 @@ class Manager
*/
public
function
__construct
(
$middleware
=
null
)
{
)
{
$this
->
middleware
=
$middleware
?:
[
new
Middleware\ProMiddleware
(),
];
...
...
This diff is collapsed.
Click to expand it.
Core/Router/Middleware/ProMiddleware.php
View file @
e45b8753
...
...
@@ -22,8 +22,7 @@ class ProMiddleware implements RouterMiddleware
*/
public
function
__construct
(
$proDomain
=
null
)
{
)
{
$this
->
proDomain
=
$proDomain
?:
Di
::
_
()
->
get
(
'Pro\Domain'
);
}
...
...
This diff is collapsed.
Click to expand it.
Entities/User.php
View file @
e45b8753
...
...
@@ -424,7 +424,8 @@ class User extends \ElggUser
* @param array $pinned
* @return $this
*/
public
function
setPinnedPosts
(
$pinned
)
{
public
function
setPinnedPosts
(
$pinned
)
{
$maxPinnedPosts
=
$this
->
isPro
()
?
12
:
3
;
$this
->
pinned_posts
=
array_slice
(
$pinned
,
-
$maxPinnedPosts
,
null
,
false
);
...
...
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