Skip to content

Commit b0004cd

Browse files
committed
Upgrade to latest PHP_CodeSniffer
1 parent c04b921 commit b0004cd

25 files changed

+484
-511
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
php: 7.1
3030
script:
3131
- ./vendor/bin/php-cs-fixer fix --diff --verbose --dry-run
32-
- ./vendor/bin/phpcs --report-width=200 --report-summary --report-full samples/ src/ tests/ --ignore=samples/Header.php --standard=PSR2 -n
32+
- ./vendor/bin/phpcs --report-width=200 samples/ src/ tests/ --ignore=samples/Header.php --standard=PSR2 -n
3333

3434
- stage: Coverage
3535
php: 7.1

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"scripts": {
2626
"check": [
2727
"php-cs-fixer fix --ansi --dry-run --diff",
28-
"phpcs --report-width=200 --report-summary --report-full samples/ src/ tests/ --ignore=samples/Header.php --standard=PSR2 -n",
28+
"phpcs --report-width=200 samples/ src/ tests/ --ignore=samples/Header.php --standard=PSR2 -n",
2929
"phpunit --color=always"
3030
],
3131
"fix": [
@@ -51,12 +51,12 @@
5151
},
5252
"require-dev": {
5353
"tecnickcom/tcpdf": "^6.2",
54-
"squizlabs/php_codesniffer": "^2.7",
5554
"phpunit/phpunit": "^5.7",
5655
"dompdf/dompdf": "^0.8.0",
5756
"mpdf/mpdf": "^7.0.0",
5857
"jpgraph/jpgraph": "^4.0",
59-
"friendsofphp/php-cs-fixer": "@stable"
58+
"friendsofphp/php-cs-fixer": "@stable",
59+
"squizlabs/php_codesniffer": "^3.3"
6060
},
6161
"suggest": {
6262
"mpdf/mpdf": "Option for rendering PDF with PDF Writer",

composer.lock

Lines changed: 12 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/Autofilter/10_Autofilter_selection_1.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
)
126126
->setRuleType(Rule::AUTOFILTER_RULETYPE_CUSTOMFILTER);
127127
// Filter the Date column on a filter value of the first day of every period of the current year
128-
// We us a dateGroup ruletype for this, although it is still a standard filter
128+
// We us a dateGroup ruletype for this, although it is still a standard filter
129129
foreach ($periods as $period) {
130130
$endDate = date('t', mktime(0, 0, 0, $period, 1, $currentYear));
131131

samples/Autofilter/10_Autofilter_selection_2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
$autoFilter = $spreadsheet->getActiveSheet()->getAutoFilter();
109109
$helper->log('Set active filters');
110110
// Filter the Country column on a filter value of Germany
111-
// As it's just a simple value filter, we can use FILTERTYPE_FILTER
111+
// As it's just a simple value filter, we can use FILTERTYPE_FILTER
112112
$autoFilter->getColumn('C')
113113
->setFilterType(Column::AUTOFILTER_FILTERTYPE_FILTER)
114114
->createRule()

samples/Autofilter/10_Autofilter_selection_display.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
)
126126
->setRuleType(Rule::AUTOFILTER_RULETYPE_CUSTOMFILTER);
127127
// Filter the Date column on a filter value of the first day of every period of the current year
128-
// We us a dateGroup ruletype for this, although it is still a standard filter
128+
// We us a dateGroup ruletype for this, although it is still a standard filter
129129
foreach ($periods as $period) {
130130
$endDate = date('t', mktime(0, 0, 0, $period, 1, $currentYear));
131131

samples/Basic/08_Conditional_formatting.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
$conditionalStyles[] = $conditional3;
8585
$spreadsheet->getActiveSheet()->getStyle('B2')->setConditionalStyles($conditionalStyles);
8686

87-
// duplicate the conditional styles across a range of cells
87+
// duplicate the conditional styles across a range of cells
8888
$helper->log('Duplicate the conditional formatting across a range of cells');
8989
$spreadsheet->getActiveSheet()->duplicateConditionalStyle(
9090
$spreadsheet->getActiveSheet()->getStyle('B2')->getConditionalStyles(),

samples/Basic/08_Conditional_formatting_2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
$conditionalStyles[] = $conditional3;
6060
$spreadsheet->getActiveSheet()->getStyle('A1')->setConditionalStyles($conditionalStyles);
6161

62-
// duplicate the conditional styles across a range of cells
62+
// duplicate the conditional styles across a range of cells
6363
$helper->log('Duplicate the conditional formatting across a range of cells');
6464
$spreadsheet->getActiveSheet()->duplicateConditionalStyle(
6565
$spreadsheet->getActiveSheet()->getStyle('A1')->getConditionalStyles(),

samples/Chart/32_Chart_read_write_HTML.php

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

66
require __DIR__ . '/../Header.php';
77

8-
// Change these values to select the Rendering library that you wish to use
8+
// Change these values to select the Rendering library that you wish to use
99
Settings::setChartRenderer(\PhpOffice\PhpSpreadsheet\Chart\Renderer\JpGraph::class);
1010

1111
$inputFileType = 'Xlsx';

samples/Chart/32_Chart_read_write_PDF.php

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

88
IOFactory::registerWriter('Pdf', \PhpOffice\PhpSpreadsheet\Writer\Pdf\Mpdf::class);
99

10-
// Change these values to select the Rendering library that you wish to use
10+
// Change these values to select the Rendering library that you wish to use
1111
Settings::setChartRenderer(\PhpOffice\PhpSpreadsheet\Chart\Renderer\JpGraph::class);
1212

1313
$inputFileType = 'Xlsx';

0 commit comments

Comments
 (0)