Skip to content

Commit b62ec7c

Browse files
committed
fix linting
1 parent f76f7d1 commit b62ec7c

File tree

7 files changed

+19
-430
lines changed

7 files changed

+19
-430
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ jobs:
3030
composer install
3131
3232
- name: Linting the code
33-
run: npm run lint
33+
run: |
34+
phpcs -i
35+
phpcs --config-show
36+
npm run lint
3437
continue-on-error: true
3538

3639
- name: Running the tests

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"dealerdirect/phpcodesniffer-composer-installer": true
3838
},
3939
"platform": {
40-
"php": "7.4.33"
40+
"php": "7.3"
4141
}
4242
},
4343
"scripts": {
@@ -55,4 +55,4 @@
5555
"WCPOS\\WooCommercePOS\\Tests\\": "tests/includes/"
5656
}
5757
}
58-
}
58+
}

includes/Admin.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,17 @@ public function __construct() {
2020
add_action( 'current_screen', array( $this, 'conditional_init' ) );
2121
}
2222

23+
/**
24+
* Load admin subclasses.
25+
*/
26+
private function init(): void {
27+
new Admin\Notices();
28+
new Admin\Menu();
29+
new Admin\Settings();
30+
// new Admin\Status();
31+
// new Admin\Gateways();
32+
}
33+
2334
/**
2435
* Conditionally load subclasses.
2536
*
@@ -46,15 +57,4 @@ public function conditional_init( $current_screen ): void {
4657
new Admin\Plugins();
4758
}
4859
}
49-
50-
/**
51-
* Load admin subclasses.
52-
*/
53-
private function init(): void {
54-
new Admin\Notices();
55-
new Admin\Menu();
56-
new Admin\Settings();
57-
// new Admin\Status();
58-
// new Admin\Gateways();
59-
}
6060
}

includes/Admin/Products.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
/**
44
* POS Product Admin Class
55
* - pos only products.
6+
* - barcode field.
67
*
78
* @author Paul Kilmurray <[email protected]>
89
*

includes/Admin/Products/Barcode.php

Lines changed: 0 additions & 91 deletions
This file was deleted.

0 commit comments

Comments
 (0)