Skip to content

Commit

Permalink
phpstan used
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitexus committed Nov 16, 2024
1 parent b707b39 commit 1364546
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 177 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"minimum-stability": "stable",
"require": {
"vitexsoftware/ease-twbootstrap4": ">=1.1"
"vitexsoftware/ease-twbootstrap4": "^1.9"
},
"require-dev": {
"phpunit/phpunit": "*",
Expand Down
10 changes: 8 additions & 2 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
php-vitexsoftware-ease-bootstrap4-widgets (1.4.0) UNRELEASED; urgency=medium
php-vitexsoftware-ease-bootstrap4-widgets (1.5.0) UNRELEASED; urgency=medium

* Semantic Versioning ready

-- vitex <info@vitexsoftware.cz> Sat, 16 Nov 2024 16:22:11 +0100

php-vitexsoftware-ease-bootstrap4-widgets (1.4.0) unstable; urgency=medium

* Strict types update

-- vitex <info@vitexsoftware.cz> Sat, 21 Sep 2024 03:26:00 +0200
-- vitex <info@vitexsoftware.cz> Sat, 16 Nov 2024 16:21:58 +0100

php-vitexsoftware-ease-bootstrap4-widgets (1.3) unstable; urgency=medium

Expand Down
86 changes: 0 additions & 86 deletions src/Ease/TWB4/Widgets/BrowsingHistory.php

This file was deleted.

4 changes: 2 additions & 2 deletions src/Ease/TWB4/Widgets/FaIcon.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ class FaIcon extends PairTag
/**
* Font Awesome Icon tag.
*
* @param string $icon Font Awesome Icon class name (maybe without fa- prefix)
* @param array $tagProperties eg. ['aria-hidden'=>false]
* @param string $icon Font Awesome Icon class name (maybe without fa- prefix)
* @param array<string, string> $tagProperties eg. ['aria-hidden'=>false]
*/
public function __construct($icon, $tagProperties = null)
{
Expand Down
42 changes: 0 additions & 42 deletions src/Ease/TWB4/Widgets/LangLinks.php

This file was deleted.

29 changes: 0 additions & 29 deletions src/Ease/TWB4/Widgets/LangSelect.php

This file was deleted.

15 changes: 7 additions & 8 deletions src/Ease/TWB4/Widgets/MainPageMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class MainPageMenu extends \Ease\TWB4\Row
public function __construct()
{
parent::__construct(
null,
[],
[
'class' => 'container',
Expand All @@ -40,16 +39,16 @@ public function __construct()
/**
* Add Item to mainpage Menu.
*
* @param string $title caption
* @param string $url image link href url
* @param string $image url
* @param mixed $description
* @param null|mixed $buttonText
* @param array $properties for Card
* @param string $title caption
* @param string $url image link href url
* @param string $image url
* @param mixed $description
* @param null|mixed $buttonText
* @param array<string, string> $properties for Card
*
* @return \Ease\Html\ATag
*/
public function addMenuItem($title, $url, $image, $description, $buttonText = null, $properties = [])
public function addMenuItem($title, $url, $image, $description, $buttonText = null, array $properties = [])
{
$icon = new \Ease\Html\ImgTag($image, $title, ['alt' => $title, 'class' => 'card-img-top']);
// $cardHeader = new \Ease\Html\DivTag($title, ['class' => 'card-header']);
Expand Down
4 changes: 2 additions & 2 deletions src/Ease/TWB4/Widgets/PasswordInputShowHide.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
class PasswordInputShowHide extends DivTag
{
/**
* @var unique widget identifier
* @var string unique widget identifier
*/
public unique $key = null;
public string $key = '';

/**
* Password Input with Eye.
Expand Down
12 changes: 7 additions & 5 deletions src/Ease/TWB4/Widgets/Toggle.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ class Toggle extends \Ease\Html\CheckboxTag
{
/**
* Properties holder.
*
* @var array<string, string>
*/
public array $properties = [];

Expand All @@ -35,10 +37,10 @@ class Toggle extends \Ease\Html\CheckboxTag
/**
* Twitter Bootstrap switch.
*
* @param string $name tag name
* @param bool $checked checkbox state
* @param string $value returned value
* @param array $properties tag parameters
* @param string $name tag name
* @param bool $checked checkbox state
* @param string $value returned value
* @param array<string, string> $properties tag parameters
*/
public function __construct(
$name,
Expand All @@ -64,7 +66,7 @@ public function __construct(
/**
* Properties setter.
*
* @param array $properties values to change
* @param array<string, string> $properties values to change
*/
public function setProperties($properties): void
{
Expand Down

0 comments on commit 1364546

Please sign in to comment.