Skip to content

Commit 525dc1b

Browse files
committed
Update .gitignore, composer.json, and PHP files for consistency and improvements
- Add new log files to .gitignore - Update package version for composer.json to 1.1.2 - Remove obsolete files from debian/files - Adjust constructor parameters in various PHP classes to include trailing commas - Ensure finalize method is called in Carousel, Panel, and Tabs classes
1 parent 3881227 commit 525dc1b

File tree

16 files changed

+23
-17
lines changed

16 files changed

+23
-17
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@
55
/vendor/
66
/nbproject/private/
77
/composer.lock
8+
/debian/php-vitexsoftware-ease-bootstrap.debhelper.log
9+
/debian/php-vitexsoftware-ease-bootstrap.substvars
10+
/debian/php-vitexsoftware-ease-bootstrap/

.php-cs-fixer.dist.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
use Ergebnis\PhpCsFixer\Config\Factory;
1717
use Ergebnis\PhpCsFixer\Config\Rules;
18-
use Ergebnis\PhpCsFixer\Config\RuleSet\Php74;
18+
use Ergebnis\PhpCsFixer\Config\RuleSet\Php81;
1919

2020
$header = <<<'HEADER'
2121
This file is part of the EaseTWBootstrap3 package
@@ -28,7 +28,7 @@
2828
file that was distributed with this source code.
2929
HEADER;
3030

31-
$ruleSet = Php74::create()->withHeader($header)->withRules(Rules::fromArray([
31+
$ruleSet = Php81::create()->withHeader($header)->withRules(Rules::fromArray([
3232
'blank_line_before_statement' => [
3333
'statements' => [
3434
'break',

debian/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
"type": "library",
3232
"homepage": "http://v.s.cz/ease.php",
3333
"license": "GPL-2.0+",
34-
"address": "1.1"
34+
"address": "1.1.2"
3535
}

debian/files

Lines changed: 0 additions & 2 deletions
This file was deleted.

nbproject/private/private.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
<group name="EASE">
66
<file>file:/home/vitex/Projects/EASE/php-vitexsoftware-ease-bootstrap/composer.json</file>
77
</group>
8-
<group/>
8+
<group>
9+
<file>file:/home/vitex/Projects/VitexSoftware/php-vitexsoftware-ease-twbootstrap3/src/Ease/TWB/Panel.php</file>
10+
</group>
911
</open-files>
1012
</project-private>

src/Ease/TWB/ButtonDropdown.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(
3737
$type = 'default',
3838
$size = null,
3939
$items = null,
40-
$properties = []
40+
$properties = [],
4141
) {
4242
parent::__construct(null, $properties);
4343
$this->setTagClass('btn-group');

src/Ease/TWB/Carousel.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function addSlide(
7777
$slide,
7878
$capHeading = '',
7979
$caption = '',
80-
$default = false
80+
$default = false,
8181
): void {
8282
$item = new \Ease\Html\DivTag($slide, ['class' => 'item']);
8383

@@ -161,6 +161,7 @@ public function finalize(): void
161161
true,
162162
);
163163
}
164+
164165
parent::finalize();
165166
}
166167
}

src/Ease/TWB/Checkbox.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function __construct(
3636
$value = 'on',
3737
$content = null,
3838
$checked = false,
39-
$properties = []
39+
$properties = [],
4040
) {
4141
$label = new \Ease\Html\LabelTag($name);
4242
$this->checkbox = $label->addItem(new \Ease\Html\CheckboxTag(

src/Ease/TWB/Col.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function __construct(
3131
$size,
3232
$content = null,
3333
$target = 'md',
34-
$properties = []
34+
$properties = [],
3535
) {
3636
if (\array_key_exists('class', $properties)) {
3737
$addClass = $properties['class'];

src/Ease/TWB/Form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function addInput(
4242
$input,
4343
$caption = null,
4444
$placeholder = null,
45-
$helptext = null
45+
$helptext = null,
4646
) {
4747
return $this->addItem(new FormGroup(
4848
$caption,

src/Ease/TWB/FormGroup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function __construct(
3131
$content = null,
3232
$placeholder = null,
3333
$helptext = null,
34-
$addTagClass = 'form-control'
34+
$addTagClass = 'form-control',
3535
) {
3636
if (\is_object($content) && method_exists($content, 'getTagID')) {
3737
$id = $content->getTagID();

src/Ease/TWB/Label.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Label extends \Ease\Html\Span
2929
public function __construct(
3030
$type = 'default',
3131
$content = null,
32-
$properties = []
32+
$properties = [],
3333
) {
3434
if (isset($properties['class'])) {
3535
$properties['class'] .= ' label label-'.$type;

src/Ease/TWB/LinkButton.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(
3737
$href,
3838
$contents = null,
3939
$type = null,
40-
$properties = []
40+
$properties = [],
4141
) {
4242
if (isset($properties['class'])) {
4343
$class = ' '.$properties['class'];

src/Ease/TWB/Panel.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function __construct(
5656
$heading = null,
5757
$type = 'default',
5858
$body = null,
59-
$footer = null
59+
$footer = null,
6060
) {
6161
$this->type = $type;
6262
$this->addToFooter = $footer;
@@ -120,6 +120,7 @@ public function finalize(): void
120120
if ($this->addToFooter) {
121121
$this->footer()->addItem($this->addToFooter);
122122
}
123+
123124
parent::finalize();
124125
}
125126

src/Ease/TWB/RadioButton.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function __construct(
2929
$name = null,
3030
$value = null,
3131
$caption = null,
32-
$properties = []
32+
$properties = [],
3333
) {
3434
if (isset($properties['id'])) {
3535
$for = $properties['id'];

src/Ease/TWB/Tabs.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class Tabs extends \Ease\Container
4949
public function __construct(
5050
$partName,
5151
$tabsList = null,
52-
$tagProperties = null
52+
$tagProperties = null,
5353
) {
5454
$this->partName = $partName;
5555
parent::__construct();
@@ -235,6 +235,7 @@ public function finalize(): void
235235
true,
236236
);
237237
}
238+
238239
parent::finalize();
239240
}
240241
}

0 commit comments

Comments
 (0)