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
0 parents
commit db0356e
Showing
516 changed files
with
69,514 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# EditorConfig is awesome: http://EditorConfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 4 | ||
trim_trailing_whitespace = true |
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,45 @@ | ||
APP_ENV=production | ||
APP_DEBUG=false | ||
APP_KEY=SomeRandomString | ||
APP_URL=http://fixhub.app | ||
APP_TIMEZONE=Asia/Shanghai | ||
APP_LOCALE=zh-CN | ||
APP_THEME=white | ||
APP_LOG=daily | ||
|
||
JWT_SECRET=changeme | ||
|
||
SOCKET_URL=http://fixhub.app | ||
SOCKET_PORT=6001 | ||
SOCKET_SSL_KEY_FILE= | ||
SOCKET_SSL_CERT_FILE= | ||
SOCKET_SSL_CA_FILE= | ||
|
||
DB_CONNECTION=mysql | ||
DB_HOST=127.0.0.1 | ||
DB_DATABASE=fixhub | ||
DB_USERNAME=fixhub | ||
DB_PASSWORD=secret | ||
|
||
MAIL_DRIVER=smtp | ||
MAIL_HOST=localhost | ||
MAIL_PORT=25 | ||
MAIL_USERNAME=fixhub | ||
MAIL_PASSWORD=secret | ||
MAIL_FROM_NAME=Fixhub | ||
MAIL_FROM_ADDRESS=fixhub@fixhub.app | ||
|
||
REDIS_HOST=127.0.0.1 | ||
REDIS_PORT=6379 | ||
REDIS_DATABASE=0 | ||
REDIS_PASSWORD=null | ||
|
||
QUEUE_DRIVER=beanstalkd | ||
QUEUE_HOST=localhost | ||
|
||
CACHE_DRIVER=file | ||
SESSION_DRIVER=file | ||
IMAGE_DRIVER=gd | ||
|
||
TRUSTED_PROXIES= | ||
GITHUB_OAUTH_TOKEN= |
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,95 @@ | ||
# Handle line endings automatically for files detected as text | ||
# and leave all files detected as binary untouched. | ||
* text=auto | ||
|
||
# | ||
## These files are text and should be normalized (Convert crlf => lf) | ||
# | ||
|
||
# Source code | ||
*.php text | ||
*.css text | ||
*.sass text | ||
*.scss text | ||
*.less text | ||
*.sh text | ||
*.js text | ||
*.json text | ||
*.svg text | ||
artisan text | ||
VERSION text | ||
|
||
# server config | ||
.htaccess text | ||
*.example text | ||
*.conf text | ||
|
||
# git config | ||
.gitattributes text | ||
.gitignore text | ||
.gitconfig text | ||
|
||
# code analysis config | ||
.php_cs text | ||
*.dist text | ||
*.xml text | ||
*.yml text | ||
|
||
# misc config | ||
.editorconfig text | ||
|
||
# build config | ||
*.npmignore text | ||
*.bowerrc text | ||
|
||
# Documentation | ||
*.md text | ||
|
||
# | ||
## These files are binary and should be left untouched | ||
# | ||
|
||
*.png binary | ||
*.jpg binary | ||
*.jpeg binary | ||
*.gif binary | ||
*.ico binary | ||
*.ttf binary | ||
*.eot binary | ||
*.woff binary | ||
|
||
# | ||
## Remove development files from git archive | ||
# | ||
|
||
tests/ export-ignore | ||
examples/dev/ export-ignore | ||
.github/ export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
.gitkeep export-ignore | ||
.grumphp.yml export-ignore | ||
.editorconfig export-ignore | ||
.phpci.yml export-ignore | ||
.styleci.yml export-ignore | ||
.codeclimate.yml export-ignore | ||
.php_cs export-ignore | ||
phpcs.xml export-ignore | ||
phpmd.xml export-ignore | ||
phpunit.xml.dist export-ignore | ||
Vagrantfile export-ignore | ||
SCREENSHOTS.md export-ignore | ||
create-release export-ignore | ||
|
||
# | ||
## Github config | ||
# | ||
|
||
# Remove vendor files from github's language statistics | ||
_all-skins.css linguist-vendored | ||
AdminLTE* linguist-vendored | ||
vendor.scss linguest-vendored | ||
*.less linguist-vendored | ||
|
||
# Consider blade files as HTML | ||
*.blade.php linguist-language=HTML |
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,13 @@ | ||
# Configuration | ||
.env | ||
|
||
# Dev files | ||
.php_cs.cache | ||
.vagrant | ||
|
||
# Composer files | ||
composer.phar | ||
|
||
# Dependencies | ||
node_modules | ||
vendor |
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,43 @@ | ||
# Before Script | ||
before_script: | ||
- docker-php-ext-enable zip | ||
- docker-php-ext-enable mbstring | ||
- docker-php-ext-enable gd | ||
# - docker-php-ext-enable pdo_mysql | ||
# - ping -c 3 mysql | ||
# - composer self-update | ||
- composer config repo.packagist composer https://packagist.phpcomposer.com | ||
- composer install --no-progress --no-interaction | ||
# - cp .env.example .env | ||
# - sed -i 's/DB_HOST=127.0.0.1/DB_HOST=mysql/g' .env | ||
- php -v | ||
|
||
# Services | ||
services: | ||
# - mysql:latest | ||
|
||
# Variables | ||
variables: | ||
WITH_XDEBUG: "1" | ||
MYSQL_ROOT_PASSWORD: secret | ||
MYSQL_DATABASE: homestead | ||
MYSQL_USER: homestead | ||
MYSQL_PASSWORD: secret | ||
COMPOSER_HOME: /cache/composer | ||
|
||
#Stages | ||
stages: | ||
- test | ||
|
||
#PHP 7.0 | ||
php-7.0: | ||
type: test | ||
image: tetraweb/php:7.0 | ||
script: | ||
- php -v | ||
- echo "Running CS check on PHP 7.0" | ||
- phpcs --version | ||
- phpcs -p --standard=PSR2 --ignore="app/Helpers/Helpers.php,app/Presenters" app/ | ||
- echo "Running PHPUnit Tests on PHP 7.0" | ||
- php vendor/bin/phpunit --colors --coverage-text | ||
- php vendor/bin/phpdoccheck --directory=app |
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,90 @@ | ||
<?php | ||
|
||
$header = <<<EOF | ||
This file is part of Fixhub. | ||
Copyright (C) 2016 Fixhub.org | ||
For the full copyright and license information, please view the LICENSE | ||
file that was distributed with this source code. | ||
EOF; | ||
|
||
Symfony\CS\Fixer\Contrib\HeaderCommentFixer::setHeader($header); | ||
|
||
$finder = Symfony\Component\Finder\Finder::create() | ||
->files() | ||
->in('app') | ||
->in('config') | ||
->in('database') | ||
->in('bootstrap') | ||
->in('tests') | ||
->in('routes') | ||
->in('public') | ||
->in('resources/lang') | ||
->name('*.php') | ||
->ignoreDotFiles(true) | ||
->ignoreVCS(true); | ||
|
||
$fixers = [ | ||
'-psr0', | ||
'psr1', | ||
'psr2', | ||
'encoding', | ||
'php_closing_tag', | ||
'blankline_after_open_tag', | ||
'concat_with_spaces', | ||
'double_arrow_multiline_whitespaces', | ||
'duplicate_semicolon', | ||
'empty_return', | ||
'extra_empty_lines', | ||
'header_comment', | ||
'include', | ||
'join_function', | ||
'list_commas', | ||
'indentation', | ||
'multiline_array_trailing_comma', | ||
'namespace_no_leading_whitespace', | ||
'no_blank_lines_after_class_opening', | ||
'no_empty_lines_after_phpdocs', | ||
'object_operator', | ||
'operators_spaces', | ||
'phpdoc_indent', | ||
'phpdoc_no_access', | ||
'phpdoc_no_package', | ||
'phpdoc_params', | ||
'phpdoc_scalar', | ||
'phpdoc_short_description', | ||
'phpdoc_to_comment', | ||
'phpdoc_trim', | ||
'phpdoc_order', | ||
'phpdoc_type_to_var', | ||
'phpdoc_var_without_name', | ||
'remove_leading_slash_use', | ||
'remove_lines_between_uses', | ||
'return', | ||
'self_accessor', | ||
'single_array_no_trailing_comma', | ||
'single_blank_line_before_namespace', | ||
'single_quote', | ||
'spaces_before_semicolon', | ||
'spaces_cast', | ||
'standardize_not_equal', | ||
'ternary_spaces', | ||
'trim_array_spaces', | ||
'align_equals', | ||
'align_double_arrow', | ||
'unary_operators_spaces', | ||
'whitespacy_lines', | ||
'multiline_spaces_before_semicolon', | ||
'short_array_syntax', | ||
'short_echo_tag', | ||
'ordered_use', | ||
'strict', | ||
'strict_param' | ||
]; | ||
|
||
return Symfony\CS\Config\Config::create() | ||
->level(Symfony\CS\FixerInterface::PSR2_LEVEL) | ||
->fixers($fixers) | ||
->finder($finder) | ||
->setUsingCache(true); |
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,3 @@ | ||
preset: psr2 | ||
|
||
linting: true |
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,19 @@ | ||
language: php | ||
|
||
php: | ||
- 5.6 | ||
- 7.0 | ||
- 7.1 | ||
|
||
sudo: false | ||
|
||
before_install: | ||
- cp .env.example .env | ||
- if [[ $TRAVIS_PHP_VERSION != 7.1 ]] ; then phpenv config-rm xdebug.ini; fi | ||
|
||
install: travis_retry composer install --no-interaction --no-scripts --prefer-source --no-suggest | ||
|
||
script: | ||
- php vendor/bin/phpunit --colors | ||
- vendor/bin/phpcs -p --standard=PSR2 --ignore="app/Helpers/Helpers.php,app/Presenters" app/ | ||
- vendor/bin/phpdoccheck --directory=app |
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,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) <fixhub.org> | ||
|
||
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. |
Oops, something went wrong.