Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
}
},
"require-dev": {
"vimeo/psalm": "~5.13",
"innmind/static-analysis": "^1.2.1",
"innmind/coding-standard": "~2.0"
}
}
1 change: 1 addition & 0 deletions src/Button.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public function selectedWhen(bool $selected): self
);
}

#[\Override]
public function render(): Content
{
return Lines::of(
Expand Down
1 change: 1 addition & 0 deletions src/Card.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public static function of(View $inner): self
return new self(Center::of($inner));
}

#[\Override]
public function render(): Content
{
return Lines::of(
Expand Down
1 change: 1 addition & 0 deletions src/Center.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public static function of(View $inner): self
return new self($inner);
}

#[\Override]
public function render(): Content
{
return Lines::of(
Expand Down
1 change: 1 addition & 0 deletions src/Grid.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public static function of(Sequence $cards): self
return new self($cards);
}

#[\Override]
public function render(): Content
{
return Lines::of(
Expand Down
1 change: 1 addition & 0 deletions src/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public function shape(Shape $shape): View
return $shape->wrap($this);
}

#[\Override]
public function render(): Content
{
return Lines::of(\sprintf(
Expand Down
1 change: 1 addition & 0 deletions src/Listing.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public static function of(Sequence $elements): self
return new self($elements);
}

#[\Override]
public function render(): Content
{
return Lines::of(
Expand Down
1 change: 1 addition & 0 deletions src/NavigationLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public function selectedWhen(bool $selected): self
);
}

#[\Override]
public function render(): Content
{
return Lines::of(
Expand Down
1 change: 1 addition & 0 deletions src/Picker.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public function disableWhen(bool $disable): self
);
}

#[\Override]
public function render(): Content
{
return Lines::of(
Expand Down
1 change: 1 addition & 0 deletions src/Progress.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public static function new(): self
return new self;
}

#[\Override]
public function render(): Content
{
$svg = static fn(bool $black): string => \sprintf(
Expand Down
1 change: 1 addition & 0 deletions src/ScrollView.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public static function of(View $inner): self
return new self($inner);
}

#[\Override]
public function render(): Content
{
return Lines::of(
Expand Down
1 change: 1 addition & 0 deletions src/Shape/Kind.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public static function circle(View $inner): self
return new self($inner, 'circle');
}

#[\Override]
public function render(): Content
{
return Lines::of(
Expand Down
1 change: 1 addition & 0 deletions src/Stack.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public static function vertical(View $first, View $second, View ...$rest): self
return new self(false, Sequence::of($first, $second, ...$rest));
}

#[\Override]
public function render(): Content
{
$class = match ($this->horizontal) {
Expand Down
1 change: 1 addition & 0 deletions src/Svg.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public function zoom(int $size): View
return Zoom::of($this, $size);
}

#[\Override]
public function render(): Content
{
return Lines::of(
Expand Down
1 change: 1 addition & 0 deletions src/Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public static function escape(string $string): string
);
}

#[\Override]
public function render(): Content
{
return Content::ofString(self::escape($this->text));
Expand Down
1 change: 1 addition & 0 deletions src/Toolbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public function trailing(View $view): self
);
}

#[\Override]
public function render(): Content
{
$lines = Lines::of(
Expand Down
1 change: 1 addition & 0 deletions src/View/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public static function of(View $view): self
return new self($view);
}

#[\Override]
public function render(): Content
{
return Lines::of(
Expand Down
1 change: 1 addition & 0 deletions src/Window.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public function stylesheet(Url $url): self
);
}

#[\Override]
public function render(): Content
{
$lines = Lines::of(
Expand Down
1 change: 1 addition & 0 deletions src/Zoom.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public static function of(View $inner, int $size): self
return new self($inner, $size);
}

#[\Override]
public function render(): Content
{
return Lines::of(
Expand Down