Skip to content

Commit

Permalink
style fixes <= php 7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan-Schuppik committed May 28, 2024
1 parent c1422c3 commit daac0c1
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 20 deletions.
2 changes: 1 addition & 1 deletion application/controllers/ChartsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public function podAction(): void
new HtmlElement('th', null, new Text('Cpu')),
new HtmlElement('th', null, new Text('Memory'))
)
),
)
);

$tbody = new HtmlElement('tbody');
Expand Down
3 changes: 2 additions & 1 deletion library/Kubernetes/Common/Metrics.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ class Metrics
public const POD_MEMORY_USAGE = 'memory.usage';


protected Connection $db;
/** @var Connection */
protected $db;

public function __construct(Connection $db)
{
Expand Down
9 changes: 6 additions & 3 deletions library/Kubernetes/Web/DoughnutChart.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ class DoughnutChart extends BaseHtmlElement

protected $defaultAttributes;

protected string $values;
/** @var string */
protected $values;

protected string $labels;
/** @var string */
protected $labels;

protected string $colors;
/** @var string */
protected $colors;

public function __construct(string $chartSizeClass, string $values, string $labels, string $colors)
{
Expand Down
12 changes: 8 additions & 4 deletions library/Kubernetes/Web/DoughnutChartRequestLimit.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,17 @@ class DoughnutChartRequestLimit extends BaseHtmlElement

protected $defaultAttributes;

protected string $request;
/** @var string */
protected $request;

protected string $limit;
/** @var string */
protected $limit;

protected string $real;
/** @var string */
protected $real;

protected string $realColor;
/** @var string */
protected $realColor;

public function __construct(string $chartSizeClass, string $request, string $limit, string $real, string $realColor)
{
Expand Down
9 changes: 6 additions & 3 deletions library/Kubernetes/Web/DoughnutChartStates.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ class DoughnutChartStates extends BaseHtmlElement

protected $defaultAttributes;

protected string $value;
/** @var string */
protected $value;

protected string $label;
/** @var string */
protected $label;

protected string $colors;
/** @var string */
protected $colors;

public function __construct(string $chartSizeClass, string $value, string $label, string $colors)
{
Expand Down
12 changes: 8 additions & 4 deletions library/Kubernetes/Web/LineChart.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,17 @@ class LineChart extends BaseHtmlElement

protected $defaultAttributes;

protected string $values;
/** @var string */
protected $values;

protected string $labels;
/** @var string */
protected $labels;

protected string $label;
/** @var string */
protected $label;

protected string $color;
/** @var string */
protected $color;

public function __construct(string $chartSizeClass, string $values, string $labels, string $label, string $color)
{
Expand Down
9 changes: 6 additions & 3 deletions library/Kubernetes/Web/LineChartMinified.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ class LineChartMinified extends BaseHtmlElement

protected $defaultAttributes;

protected string $values;
/** @var string */
protected $values;

protected string $labels;
/** @var string */
protected $labels;

protected string $color;
/** @var string */
protected $color;

public function __construct(string $chartSizeClass, string $values, string $labels, string $color)
{
Expand Down
3 changes: 2 additions & 1 deletion library/Kubernetes/Web/MetricCharts.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ class MetricCharts extends BaseHtmlElement

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

protected array $chartRows;
/** @var array */
protected $chartRows;

protected $tag = 'section';

Expand Down

0 comments on commit daac0c1

Please sign in to comment.