Skip to content

Commit 318c6b0

Browse files
committed
coding style: fixed spaces & use statements order
1 parent 54b4d64 commit 318c6b0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+42
-73
lines changed

examples/basic-example.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
}
1313

1414
use Nette\Forms\Form;
15+
use Nette\Utils\Html;
1516
use Tracy\Debugger;
1617
use Tracy\Dumper;
17-
use Nette\Utils\Html;
1818

1919
Debugger::enable();
2020

examples/custom-control.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
}
1313

1414
use Nette\Forms\Form;
15-
use Nette\Utils\Html;
1615
use Nette\Forms\Helpers;
16+
use Nette\Utils\Html;
1717

1818

1919
class DateInput extends Nette\Forms\Controls\BaseControl
@@ -115,7 +115,6 @@ public static function validateDate(Nette\Forms\IControl $control)
115115
&& ctype_digit($control->year)
116116
&& checkdate((int) $control->month, (int) $control->day, (int) $control->year);
117117
}
118-
119118
}
120119

121120

examples/custom-rendering.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
}
1313

1414
use Nette\Forms\Form;
15+
use Nette\Utils\Html;
1516
use Tracy\Debugger;
1617
use Tracy\Dumper;
17-
use Nette\Utils\Html;
1818

1919
Debugger::enable();
2020

examples/localization.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ class MyTranslator implements Nette\Localization\ITranslator
2323
{
2424
private $table;
2525

26+
2627
function __construct(array $table)
2728
{
2829
$this->table = $table;
2930
}
3031

32+
3133
/**
3234
* Translates the given string.
3335
*/

src/Bridges/FormsDI/FormsExtension.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,4 @@ public function afterCompile(Nette\PhpGenerator\ClassType $class)
3737
}
3838
}
3939
}
40-
4140
}

src/Bridges/FormsLatte/FormMacros.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99

1010
namespace Nette\Bridges\FormsLatte;
1111

12-
use Nette;
1312
use Latte;
14-
use Latte\MacroNode;
15-
use Latte\PhpWriter;
1613
use Latte\CompileException;
14+
use Latte\MacroNode;
1715
use Latte\Macros\MacroSet;
16+
use Latte\PhpWriter;
17+
use Nette;
1818
use Nette\Forms\Form;
1919

2020

@@ -29,7 +29,6 @@
2929
*/
3030
class FormMacros extends MacroSet
3131
{
32-
3332
public static function install(Latte\Compiler $compiler)
3433
{
3534
$me = new static($compiler);
@@ -238,5 +237,4 @@ public function macroInputError(MacroNode $node, PhpWriter $writer)
238237
return $writer->write('echo %escape(end($this->global->formsStack)[%0.word]->getError());', $name);
239238
}
240239
}
241-
242240
}

src/Bridges/FormsLatte/Runtime.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
namespace Nette\Bridges\FormsLatte;
1111

1212
use Nette;
13-
use Nette\Utils\Html;
1413
use Nette\Forms\Form;
14+
use Nette\Utils\Html;
1515

1616

1717
/**
@@ -70,5 +70,4 @@ public static function renderFormEnd(Form $form, bool $withTags = TRUE): string
7070

7171
return $s . ($withTags ? $form->getElementPrototype()->endTag() . "\n" : '');
7272
}
73-
7473
}

src/Forms/Container.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,5 +488,4 @@ public function __clone()
488488
{
489489
throw new Nette\NotImplementedException('Form cloning is not supported yet.');
490490
}
491-
492491
}

src/Forms/ControlGroup.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,5 +122,4 @@ public function getOptions(): array
122122
{
123123
return $this->options;
124124
}
125-
126125
}

src/Forms/Controls/BaseControl.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,5 +606,4 @@ public static function extensionMethod($name, /*callable*/ $callback): void
606606
}
607607
self::$extMethods[$name][static::class] = $callback;
608608
}
609-
610609
}

0 commit comments

Comments
 (0)