Skip to content

Commit dee089d

Browse files
authored
Merge pull request #189 from pdsinterop/fix/php-linting
Fix/php linting
2 parents da418ce + f63d86b commit dee089d

File tree

9 files changed

+267
-609
lines changed

9 files changed

+267
-609
lines changed

.github/workflows/php.yml

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -63,35 +63,6 @@ jobs:
6363
--no-scripts
6464
--strict
6565
working-directory: "solid"
66-
# 02.test.php.test-unit.yml
67-
php-unittest:
68-
name: PHP Unit Tests
69-
needs:
70-
- lint-php-syntax
71-
- validate-dependencies-file
72-
runs-on: ubuntu-24.04
73-
strategy:
74-
fail-fast: false
75-
matrix:
76-
php:
77-
- '8.0' # from 2020-11 to 2022-11 (2023-11)
78-
- '8.1' # from 2021-11 to 2023-11 (2025-12)
79-
- '8.2' # from 2022-12 to 2024-12 (2026-12)
80-
- '8.3' # from 2023-11 to 2025-12 (2027-12)
81-
steps:
82-
- uses: actions/checkout@v4
83-
- uses: shivammathur/setup-php@v2
84-
with:
85-
coverage: xdebug
86-
ini-values: error_reporting=E_ALL, display_errors=On
87-
php-version: ${{ matrix.php }}
88-
- name: Install and Cache Composer dependencies
89-
uses: "ramsey/composer-install@v2"
90-
with:
91-
working-directory: "solid"
92-
env:
93-
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.GITHUB_TOKEN }}"}}'
94-
- run: bin/phpunit --configuration .config/phpunit.xml.dist
9566
# 03.quality.php.scan.dependencies-vulnerabilities.yml
9667
scan-dependencies-vulnerabilities:
9768
name: Scan Dependencies Vulnerabilities
@@ -134,7 +105,6 @@ jobs:
134105
fail-fast: false
135106
matrix:
136107
php:
137-
- '8.0' # from 2020-11 to 2022-11 (2023-11)
138108
- '8.1' # from 2021-11 to 2023-11 (2025-12)
139109
- '8.2' # from 2022-12 to 2024-12 (2026-12)
140110
- '8.3' # from 2023-11 to 2025-12 (2027-12)

solid/appinfo/routes.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
<?php
2-
3-
use OC\AllConfig;
4-
use OC\AppConfig;
5-
use OCA\Solid\AppInfo\Application;
6-
use OCP\IConfig;
7-
use OCP\IRequest;
8-
92
/**
103
* Create your routes in here. The name is the lowercase name of the controller
114
* without the controller part, the stuff after the hash is the method.
@@ -15,6 +8,12 @@
158
* it's instantiated in there
169
*/
1710

11+
use OC\AllConfig;
12+
use OC\AppConfig;
13+
use OCA\Solid\AppInfo\Application;
14+
use OCP\IConfig;
15+
use OCP\IRequest;
16+
1817
$routes = [
1918
['name' => 'page#approval', 'url' => '/sharing/{clientId}', 'verb' => 'GET'],
2019
['name' => 'page#handleRevoke', 'url' => '/revoke/{clientId}', 'verb' => 'DELETE'],

solid/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"require-dev": {
3939
"doctrine/dbal": "*",
4040
"nextcloud/server": "*",
41-
"phpunit/phpunit": "^8 || ^9"
41+
"phpunit/phpunit": "^8.5.32"
4242
},
4343
"repositories": [
4444
{

0 commit comments

Comments
 (0)