Skip to content

Commit d08c63e

Browse files
Jan-Schuppiklippserd
authored andcommitted
style fixes <= php 7.3
1 parent eadf87b commit d08c63e

8 files changed

+39
-20
lines changed

application/controllers/ChartsController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public function podAction(): void
213213
new HtmlElement('th', null, new Text('Cpu')),
214214
new HtmlElement('th', null, new Text('Memory'))
215215
)
216-
),
216+
)
217217
);
218218

219219
$tbody = new HtmlElement('tbody');

library/Kubernetes/Common/Metrics.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ class Metrics
5656
public const POD_MEMORY_USAGE = 'memory.usage';
5757

5858

59-
protected Connection $db;
59+
/** @var Connection */
60+
protected $db;
6061

6162
public function __construct(Connection $db)
6263
{

library/Kubernetes/Web/DoughnutChart.php

+6-3
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,14 @@ class DoughnutChart extends BaseHtmlElement
1313

1414
protected $defaultAttributes;
1515

16-
protected string $values;
16+
/** @var string */
17+
protected $values;
1718

18-
protected string $labels;
19+
/** @var string */
20+
protected $labels;
1921

20-
protected string $colors;
22+
/** @var string */
23+
protected $colors;
2124

2225
public function __construct(string $chartSizeClass, string $values, string $labels, string $colors)
2326
{

library/Kubernetes/Web/DoughnutChartRequestLimit.php

+8-4
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,17 @@ class DoughnutChartRequestLimit extends BaseHtmlElement
1313

1414
protected $defaultAttributes;
1515

16-
protected string $request;
16+
/** @var string */
17+
protected $request;
1718

18-
protected string $limit;
19+
/** @var string */
20+
protected $limit;
1921

20-
protected string $real;
22+
/** @var string */
23+
protected $real;
2124

22-
protected string $realColor;
25+
/** @var string */
26+
protected $realColor;
2327

2428
public function __construct(string $chartSizeClass, string $request, string $limit, string $real, string $realColor)
2529
{

library/Kubernetes/Web/DoughnutChartStates.php

+6-3
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,14 @@ class DoughnutChartStates extends BaseHtmlElement
1313

1414
protected $defaultAttributes;
1515

16-
protected string $value;
16+
/** @var string */
17+
protected $value;
1718

18-
protected string $label;
19+
/** @var string */
20+
protected $label;
1921

20-
protected string $colors;
22+
/** @var string */
23+
protected $colors;
2124

2225
public function __construct(string $chartSizeClass, string $value, string $label, string $colors)
2326
{

library/Kubernetes/Web/LineChart.php

+8-4
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,17 @@ class LineChart extends BaseHtmlElement
1313

1414
protected $defaultAttributes;
1515

16-
protected string $values;
16+
/** @var string */
17+
protected $values;
1718

18-
protected string $labels;
19+
/** @var string */
20+
protected $labels;
1921

20-
protected string $label;
22+
/** @var string */
23+
protected $label;
2124

22-
protected string $color;
25+
/** @var string */
26+
protected $color;
2327

2428
public function __construct(string $chartSizeClass, string $values, string $labels, string $label, string $color)
2529
{

library/Kubernetes/Web/LineChartMinified.php

+6-3
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,14 @@ class LineChartMinified extends BaseHtmlElement
1313

1414
protected $defaultAttributes;
1515

16-
protected string $values;
16+
/** @var string */
17+
protected $values;
1718

18-
protected string $labels;
19+
/** @var string */
20+
protected $labels;
1921

20-
protected string $color;
22+
/** @var string */
23+
protected $color;
2124

2225
public function __construct(string $chartSizeClass, string $values, string $labels, string $color)
2326
{

library/Kubernetes/Web/MetricCharts.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ class MetricCharts extends BaseHtmlElement
1616

1717
protected $defaultAttributes = ['class' => 'metric-charts'];
1818

19-
protected array $chartRows;
19+
/** @var array */
20+
protected $chartRows;
2021

2122
protected $tag = 'section';
2223

0 commit comments

Comments
 (0)