Skip to content
Code-Schnipsel Gruppen Projekte
Bestätigt Commit 1e94a76a erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

fix: wrong return types + missing return types

Übergeordneter 6ad48be9
No related branches found
No related tags found
3 Merge Requests!26fix(Accordion): consider given entries parameter,!25fix(Accordion): consider given entries parameter,!24feat!: quiqqer v2
......@@ -30,7 +30,7 @@ function ($project, $area = false) {
$areas = $Brick->getAttribute('areas');
if (strpos($areas, ',' . $area . ',') !== false) {
if (str_contains($areas, ',' . $area . ',')) {
$result[] = $Brick->getAttributes();
}
}
......
......@@ -15,6 +15,7 @@
"email": "support@pcsg.de"
},
"require": {
"php": "^8.1",
"quiqqer\/quiqqer": "^2",
"quiqqer\/qui": "^1",
"quiqqer\/utils": "^1.27",
......
......@@ -63,12 +63,18 @@ public function __construct(array $attributes = [])
* @param string $image - image.php URL to an image
* @param string $title - optional, left text
* @param string $text - optional, right text
* @param string|false $type - optional, not exists, but we are from PromosliderWallpaper and AbstractPromoslider
* @param string|bool $type - optional, not exists, but we are from PromosliderWallpaper and AbstractPromoslider
* @param string $url - index.php? or extern url
* @param boolean $newTab - should the url be opened in a new tab?
*/
public function addSlide(string $image, string $title, string $text, string $type = false, string $url = '', bool $newTab = false): void
{
public function addSlide(
string $image,
string $title,
string $text,
string|bool $type = false,
string $url = '',
bool $newTab = false
): void {
$this->desktopSlides[] = $this->checkSlideParams($image, $title, $text, $url, $newTab);
}
......@@ -81,8 +87,13 @@ public function addSlide(string $image, string $title, string $text, string $typ
* @param string $url - index.php? or extern url
* @param boolean $newTab - should the url be opened in a new tab?
*/
public function addMobileSlide(string $image, string $title, string $text, string $url = '', bool $newTab = false): void
{
public function addMobileSlide(
string $image,
string $title,
string $text,
string $url = '',
bool $newTab = false
): void {
$this->mobileSlides[] = $this->checkSlideParams($image, $title, $text, $url, $newTab);
}
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren