Skip to content

Commit

Permalink
(chore): update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
edwinsiebel committed Nov 10, 2020
1 parent 40afbcd commit f4f906d
Show file tree
Hide file tree
Showing 14 changed files with 879 additions and 395 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
# track this file .gitignore (i.e. do NOT ignore it)
!.gitignore

!.php_cs

# Eslint
!.eslintrc
!.eslintignore
Expand Down
34 changes: 34 additions & 0 deletions .php_cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php

$finder = Symfony\Component\Finder\Finder::create()
->notPath('wp-content')
->notPath('vendor')
->notPath('node_modules')
->in(__DIR__)
->in('./config')
->name('*.php')
->notName('*.blade.php');

return PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'array_syntax' => [
'syntax' => 'short',
],
'ordered_imports' => [
'sortAlgorithm' => 'alpha',
],
'no_unused_imports' => true,
'binary_operator_spaces' => [
'align_double_arrow' => true,
'align_equals' => true,
],
'full_opening_tag' => true,
'yoda_style' => [
'always_move_variable' => true,
'equal' => true,
'identical' => true,
'less_and_greater' => true,
],
])
->setFinder($finder);
9 changes: 0 additions & 9 deletions bitbucket-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,6 @@ pipelines:
script:
- composer install --no-interaction --no-progress --prefer-dist --ignore-platform-reqs
- ./vendor/bin/phpunit --testsuite "Unit Test Suite"
# - step:
# name: Deploy docs to production
# caches:
# - composer
# - vendor-directory
# deployment: production
# script:
# - apt-get update && apt-get install -y rsync
# - ssh [email protected] mkdir -p /data/www/docs.openwebconcept.nl/htdocs/plugins/openpub && rsync -avH ./docs/* -e "ssh" [email protected]:/data/www/docs.openwebconcept.nl/htdocs/plugins/openpub

definitions:
caches:
Expand Down
7 changes: 3 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"wpackagist-plugin/elasticpress": ">2.0"
},
"require-dev": {
"mockery/mockery": "1.0.*",
"mockery/mockery": "^1.0.0",
"phpunit/phpunit": "~8.0",
"10up/wp_mock": "dev-master",
"friendsofphp/php-cs-fixer": "^2.0",
Expand All @@ -38,9 +38,8 @@
}
},
"scripts": {
"cs": "./vendor/bin/php-cs-fixer fix",
"docs": "./vendor/bin/phpdoc -d ./src/Base -t ./docs",
"stan": "./vendor/bin/phpstan analyse src tests",
"format": "./vendor/bin/php-cs-fixer fix",
"phpstan": "./vendor/bin/phpstan analyse",
"test": [
"@unit"
],
Expand Down
Loading

0 comments on commit f4f906d

Please sign in to comment.