Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ translationfiles

# Testing
/tests/.phpunit.result.cache

vendor/
.php-cs-fixer.cache
composer.phar
17 changes: 17 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

declare(strict_types=1);

require_once './vendor/autoload.php';

use Nextcloud\CodingStandard\Config;

$config = new Config();
$config
->getFinder()
->notPath('build')
->notPath('l10n')
->notPath('src')
->notPath('vendor')
->in(__DIR__);
return $config;
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ version+=master

all: dev-setup build-js-production

dev-setup: clean clean-dev npm-init
dev-setup: clean clean-dev composer-init npm-init

composer-init:
composer install

npm-init:
npm ci
Expand Down
6 changes: 3 additions & 3 deletions appinfo/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@

return [
'resources' => [
'terms' => [
'url' => '/terms'
],
'terms' => [
'url' => '/terms'
],
],
'routes' => [
[
Expand Down
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@
"geoip2/geoip2": "~2.0"
},
"require-dev": {
"nextcloud/coding-standard": "^1.0",
"phpunit/phpunit": "^9.5",
"roave/security-advisories": "dev-latest"
},
"scripts": {
"cs:fix": "php-cs-fixer fix",
"cs:check": "php-cs-fixer fix --dry-run --diff",
"lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l",
"test:unit": "vendor/bin/phpunit --color -c tests/phpunit.xml"
}
Expand Down
Loading