Skip to content

Commit

Permalink
inserted empty space before foreach in ratings_test
Browse files Browse the repository at this point in the history
  • Loading branch information
NinaHerrmann committed Jan 24, 2024
1 parent 5fa9a70 commit 94dca8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/ratings_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ private function postsorderequal($sortedposts, $rightorder) {
private function set_ratingpreferences($preference) {
if ($preference == 0 || $preference == 1) {
$this->post->ratingpreference = $preference;
foreach([$this->answer1, $this->answer2, $this->answer3, $this->answer4, $this->answer5, $this->answer6] as $answer) {
foreach ([$this->answer1, $this->answer2, $this->answer3, $this->answer4, $this->answer5, $this->answer6] as $answer) {
$answer->ratingpreference = $preference;
}
}
Expand Down Expand Up @@ -512,11 +512,11 @@ private function create_onegroup($group) {
*/
private function create_twogroups($group1, $group2) {
// Set the first 3 answers to the first group of rating.
foreach([$this->answer1, $this->answer2, $this->answer3] as $answer) {
foreach ([$this->answer1, $this->answer2, $this->answer3] as $answer) {
$this->set_group($group1, $answer);
}
// Set the last 3 answers to the second group of rating.
foreach([$this->answer4, $this->answer5, $this->answer6] as $answer) {
foreach ([$this->answer4, $this->answer5, $this->answer6] as $answer) {
$this->set_group($group2, $answer);
}

Expand Down

0 comments on commit 94dca8a

Please sign in to comment.