Skip to content

Commit

Permalink
[INC] Inclusão das classes já iniciadas
Browse files Browse the repository at this point in the history
  • Loading branch information
robmachado committed Jun 26, 2016
1 parent 33fc4f3 commit 9d528bf
Show file tree
Hide file tree
Showing 65 changed files with 10,545 additions and 174 deletions.
Empty file modified .coverall.yml
100755 → 100644
Empty file.
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
; This file is for unifying the coding style for different editors and IDEs.
; More information at http://editorconfig.org

root = true

[*]
charset = utf-8
indent_size = 4
indent_style = space
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false
18 changes: 18 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Path-based git attributes
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html

# Ignore all test and documentation with "export-ignore".
/.gitattributes export-ignore
/.gitignore export-ignore
/.travis.yml export-ignore
/phpunit.xml.dist export-ignore
/.scrutinizer.yml export-ignore
/.editorconfig export-ignore
/.styleci.yml export-ignore
/.coverall.yml export-ignore
/tests export-ignore
/docs export-ignore
/build export-ignore
/manuals export-ignore
/examples export-ignore
/images export-ignore
18 changes: 8 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
nbproject
.idea
limpaTAB.php
*~
*.pfx
*.pem
config.json
vendor
local
/.DS_Store
/.idea
/.project
/.buildpath
/.settings/
/build
/phpunit.xml
/tests/folder
vendor
docs
nbproject
build
composer.lock
config.json
108 changes: 1 addition & 107 deletions .scrutinizer.yml
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
build:
environment:
php: '5.6.0'
php: '7.0.0'


before_commands:
- "composer install --prefer-source"

filter:
excluded_paths: [test/*]
excluded_paths: [tests/*]

checks:
php:
Expand All @@ -28,102 +19,5 @@ checks:

tools:
external_code_coverage:
enabled: false
timeout: 600
runs: 3
filter:
excluded_paths:
- 'test/*'
- 'vendor/*'

# Code Coverage
php_code_coverage:
enabled: true
filter:
excluded_paths:
- 'test/*'
- 'vendor/*'

# Code Sniffer
php_code_sniffer:
enabled: true
config:
standard: PSR2
sniffs:
generic:
files:
one_class_per_file_sniff: false
filter:
excluded_paths:
- 'test/*'
- 'vendor/*'

# Copy/Paste Detector
php_cpd:
enabled: true
excluded_dirs:
- test
- vendor

# PHP CS Fixer (http://http://cs.sensiolabs.org/).
php_cs_fixer:
enabled: true
config:
level: psr2
filter:
excluded_paths:
- 'test/*'
- 'vendor/*'

# Analyzes the size and structure of a PHP project.
php_loc:
enabled: true
excluded_dirs:
- test
- vendor

# PHP Mess Detector (http://phpmd.org).
php_mess_detector:
enabled: true
config:
rulesets:
- codesize
- unusedcode
- naming
- design
naming_rules:
short_variable: { minimum: 3 }
filter:
excluded_paths:
- 'test/*'
- 'vendor/*'

# Analyzes the size and structure of a PHP project.
php_pdepend:
enabled: true
excluded_dirs:
- test
- vendor

# Runs Scrutinizer's PHP Analyzer Tool
# https://scrutinizer-ci.com/docs/tools/php/php-analyzer/config_reference
php_analyzer:
enabled: true
config:
checkstyle:
enabled: true
naming:
enabled: true
property_name: ^[_a-zA-Z][a-zA-Z0-9_]*$ #Allow underscores & caps
method_name: ^(?:[_a-zA-Z]|__)[a-zA-Z0-9_]*$ #Allow underscores & caps
parameter_name: ^[a-z][a-zA-Z0-9_]*$ # Allow underscores
local_variable: ^[a-zA-Z][a-zA-Z0-9_]*$ #Allow underscores & caps
exception_name: ^[a-zA-Z][a-zA-Z0-9]*Exception$
isser_method_name: ^(?:[_a-zA-Z]|__)[a-zA-Z0-9]*$ #Allow underscores & caps
filter:
excluded_paths:
- 'test/*'
- 'vendor/*'

# Security Advisory Checker
sensiolabs_security_checker: true
1 change: 1 addition & 0 deletions .styleci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
preset: psr2
14 changes: 5 additions & 9 deletions .travis.yml
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,26 +1,22 @@
language: php

php:
- 5.5
- 5.6
- 7.0

- hhvm

# This triggers builds to run on the new TravisCI infrastructure.
# See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/
sudo: false

matrix:
allow_failures:
- php: 7.0
include:
- php: 5.6
env: 'COMPOSER_FLAGS="--prefer-stable --prefer-lowest"'

before_script:
- travis_retry composer self-update
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source

script:
- vendor/bin/phpcs --standard=psr2 src/
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover

after_script:
- if [[ $TRAVIS_PHP_VERSION != 'hhvm' && $TRAVIS_PHP_VERSION != '7.0' ]]; then php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover; fi
- if [[ $TRAVIS_PHP_VERSION != 'hhvm' ]]; then php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover; fi
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Changelog

All Notable changes to `sped-nfe` will be documented in this file.

Todas as atualizações a partir de 30/05/206 devem observar os principios [Mantendo o CHANGELOG](http://keepachangelog.com/).

## 4.1.0-dev

### Added
- Nothing

### Deprecated
- Nothing

### Fixed
- Nothing

### Removed
- Nothing

### Security
- Nothing
50 changes: 50 additions & 0 deletions CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Contributor Code of Conduct

As contributors and maintainers of this project, and in the interest of fostering an open and welcoming community, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.

We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or nationality.

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery
* Personal attacks
* Trolling or insulting/derogatory comments
* Public or private harassment
* Publishing other's private information, such as physical or electronic addresses, without explicit permission
* Other unethical or unprofessional conduct.

Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. By adopting this Code of Conduct, project maintainers commit themselves to fairly and consistently applying these principles to every aspect of managing this project. Project maintainers who do not follow or enforce the Code of Conduct may be permanently removed from the project team.

This code of conduct applies both within project spaces and in public spaces when an individual is representing the project or its community in a direct capacity. Personal views, beliefs and values of individuals do not necessarily reflect those of the organisation or affiliated individuals and organisations.

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.

This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.2.0, available at [http://contributor-covenant.org/version/1/2/0/](http://contributor-covenant.org/version/1/2/0/)

> Thanks The League of Extraordinary Packages for the guidelines and structures available in your repository thephpleague / skeleton

# Código de Conduta Contributor

Como contribuidores e mantenedores deste projeto, e no interesse de promover uma comunidade aberta e acolhedora, nós nos comprometemos a respeitar todas as pessoas que contribuem através do registro de falhas, postando pedidos de funcionalidades, atualizando a documentação, submetendo "pull requests" ou patches, e outras atividades.

Estamos empenhados em tornar a participação neste projecto uma experiência livre de assédio para todos, independentemente do nível de experiência, sexo, identidade de gênero e expressão, orientação sexual, deficiência, aparência pessoal, tamanho corporal, raça, etnia, idade, religião ou nacionalidade.

Exemplos de comportamento inaceitável pelos participantes incluem:

* O uso de linguagem sexualizada ou imagens
* Ataques pessoais
* Ataques ou insinuações / comentários depreciativos
* Assédio público ou privado
* Publicar informações privadas e/ou pessoais, como endereços físicos ou eletrônicos, sem a permissão explícita
* Outras condutas antiéticas ou não profissionais.

Os mantenedores do projeto têm o direito e a responsabilidade de remover, editar, ou rejeitar comentários, comitar, códificar, editas wikis, problemas e outras contribuições que não estejam alinhadas a este Código de Conduta. Ao adotar este Código de Conduta, os mantenedores do projeto se comprometem a forma justa e coerente a aplicar estes princípios a todos os aspectos da gestão do projeto. mantenedores do projeto que não seguem ou não fazem cumprir esse Código de Conduta podem ser permanentemente removidos da equipe do projeto.

Este código de conduta aplica-se tanto dentro dos espaços do projeto e em espaços públicos quando um indivíduo está representando o projeto ou sua comunidade em uma ação direta ou pessoal. Pontos de vista pessoais, crenças e valores dos indivíduos não refletem necessariamente os da organização ou outros indivíduos e organizações afiliadas.

Instâncias de assédio ou comportamento abusivo, de outro modo inaceitáveis ​​podem ser relatados através da abertura de uma ISSUE ou entrar em contato com um ou mais dos mantenedores do projeto.

Este Código de Conduta é uma adaptação do [Contribuinte Aliança] (http://contributor-covenant.org), versão 1.2.0, disponível em [http://contributor-covenant.org/version/1/2/0/ ] (http://contributor-covenant.org/version/1/2/0/)

> Agradecemos "The League of Extraordinary Packages" pelas orientações e estruturas disponibilizadas em seu repositório thephpleague/skeleton
34 changes: 34 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Contribuindo (*Contributing*)

Todas as contribuições são **bem vindas** e serão totalmente **creditadas** aos seus autores.
*Contributions are **welcome** and will be fully **credited**.*

Nós aceitamos contribuições via "pull request" através do repositório no [GitHub](https://github.com/nfephp-org/posprint).
*We accept contributions via Pull Requests on [Github](https://github.com/nfephp-org/posprint).*


## Pull Requests

- **[PSR-2 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)** - A forma mais facil de aplicar as convenções é atraves do PHP Code Sniffer. *The easiest way to apply the conventions is to install [PHP Code Sniffer](http://pear.php.net/package/PHP_CodeSniffer).*

- **Add tests!** - Seus patch não serão aceitos caso não tenham testes. *Your patch won't be accepted if it doesn't have tests.*

- **Document any change in behaviour** - Tenha certeza de manter o `README.md` e qualquer outra documentação relevante atualizada com o seu patch. *Make sure the `README.md` and any other relevant documentation are kept up-to-date.*

- **Consider our release cycle** - Nós tentamos seguir a especificação SemVer v2.0.0. Quebrar aleatóriamente uma API publica não é uma opção. *We try to follow [SemVer v2.0.0](http://semver.org/). Randomly breaking public APIs is not an option.*

- **Create feature branches** - Não nos peça para puxar do seu branch master. *Don't ask us to pull from your master branch.*

- **One pull request per feature** - Se você quiser fazer mais de uma coisa, envie várias solicitações de pull, não coloque tudo de uma vez. *If you want to do more than one thing, send multiple pull requests.*

- **Send coherent history** - Certifique-se que cada commit individual em seu pull request é significativo. Se você tivesse que fazer várias commits intermediários durante o desenvolvimento, por favor junte antes de submeter. *Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please [squash them](http://www.git-scm.com/book/en/v2/Git-Tools-Rewriting-History#Changing-Multiple-Commit-Messages) before submitting.*


## Running Tests

``` bash
$ composer test
```


**Happy coding**!
22 changes: 22 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,25 @@ apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.

============================================================
MIT LICENCE
============================================================
Copyright (c) 2016 NFePHP

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Empty file modified README.md
100644 → 100755
Empty file.
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

1 change: 1 addition & 0 deletions VERSION.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4.1.x-dev
Empty file modified bootstrap.php
100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions certs/.gitkeep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Loading

0 comments on commit 9d528bf

Please sign in to comment.