Skip to content

Commit 03a7576

Browse files
authored
Run PHPMND against codebase (#144)
1 parent d71cf1c commit 03a7576

File tree

2 files changed

+53
-1
lines changed

2 files changed

+53
-1
lines changed

.github/workflows/autoreview.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# yamllint disable rule:line-length
2+
# yamllint disable rule:braces
3+
4+
name: Autoreview
5+
6+
on:
7+
pull_request:
8+
push:
9+
branches:
10+
- master
11+
12+
jobs:
13+
tests:
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
php-version: ['7.4']
19+
20+
name: Autoreview on PHP ${{ matrix.php-version }}
21+
22+
steps:
23+
- name: Checkout code
24+
uses: actions/checkout@v2
25+
26+
- name: Setup PHP
27+
uses: shivammathur/setup-php@v2
28+
with:
29+
php-version: ${{ matrix.php-version }}
30+
tools: composer:v2
31+
32+
- name: Get composer cache directory
33+
id: composer-cache
34+
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
35+
36+
- name: Cache dependencies
37+
uses: actions/cache@v2
38+
with:
39+
path: ${{ steps.composer-cache.outputs.dir }}
40+
key: composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('composer.*') }}
41+
restore-keys: |
42+
composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('composer.*') }}-
43+
composer-${{ runner.os }}-${{ matrix.php-version }}-
44+
composer-${{ runner.os }}-
45+
composer-
46+
47+
- name: Install dependencies
48+
run: |
49+
composer install --no-interaction --prefer-dist --no-progress
50+
51+
- name: Run PHPMND
52+
run: bin/phpmnd src --extensions=all

src/Printer/Console.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
class Console implements Printer
1414
{
15-
const DEFAULT_LINE_LENGTH = 80;
15+
private const DEFAULT_LINE_LENGTH = 80;
1616

1717
public function printData(OutputInterface $output, FileReportList $fileReportList, HintList $hintList): void
1818
{

0 commit comments

Comments
 (0)