Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
M2 content provisioning
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TechDivision Public
M2 content provisioning
Commits
f375cfbe
Unverified
Commit
f375cfbe
authored
Mar 28, 2019
by
Vadim Justus
Committed by
GitHub
Mar 28, 2019
Browse files
Options
Downloads
Plain Diff
Merge pull request #20 from vadimjustus/develop
#17
Remove return types from Get*EntityList classes in order to be co…
parents
61a2507a
bf9f40a9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Model/Query/GetBlockEntryList.php
+2
-2
2 additions, 2 deletions
Model/Query/GetBlockEntryList.php
Model/Query/GetPageEntryList.php
+2
-2
2 additions, 2 deletions
Model/Query/GetPageEntryList.php
with
4 additions
and
4 deletions
Model/Query/GetBlockEntryList.php
+
2
−
2
View file @
f375cfbe
...
@@ -39,7 +39,7 @@ class GetBlockEntryList
...
@@ -39,7 +39,7 @@ class GetBlockEntryList
/**
/**
* Prepare items array by transforming all configured entries into content entry data models
* Prepare items array by transforming all configured entries into content entry data models
*/
*/
private
function
prepare
()
:
void
private
function
prepare
()
{
{
if
(
empty
(
$this
->
items
))
{
if
(
empty
(
$this
->
items
))
{
$blocks
=
$this
->
configuration
->
getList
()[
'blocks'
]
??
[];
$blocks
=
$this
->
configuration
->
getList
()[
'blocks'
]
??
[];
...
@@ -53,7 +53,7 @@ class GetBlockEntryList
...
@@ -53,7 +53,7 @@ class GetBlockEntryList
/**
/**
* @return BlockEntryInterface[]
* @return BlockEntryInterface[]
*/
*/
public
function
get
()
:
array
public
function
get
()
{
{
$this
->
prepare
();
$this
->
prepare
();
return
$this
->
items
;
return
$this
->
items
;
...
...
This diff is collapsed.
Click to expand it.
Model/Query/GetPageEntryList.php
+
2
−
2
View file @
f375cfbe
...
@@ -39,7 +39,7 @@ class GetPageEntryList
...
@@ -39,7 +39,7 @@ class GetPageEntryList
/**
/**
* Prepare items array by transforming all configured entries into content entry data models
* Prepare items array by transforming all configured entries into content entry data models
*/
*/
private
function
prepare
()
:
void
private
function
prepare
()
{
{
if
(
empty
(
$this
->
items
))
{
if
(
empty
(
$this
->
items
))
{
$pages
=
$this
->
configuration
->
getList
()[
'pages'
]
??
[];
$pages
=
$this
->
configuration
->
getList
()[
'pages'
]
??
[];
...
@@ -53,7 +53,7 @@ class GetPageEntryList
...
@@ -53,7 +53,7 @@ class GetPageEntryList
/**
/**
* @return PageEntryInterface[]
* @return PageEntryInterface[]
*/
*/
public
function
get
()
:
array
public
function
get
()
{
{
$this
->
prepare
();
$this
->
prepare
();
return
$this
->
items
;
return
$this
->
items
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment