Skip to content

Commit c3890f6

Browse files
committed
Fix CS
1 parent 2a57079 commit c3890f6

File tree

4 files changed

+27
-27
lines changed

4 files changed

+27
-27
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@
7171
"@cs-check",
7272
"@test"
7373
],
74-
"cs-check": "phpcs -p --standard=vendor/cakephp/cakephp-codesniffer/CakePHP src/ tests/",
75-
"cs-fix": "phpcbf --standard=vendor/cakephp/cakephp-codesniffer/CakePHP src/ tests/",
74+
"cs-check": "phpcs -p -v --standard=vendor/cakephp/cakephp-codesniffer/CakePHP src/ tests/",
75+
"cs-fix": "phpcbf -p --standard=vendor/cakephp/cakephp-codesniffer/CakePHP src/ tests/",
7676
"test": "phpunit",
7777
"test-coverage": "phpunit --coverage-clover=clover.xml"
7878
}

src/View/CsvView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class CsvView extends View
132132
'_setSeparator',
133133
'_csvEncoding',
134134
'_dataEncoding',
135-
'_extension'
135+
'_extension',
136136
];
137137

138138
/**

tests/TestCase/View/CsvViewTest.php

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -249,21 +249,21 @@ public function testRenderViaExtract()
249249
[
250250
'User' => [
251251
'username' => 'jose',
252-
'created' => new Time('2010-01-05')
252+
'created' => new Time('2010-01-05'),
253253
],
254254
'Item' => [
255255
'name' => 'beach',
256-
]
256+
],
257257
],
258258
[
259259
'User' => [
260260
'username' => 'drew',
261-
'created' => null
261+
'created' => null,
262262
],
263263
'Item' => [
264264
'name' => 'ball',
265-
]
266-
]
265+
],
266+
],
267267
];
268268
$_extract = ['User.username', 'User.created', 'Item.name'];
269269
$this->view->set(['user' => $data, '_extract' => $_extract]);
@@ -291,18 +291,18 @@ public function testRenderViaExtractOptionalField()
291291
],
292292
'Item' => [
293293
'type' => 'beach',
294-
]
294+
],
295295
],
296296
[
297297
'User' => [
298298
'id' => 2,
299-
'username' => 'drew'
299+
'username' => 'drew',
300300
],
301301
'Item' => [
302302
'name' => 'ball',
303-
'type' => 'fun'
304-
]
305-
]
303+
'type' => 'fun',
304+
],
305+
],
306306
];
307307
$_extract = [['User.id', '%d'], 'User.username', 'Item.name', 'Item.type'];
308308
$this->view->set(['user' => $data, '_extract' => $_extract]);
@@ -328,22 +328,22 @@ public function testRenderViaExtractWithCallable()
328328
'created' => new Time('2010-01-05'),
329329
'item' => [
330330
'name' => 'beach',
331-
]
331+
],
332332
],
333333
[
334334
'username' => 'drew',
335335
'created' => null,
336336
'item' => [
337337
'name' => 'ball',
338-
]
339-
]
338+
],
339+
],
340340
];
341341
$_extract = [
342342
'username',
343343
'created',
344344
function ($row) {
345345
return 'my-' . $row['item']['name'];
346-
}
346+
},
347347
];
348348
$this->view->set(['user' => $data, '_extract' => $_extract]);
349349
$this->view->set(['_serialize' => 'user']);
@@ -365,30 +365,30 @@ public function testRenderWithSpecialCharacters()
365365
$data = [
366366
[
367367
'User' => [
368-
'username' => 'José'
368+
'username' => 'José',
369369
],
370370
'Item' => [
371371
'type' => 'äöü',
372-
]
372+
],
373373
],
374374
[
375375
'User' => [
376-
'username' => 'Including,Comma'
376+
'username' => 'Including,Comma',
377377
],
378378
'Item' => [
379379
'name' => 'Containing"char',
380-
'type' => 'Containing\'char'
381-
]
380+
'type' => 'Containing\'char',
381+
],
382382
],
383383
[
384384
'User' => [
385-
'username' => 'Some Space'
385+
'username' => 'Some Space',
386386
],
387387
'Item' => [
388388
'name' => "A\nNewline",
389-
'type' => "A\tTab"
390-
]
391-
]
389+
'type' => "A\tTab",
390+
],
391+
],
392392
];
393393
$_extract = ['User.username', 'Item.name', 'Item.type'];
394394
$this->view->set(['user' => $data, '_extract' => $_extract]);

tests/bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
Configure::write('App', [
3232
'paths' => [
3333
'templates' => [dirname(__FILE__) . DS . 'test_app' . DS . 'TestApp' . DS . 'Template' . DS],
34-
]
34+
],
3535
]);

0 commit comments

Comments
 (0)