Skip to content

Commit

Permalink
update php-cs-fixer to the latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
dpakach committed Jun 14, 2021
1 parent 565761d commit 978cfbe
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ nbproject
/build/
/l10n/.transifexrc
.php_cs.cache
.php-cs-fixer.cache

# Composer
vendor/
Expand Down
1 change: 0 additions & 1 deletion .php-cs-fixer.cache

This file was deleted.

File renamed without changes.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ test-php-unit-dbg: vendor/bin/phpunit
.PHONY: test-php-style
test-php-style: ## Run php-cs-fixer and check owncloud code-style
test-php-style: vendor-bin/owncloud-codestyle/vendor
$(PHP_CS_FIXER) fix -v --diff --diff-format udiff --allow-risky yes --dry-run
$(PHP_CS_FIXER) fix -v --diff --allow-risky yes --dry-run

.PHONY: test-php-style-fix
test-php-style-fix: ## Run php-cs-fixer and fix code style issues
test-php-style-fix: vendor-bin/owncloud-codestyle/vendor
$(PHP_CS_FIXER) fix -v --diff --diff-format udiff --allow-risky yes
$(PHP_CS_FIXER) fix -v --diff --allow-risky yes

.PHONY: test-php-phan
test-php-phan: ## Run phan
Expand Down
2 changes: 1 addition & 1 deletion lib/Controller/PageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

class PageController extends Controller {
/** @var int */
const PAGE_LIMIT = 5;
public const PAGE_LIMIT = 5;

/** @var INotificationManager */
protected $notificationManager;
Expand Down
4 changes: 2 additions & 2 deletions lib/Notification/Notifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ public function prepare(INotification $notification, $languageCode) {
}

$notification->setParsedSubject(
(string) $l->t('%1$s announced “%2$s”', $params)
);
(string) $l->t('%1$s announced “%2$s”', $params)
);

return $notification;

Expand Down
6 changes: 3 additions & 3 deletions vendor-bin/owncloud-codestyle/composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"require": {
"owncloud/coding-standard": "^2.0"
}
"require": {
"owncloud/coding-standard": "^3.0"
}
}

0 comments on commit 978cfbe

Please sign in to comment.