-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from prodeveloper/upgrades
Upgrades
- Loading branch information
Showing
23 changed files
with
335 additions
and
146 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,16 @@ | ||
# EditorConfig is awesome: http://EditorConfig.org | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 4 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[*.yml] | ||
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto eol=lf whitespace=tab-in-indent,blank-at-eol,tabwidth=4 |
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,42 @@ | ||
--- | ||
name: Tests | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
env: | ||
# see https://github.com/composer/composer/issues/9368#issuecomment-718112361 | ||
COMPOSER_ROOT_VERSION: "dev-master" | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: true | ||
matrix: | ||
laravel: [^6, ^7, ^8] | ||
php: [7.4, 8.0] | ||
|
||
name: PHP ${{ matrix.php }} / Laravel ${{ matrix.laravel }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
# required for "git tag" presence for changelog-linker git tags resolver; default is 1 | ||
# https://github.com/actions/checkout#fetch-all-tags | ||
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | ||
# see https://github.com/shivammathur/setup-php | ||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
coverage: none | ||
|
||
- uses: "ramsey/composer-install@v1" | ||
with: | ||
composer-options: ${{ matrix.composer-options }} | ||
|
||
- run: composer require "illuminate/support:${{ matrix.laravel }}" --no-interaction --no-update | ||
|
||
- run: vendor/bin/phpunit |
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,5 +1,6 @@ | ||
/vendor | ||
composer.phar | ||
composer.lock | ||
.DS_Store | ||
.idea | ||
.idea | ||
/.phpunit.result.cache | ||
/composer.lock | ||
/composer.phar | ||
/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,110 @@ | ||
<?php | ||
|
||
$config = new PhpCsFixer\Config(); | ||
|
||
return $config | ||
->setRiskyAllowed(true) | ||
->setRules( | ||
[ | ||
'@PSR12' => true, | ||
'psr_autoloading' => true, | ||
'align_multiline_comment' => true, | ||
'array_syntax' => [ | ||
'syntax' => 'short', | ||
], | ||
'binary_operator_spaces' => true, | ||
'blank_line_before_statement' => [ | ||
'statements' => [ | ||
'return', | ||
'throw', | ||
], | ||
], | ||
'cast_spaces' => [ | ||
'space' => 'single', | ||
], | ||
'concat_space' => [ | ||
'spacing' => 'one', | ||
], | ||
'method_chaining_indentation' => true, | ||
'function_typehint_space' => true, | ||
'multiline_comment_opening_closing' => true, | ||
'general_phpdoc_annotation_remove' => [ | ||
'annotations' => [ | ||
'author', | ||
'package', | ||
'subpackage', | ||
], | ||
], | ||
'include' => true, | ||
'linebreak_after_opening_tag' => true, | ||
'mb_str_functions' => true, | ||
'magic_method_casing' => true, | ||
'magic_constant_casing' => true, | ||
'class_attributes_separation' => [ | ||
'elements' => [ | ||
'const' => 'one', | ||
'method' => 'one', | ||
'property' => 'one', | ||
], | ||
], | ||
'modernize_types_casting' => true, | ||
'native_function_casing' => true, | ||
'no_blank_lines_after_phpdoc' => true, | ||
'no_empty_comment' => true, | ||
'no_empty_phpdoc' => true, | ||
'no_empty_statement' => true, | ||
'no_extra_blank_lines' => true, | ||
'no_mixed_echo_print' => [ | ||
'use' => 'echo', | ||
], | ||
'multiline_whitespace_before_semicolons' => [ | ||
'strategy' => 'no_multi_line', | ||
], | ||
'no_php4_constructor' => true, | ||
'no_short_bool_cast' => true, | ||
'no_trailing_comma_in_singleline_array' => true, | ||
'no_unused_imports' => true, | ||
'no_whitespace_before_comma_in_array' => true, | ||
'object_operator_without_whitespace' => true, | ||
'phpdoc_add_missing_param_annotation' => [ | ||
'only_untyped' => false, | ||
], | ||
'phpdoc_indent' => true, | ||
'general_phpdoc_tag_rename' => true, | ||
'phpdoc_no_alias_tag' => [ | ||
'replacements' => [ | ||
'type' => 'var', | ||
'link' => 'see', | ||
], | ||
], | ||
'phpdoc_no_empty_return' => true, | ||
'phpdoc_no_package' => true, | ||
'phpdoc_no_useless_inheritdoc' => true, | ||
'phpdoc_order' => true, | ||
'phpdoc_scalar' => true, | ||
'phpdoc_separation' => true, | ||
'phpdoc_trim' => true, | ||
'phpdoc_types' => true, | ||
'phpdoc_var_without_name' => true, | ||
'random_api_migration' => true, | ||
'single_line_comment_style' => [ | ||
'comment_types' => [ | ||
'asterisk', | ||
'hash', | ||
], | ||
], | ||
'single_quote' => false, | ||
'space_after_semicolon' => true, | ||
'standardize_not_equals' => true, | ||
'ternary_to_null_coalescing' => true, | ||
'trailing_comma_in_multiline' => [ | ||
'elements' => [ | ||
'arrays', | ||
], | ||
], | ||
'trim_array_spaces' => true, | ||
'unary_operator_spaces' => true, | ||
'yoda_style' => false, | ||
'phpdoc_summary' => false, | ||
] | ||
); |
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,15 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="Share"> | ||
<description></description> | ||
|
||
<rule ref="PSR12"> | ||
<exclude name="PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace"/> | ||
</rule> | ||
|
||
<rule ref="Generic.Files.LineLength"> | ||
<properties> | ||
<property name="lineLimit" value="120"/> | ||
<property name="absoluteLineLimit" value="120"/> | ||
</properties> | ||
</rule> | ||
</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
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
File renamed without changes.
This file was deleted.
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,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd" | ||
bootstrap="vendor/autoload.php" | ||
colors="true" | ||
> | ||
<testsuites> | ||
<testsuite name="Social Share Test Suite"> | ||
<directory suffix="Test.php">./tests/</directory> | ||
</testsuite> | ||
</testsuites> | ||
</phpunit> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.