-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
1,675 additions
and
836 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,10 @@ | ||
# Not archived | ||
/docs export-ignore | ||
/tests export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
editorconfig.xml export-ignore | ||
Makefile export-ignore | ||
phpstan.neon export-ignore | ||
readme.md export-ignore | ||
ruleset.xml export-ignore |
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,4 +1,5 @@ | ||
.idea | ||
/vendor | ||
/composer.lock | ||
tests/*/output | ||
tests/*/output | ||
tests/tmp |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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,27 @@ | ||
.PHONY: qa lint cs csf phpstan tests coverage | ||
|
||
all: | ||
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$' | xargs | ||
|
||
vendor: composer.json composer.lock | ||
composer install | ||
|
||
qa: lint phpstan cs | ||
|
||
lint: vendor | ||
vendor/bin/linter src tests | ||
|
||
cs: vendor | ||
vendor/bin/codesniffer src tests | ||
|
||
csf: vendor | ||
vendor/bin/codefixer src tests | ||
|
||
phpstan: vendor | ||
vendor/bin/phpstan analyse -c phpstan.neon src | ||
|
||
tests: vendor | ||
vendor/bin/tester -s -p php --colors 1 -C tests/cases | ||
|
||
coverage: vendor | ||
vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage ./coverage.xml --coverage-src ./src ./tests/cases |
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,33 @@ | ||
# Doctrine Phone | ||
|
||
[](https://github.com/ipublikuj/doctrine-phone) | ||
[](https://coveralls.io/github/ipublikuj/doctrine-phone) | ||
 | ||
[](https://github.com/ipublikuj/doctrine-phone/blob/master/LICENSE.md) | ||
[](https://packagist.org/packages/ipub/doctrine-phone) | ||
[](https://packagist.org/packages/ipub/doctrine-phone) | ||
[](https://github.com/phpstan/phpstan) | ||
|
||
Phone number manipulation for [Nette Framework](http://nette.org/) and [Doctrine2](http://www.doctrine-project.org/) | ||
|
||
## Installation | ||
|
||
The best way to install **ipub/doctrine-phone** is using [Composer](http://getcomposer.org/): | ||
|
||
```sh | ||
composer require ipub/doctrine-phone | ||
``` | ||
|
||
After that, you have to register extension in config.neon. | ||
|
||
```neon | ||
extensions: | ||
doctrinePhone: IPub\DoctrinePhone\DI\DoctrinePhoneExtension | ||
``` | ||
|
||
## Documentation | ||
|
||
Learn how to manipulate with phone numbers in [documentation](https://github.com/ipublikuj/doctrine-phone/blob/master/docs/en/index.md). | ||
|
||
*** | ||
Homepage [http://www.ipublikuj.eu](http://www.ipublikuj.eu) and repository [http://github.com/ipublikuj/doctrine-phone](http://github.com/ipublikuj/doctrine-phone). |
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,2 @@ | ||
parameters: | ||
level: max |
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,24 @@ | ||
<?xml version="1.0"?> | ||
<ruleset> | ||
<rule ref="./vendor/ninjify/coding-standard/ruleset.xml"> | ||
<exclude name="Generic.Files.LineEndings.InvalidEOLChar"/> | ||
<!-- we want brace on same line for multi-line definitions, checked by Squiz.Functions.MultiLineFunctionDeclaration --> | ||
<exclude name="Generic.Functions.OpeningFunctionBraceBsdAllman.BraceOnSameLine"/> | ||
|
||
<exclude name="SlevomatCodingStandard.ControlStructures.BlockControlStructureSpacing.IncorrectLinesCountAfterLastControlStructure"/> | ||
<exclude name="SlevomatCodingStandard.ControlStructures.RequireTernaryOperator"/> | ||
<exclude name="SlevomatCodingStandard.ControlStructures.EarlyExit"/> | ||
<exclude name="SlevomatCodingStandard.ControlStructures.AssignmentInCondition.assignmentInCondition"/> | ||
|
||
<exclude name="SlevomatCodingStandard.Commenting.ForbiddenAnnotations.AnnotationForbidden"/> | ||
<exclude name="SlevomatCodingStandard.Commenting.DocCommentSpacing.IncorrectLinesCountBetweenDifferentAnnotationsTypes"/> | ||
|
||
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.UselessDocComment"/> | ||
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.UselessParameterAnnotation"/> | ||
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.UselessReturnAnnotation"/> | ||
</rule> | ||
|
||
<!--Exclude folders --> | ||
<exclude-pattern>/tests/tmp</exclude-pattern> | ||
<exclude-pattern>tests/PHPStan/stubs/*</exclude-pattern> | ||
</ruleset> |
Oops, something went wrong.