Skip to content

Commit f84460a

Browse files
authored
[CS] Bumped Ibexa Code Style to v2.1.0 (#665)
For more details see #665 Key changes: * [Composer] Bumped Ibexa Code Style to v2.1.0 * [CS] Aligned codebase with Ibexa Code Style v2.1.0
1 parent d5827d0 commit f84460a

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"require-dev": {
6565
"behat/behat": "^3.6.1",
6666
"friends-of-behat/mink-extension": "^2.4",
67-
"ibexa/code-style": "~2.0.0",
67+
"ibexa/code-style": "~2.1.0",
6868
"ibexa/rector": "~5.0.x-dev",
6969
"jenner/simple_fork": "^1.2",
7070
"matthiasnoback/symfony-dependency-injection-test": "^5.0",

src/lib/MVC/Symfony/Templating/Twig/Extension/ContentExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ private function resolveData(Content|ContentInfo|ContentAwareInterface $data): V
260260
return $data;
261261
}
262262

263-
return $data->getContent();
263+
return $data->getContent();
264264
}
265265

266266
private function getContent(Content|ContentAwareInterface $data): Content
@@ -269,6 +269,6 @@ private function getContent(Content|ContentAwareInterface $data): Content
269269
return $data;
270270
}
271271

272-
return $data->getContent();
272+
return $data->getContent();
273273
}
274274
}

src/lib/MVC/Symfony/Templating/Twig/Extension/FieldRenderingExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,6 @@ private function getContent(Content|ContentAwareInterface $content): Content
200200
return $content;
201201
}
202202

203-
return $content->getContent();
203+
return $content->getContent();
204204
}
205205
}

src/lib/MVC/Symfony/Templating/Twig/Extension/RenderContentExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,6 @@ private function getContent(Content|ContentAwareInterface $data): Content
6363
return $data;
6464
}
6565

66-
return $data->getContent();
66+
return $data->getContent();
6767
}
6868
}

src/lib/Persistence/Legacy/Content/UrlAlias/SlugConverter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,8 @@ protected function cleanupText($text, $method)
356356
);
357357
break;
358358
default:
359-
// Nothing
360-
}
359+
// Nothing
360+
}
361361

362362
return $text;
363363
}

src/lib/Repository/Values/MultiLanguageNameTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function getName(?string $languageCode = null): ?string
3838
}
3939

4040
if (isset($this->mainLanguageCode, $this->names[$this->mainLanguageCode])) {
41-
return $this->names[$this->mainLanguageCode];
41+
return $this->names[$this->mainLanguageCode];
4242
}
4343

4444
return $this->names[array_key_first($this->names)] ?? null;

0 commit comments

Comments
 (0)