More consistent formatting

This commit is contained in:
Fonata
2021-04-02 20:30:25 +02:00
committed by Fonata
parent 2a154869b4
commit fba67b84ff
6 changed files with 4 additions and 9 deletions

View File

@@ -19,7 +19,7 @@ trait DatatypeTrait {
* Check data type for one column.
* Check for most commonly data type for one column.
*
* @param array $datatypes
* @param array $datatypes
*
* @return string|false
*/
@@ -36,7 +36,6 @@ trait DatatypeTrait {
reset($typesFreq);
return key($typesFreq);
}
/**

View File

@@ -1,4 +1,5 @@
<?php
chdir(__DIR__ . '/..');
if (!file_exists('vendor/autoload.php')) {
`composer dump-autoload`;

View File

@@ -98,4 +98,3 @@ class ExampleStream {
return false;
}
}

View File

@@ -23,7 +23,6 @@ class OldRequireTest extends TestCase {
* @runInSeparateProcess so that disabled autoloading has an effect
*/
public function testOldLibWithoutComposer() {
file_put_contents('__eval.php', '<?php require "parsecsv.lib.php"; new \ParseCsv\Csv;');
exec("php __eval.php", $output, $return_var);
unlink('__eval.php');
@@ -35,7 +34,6 @@ class OldRequireTest extends TestCase {
* @runInSeparateProcess so that disabled autoloading has an effect
*/
public function testOldLibWithOldClassName() {
file_put_contents('__eval.php', '<?php require "parsecsv.lib.php"; new parseCSV;');
exec("php __eval.php", $output, $return_var);
unlink('__eval.php');

View File

@@ -40,7 +40,7 @@ class ParseTest extends TestCase {
$row = array_pop($this->csv->data);
$expected_data = array_fill(0, 500, $content);
$expected_data [] = '';
$expected_data[] = '';
$this->assertEquals($expected_data, $row);
}
@@ -273,8 +273,7 @@ class ParseTest extends TestCase {
/**
* @return array
*/
public function autoQuotesDataProvider(): array
{
public function autoQuotesDataProvider(): array {
return array(
array('auto-double-enclosure.csv', '"'),
array('auto-single-enclosure.csv', "'"),

View File

@@ -48,7 +48,6 @@ class UnparseTest extends Testcase {
$this->csv->auto(__DIR__ . '/fixtures/auto-double-enclosure.csv');
$expected = "column1,column2\rvalue1,value2\rvalue3,value4\r";
$this->unparseAndCompare($expected);
}
public function testUnparseRenameFields() {