Skip to content

Commit 1064f08

Browse files
committed
coding style
1 parent 70cda6d commit 1064f08

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

examples/custom-control.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ class DateInput extends Nette\Forms\Controls\BaseControl
2020
{
2121
/** @var string */
2222
private $day = '';
23+
2324
private $month = '';
25+
2426
private $year = '';
2527

2628

src/Forms/Controls/CsrfProtection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function getControl(): Nette\Utils\Html
9595
/**
9696
* @internal
9797
*/
98-
public static function validateCsrf(CsrfProtection $control): bool
98+
public static function validateCsrf(self $control): bool
9999
{
100100
$value = (string) $control->getValue();
101101
return $control->generateToken(substr($value, 0, 10)) === $value;

src/Forms/Form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ protected function attached(Nette\ComponentModel\IComponent $obj): void
159159
* Returns self.
160160
* @return static
161161
*/
162-
public function getForm(bool $throw = true): Form
162+
public function getForm(bool $throw = true): self
163163
{
164164
return $this;
165165
}

src/Forms/Rules.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public function elseCondition()
155155
* Ends current validation condition.
156156
* @return Rules parent branch
157157
*/
158-
public function endCondition(): Rules
158+
public function endCondition(): self
159159
{
160160
return $this->parent;
161161
}

0 commit comments

Comments
 (0)