Skip to content

Commit 79e84f0

Browse files
Merge pull request #338 from nextcloud/techdept/formatting
Format code
2 parents 00c9ac4 + b6a2707 commit 79e84f0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+2193
-1027
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ vendor/
88
/nbproject/
99

1010
/tests/clover.*
11+
12+
.php_cs.cache

.php_cs.dist

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
require_once './vendor/autoload.php';
6+
7+
use Nextcloud\CodingStandard\Config;
8+
9+
$config = new Config();
10+
$config
11+
->getFinder()
12+
->notPath('build')
13+
->notPath('l10n')
14+
->notPath('src')
15+
->notPath('vendor')
16+
->in(__DIR__);
17+
return $config;

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"irazasyed/telegram-bot-sdk": "^3.0"
55
},
66
"require-dev": {
7-
"christophwurst/nextcloud_testing": "^0.10"
7+
"christophwurst/nextcloud_testing": "^0.10",
8+
"nextcloud/coding-standard": "^0.3.0"
89
},
910
"config": {
1011
"optimize-autoloader": true,
@@ -14,6 +15,8 @@
1415
}
1516
},
1617
"scripts": {
18+
"cs:check": "php-cs-fixer fix --dry-run --diff",
19+
"cs:fix": "php-cs-fixer fix",
1720
"lint": "find . -name \\*.php -not -path './vendor/*' -exec php -l \"{}\" \\;",
1821
"test": "phpunit -c tests/phpunit.xml",
1922
"test:unit": "phpunit -c tests/phpunit.xml tests/Unit",

0 commit comments

Comments
 (0)