Skip to content

Commit 17d6114

Browse files
committed
Update: Prettier files
1 parent 2e9d8c1 commit 17d6114

File tree

5 files changed

+55
-42
lines changed

5 files changed

+55
-42
lines changed

.github/CONTRIBUTING.md

+19-21
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,36 @@
22

33
I love to welcome your contributions. There are several ways to help out:
44

5-
* Create an [issue](https://github.com/jonnitto/Jonnitto.ImagesInARow/issues) on GitHub, if you have found a bug
6-
* Write test cases or provide examples for open bug issues
7-
* Write patches for open bug/feature issues, preferably with test cases included
8-
5+
- Create an [issue](https://github.com/jonnitto/Jonnitto.ImagesInARow/issues) on GitHub, if you have found a bug
6+
- Write test cases or provide examples for open bug issues
7+
- Write patches for open bug/feature issues, preferably with test cases included
98

109
There are a few guidelines that I need contributors to follow so that I have a
1110
chance of keeping on top of things.
1211

13-
1412
## Getting Started
1513

16-
* Make sure you have a [GitHub account](https://github.com/signup/free).
17-
* Submit an [issue](https://github.com/jonnitto/Jonnitto.ImagesInARow/issues), assuming one does not already exist.
18-
* Clearly describe the issue including steps to reproduce when it is a bug.
19-
* Make sure you fill in the earliest version that you know has the issue.
20-
* Fork the repository on GitHub.
14+
- Make sure you have a [GitHub account](https://github.com/signup/free).
15+
- Submit an [issue](https://github.com/jonnitto/Jonnitto.ImagesInARow/issues), assuming one does not already exist.
16+
- Clearly describe the issue including steps to reproduce when it is a bug.
17+
- Make sure you fill in the earliest version that you know has the issue.
18+
- Fork the repository on GitHub.
2119

2220
## Making Changes
2321

24-
* Create a topic branch from where you want to base your work.
25-
* This is usually the master branch.
26-
* Only target release branches if you are certain your fix must be on that
22+
- Create a topic branch from where you want to base your work.
23+
- This is usually the master branch.
24+
- Only target release branches if you are certain your fix must be on that
2725
branch.
28-
* To quickly create a topic branch based on master; `git branch
29-
master/my_contribution master` then checkout the new branch with `git
30-
checkout master/my_contribution`. Better avoid working directly on the
26+
- To quickly create a topic branch based on master; `git branch
27+
master/my_contribution master` then checkout the new branch with `git
28+
checkout master/my_contribution`. Better avoid working directly on the
3129
`master` branch, to avoid conflicts if you pull in updates from origin.
32-
* Make commits of logical units.
33-
* Check for unnecessary whitespace with `git diff --check` before committing.
34-
* Use descriptive commit messages and reference the #issue number.
30+
- Make commits of logical units.
31+
- Check for unnecessary whitespace with `git diff --check` before committing.
32+
- Use descriptive commit messages and reference the #issue number.
3533

3634
## Submitting Changes
3735

38-
* Push your changes to a topic branch in your fork of the repository.
39-
* Submit a pull request to the repository
36+
- Push your changes to a topic branch in your fork of the repository.
37+
- Submit a pull request to the repository

.github/ISSUE_TEMPLATE.md

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
This is a (multiple allowed):
2-
* [x] bug
3-
* [ ] enhancement
4-
* [ ] feature-discussion (RFC)
52

6-
* Version: EXACT RELEASE VERSION OR COMMIT HASH, HERE.
7-
* Platform/Target and Browser Versions: PLATFORM CLIENT YOU ARE TARGETING SUCH AS macOS, Windows, CORDOVA, IOS, ANDROID, CHROME, ETC.
3+
- [x] bug
4+
- [ ] enhancement
5+
- [ ] feature-discussion (RFC)
6+
7+
- Version: EXACT RELEASE VERSION OR COMMIT HASH, HERE.
8+
- Platform/Target and Browser Versions: PLATFORM CLIENT YOU ARE TARGETING SUCH AS macOS, Windows, CORDOVA, IOS, ANDROID, CHROME, ETC.
89

910
### What you did
11+
1012
EXPLAIN WHAT YOU DID, PREFERABLY WITH CODE EXAMPLES, HERE.
1113

1214
### Expected Behavior
15+
1316
EXPLAIN WHAT IS TO BE EXPECTED, HERE.
1417

1518
### Actual Behavior
19+
1620
EXPLAIN WHAT IS ACTUALLY HAPPENING, HERE.
1721

1822
P.S. Remember, an issue is not the place to ask questions. You can use [Slack](http://slack.neos.io) or [Discuss](https://discuss.neos.io) for that.

CODE_OF_CONDUCT.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ In the interest of fostering an open and welcoming environment, we as contributo
88

99
Examples of behavior that contributes to creating a positive environment include:
1010

11-
* Using welcoming and inclusive language
12-
* Being respectful of differing viewpoints and experiences
13-
* Gracefully accepting constructive criticism
14-
* Focusing on what is best for the community
15-
* Showing empathy towards other community members
11+
- Using welcoming and inclusive language
12+
- Being respectful of differing viewpoints and experiences
13+
- Gracefully accepting constructive criticism
14+
- Focusing on what is best for the community
15+
- Showing empathy towards other community members
1616

1717
Examples of unacceptable behavior by participants include:
1818

19-
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20-
* Trolling, insulting/derogatory comments, and personal or political attacks
21-
* Public or private harassment
22-
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23-
* Other conduct which could reasonably be considered inappropriate in a professional setting
19+
- The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
- Trolling, insulting/derogatory comments, and personal or political attacks
21+
- Public or private harassment
22+
- Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
- Other conduct which could reasonably be considered inappropriate in a professional setting
2424

2525
## Our Responsibilities
2626

Classes/ContentRepository/Transformations/FlatStructureTransformation.php

+16-5
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@ class FlatStructureTransformation extends AbstractTransformation
2020
*/
2121
public function isTransformable(NodeData $node)
2222
{
23-
$numberOfChildNodes = $node->getNumberOfChildNodes('Neos.Neos:ContentCollection', $node->getWorkspace(), $node->getDimensions());
24-
return ($numberOfChildNodes > 0);
23+
$numberOfChildNodes = $node->getNumberOfChildNodes(
24+
'Neos.Neos:ContentCollection',
25+
$node->getWorkspace(),
26+
$node->getDimensions()
27+
);
28+
return $numberOfChildNodes > 0;
2529
}
2630

2731
/**
@@ -31,13 +35,20 @@ public function isTransformable(NodeData $node)
3135
public function execute(NodeData $node)
3236
{
3337
$contentContext = $this->createContentContext('live', []);
34-
$containerNode = $contentContext->getNodeByIdentifier($node->getIdentifier());
35-
$contentCollections = $containerNode->getChildNodes('Neos.Neos:ContentCollection');
38+
$containerNode = $contentContext->getNodeByIdentifier(
39+
$node->getIdentifier()
40+
);
41+
$contentCollections = $containerNode->getChildNodes(
42+
'Neos.Neos:ContentCollection'
43+
);
3644

3745
foreach ($contentCollections as $contentCollection) {
3846
/** @var NodeInterface $contentCollection */
3947
if ($contentCollection->hasChildNodes()) {
40-
$this->moveChildNodes($contentCollection->getChildNodes(), $containerNode);
48+
$this->moveChildNodes(
49+
$contentCollection->getChildNodes(),
50+
$containerNode
51+
);
4152
$contentCollection->remove();
4253
}
4354
}

Configuration/Settings.Neos.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Neos:
44
translation:
55
autoInclude:
66
Jonnitto.ImagesInARow:
7-
- "NodeTypes/*"
7+
- 'NodeTypes/*'
88
fusion:
99
autoInclude:
1010
Jonnitto.ImagesInARow: true

0 commit comments

Comments
 (0)