mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-09-01 08:17:00 +02:00
Fixed coding style.
This commit is contained in:
parent
e9493e52ec
commit
f5d685dfd4
71 changed files with 619 additions and 531 deletions
|
@ -1,4 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* This file is part of Part-DB (https://github.com/Part-DB/Part-DB-symfony).
|
||||
*
|
||||
|
@ -30,7 +33,7 @@ class RangeParserTest extends WebTestCase
|
|||
*/
|
||||
protected $service;
|
||||
|
||||
public function setUp(): void
|
||||
protected function setUp(): void
|
||||
{
|
||||
self::bootKernel();
|
||||
$this->service = self::$container->get(RangeParser::class);
|
||||
|
@ -42,19 +45,19 @@ class RangeParserTest extends WebTestCase
|
|||
[[], ''],
|
||||
[[], ' '],
|
||||
[[], "\t"],
|
||||
[[1], "1"],
|
||||
[[1, 2, 3], "1,2, 3"],
|
||||
[[1, 2, 3], "1-3"],
|
||||
[[1, 2, 3, 4], "1- 3, 4"],
|
||||
[[1, 2, 3, 4], "1, 2,3 - 4"],
|
||||
[[1, 2, 3], " 1; 2, 3"],
|
||||
[[-1, 0, 1, 2], "-1; 0; 1, 2"],
|
||||
[[4,3, 1, 2], "4,3, 1;2"],
|
||||
[[1, 2, 3, 4], "2-1, 3-4"],
|
||||
[[1], "1-1"],
|
||||
[[-3, -2, -1], "-3--1"],
|
||||
[[1, 2, 3], "1,,2;;,,3"],
|
||||
[[100, 1000, 1], "100, 1000, 1"],
|
||||
[[1], '1'],
|
||||
[[1, 2, 3], '1,2, 3'],
|
||||
[[1, 2, 3], '1-3'],
|
||||
[[1, 2, 3, 4], '1- 3, 4'],
|
||||
[[1, 2, 3, 4], '1, 2,3 - 4'],
|
||||
[[1, 2, 3], ' 1; 2, 3'],
|
||||
[[-1, 0, 1, 2], '-1; 0; 1, 2'],
|
||||
[[4, 3, 1, 2], '4,3, 1;2'],
|
||||
[[1, 2, 3, 4], '2-1, 3-4'],
|
||||
[[1], '1-1'],
|
||||
[[-3, -2, -1], '-3--1'],
|
||||
[[1, 2, 3], '1,,2;;,,3'],
|
||||
[[100, 1000, 1], '100, 1000, 1'],
|
||||
[[], 'test', true],
|
||||
[[], '1-2-3-4,5', true],
|
||||
[[], '1 2 3, 455, 23', true],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue