-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactoring: PHP 7.1, Bootstrap3/4 Renderers (#8)
- Loading branch information
Showing
20 changed files
with
773 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,8 @@ | |
/composer.lock | ||
|
||
# Tests | ||
/temp | ||
/tests/*.log | ||
/tests/tmp | ||
/tests/coverage.html | ||
/coverage.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
includes: | ||
- temp/phpstan/vendor/phpstan/phpstan-strict-rules/rules.neon | ||
- temp/phpstan/vendor/phpstan/phpstan-nette/extension.neon | ||
- temp/phpstan/vendor/phpstan/phpstan-nette/rules.neon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="Contributte"> | ||
<!-- Extending rulesets --> | ||
<rule ref="vendor/ninjify/coding-standard/contributte.xml"/> | ||
|
||
<!-- My rules --> | ||
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName"> | ||
<properties> | ||
<property name="rootNamespaces" type="array" value=" | ||
src=>Contributte\Forms | ||
"/> | ||
</properties> | ||
</rule> | ||
|
||
<!-- Exclude folders --> | ||
<exclude-pattern>/tests/tmp</exclude-pattern> | ||
</ruleset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
indent_style = tab | ||
indent_size = tab | ||
tab_width = 4 | ||
|
||
[{composer.json,package.json,.travis.yml}] | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,17 @@ | ||
<?php | ||
<?php declare(strict_types = 1); | ||
|
||
namespace Contributte\Forms\DI; | ||
|
||
use Contributte\Forms\FormFactory; | ||
use Nette\DI\CompilerExtension; | ||
|
||
/** | ||
* @author Milan Felix Sulc <[email protected]> | ||
*/ | ||
class FormFactoryExtension extends CompilerExtension | ||
{ | ||
|
||
/** | ||
* Register services | ||
* | ||
* @return void | ||
*/ | ||
public function loadConfiguration() | ||
public function loadConfiguration(): void | ||
{ | ||
$builder = $this->getContainerBuilder(); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
<?php | ||
<?php declare(strict_types = 1); | ||
|
||
namespace Contributte\Forms; | ||
|
||
use Nette\Forms\Form as NetteForm; | ||
|
||
/** | ||
* @author Milan Felix Sulc <[email protected]> | ||
*/ | ||
class Form extends NetteForm | ||
{ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,11 @@ | ||
<?php | ||
<?php declare(strict_types = 1); | ||
|
||
namespace Contributte\Forms; | ||
|
||
/** | ||
* @author Milan Felix Sulc <[email protected]> | ||
*/ | ||
class FormFactory implements IFormFactory | ||
{ | ||
|
||
/** | ||
* @return Form | ||
*/ | ||
public function create() | ||
public function create(): Form | ||
{ | ||
return new Form(); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,10 @@ | ||
<?php | ||
<?php declare(strict_types = 1); | ||
|
||
namespace Contributte\Forms; | ||
|
||
/** | ||
* @author Milan Felix Sulc <[email protected]> | ||
*/ | ||
interface IFormFactory | ||
{ | ||
|
||
/** | ||
* @return Form | ||
*/ | ||
public function create(); | ||
public function create(): Form; | ||
|
||
} |
Oops, something went wrong.