Browse Source

Cleaning code

Simon Vieille 2 years ago
parent
commit
37be0f572f

+ 1
- 1
src/Deblan/Csv/CsvParser.php View File

@@ -211,7 +211,7 @@ class CsvParser
211 211
 
212 212
         return $csv;
213 213
     }
214
-    
214
+
215 215
     /*
216 216
      * Parses a file.
217 217
      *

+ 0
- 7
src/Deblan/Csv/Exception/CsvException.php View File

@@ -1,7 +0,0 @@
1
-<?php
2
-
3
-namespace Deblan\Csv\Exception;
4
-
5
-class CsvException extends \Exception
6
-{
7
-}

+ 0
- 7
src/Deblan/Csv/Exception/CsvInvalidParameterException.php View File

@@ -1,7 +0,0 @@
1
-<?php
2
-
3
-namespace Deblan\Csv\Exception;
4
-
5
-class CsvInvalidParameterException extends CsvException
6
-{
7
-}

+ 0
- 7
src/Deblan/Csv/Exception/CsvParserException.php View File

@@ -1,7 +0,0 @@
1
-<?php
2
-
3
-namespace Deblan\Csv\Exception;
4
-
5
-class CsvParserException extends \Exception
6
-{
7
-}

+ 0
- 7
src/Deblan/Csv/Exception/CsvParserInvalidParameterException.php View File

@@ -1,7 +0,0 @@
1
-<?php
2
-
3
-namespace Deblan\Csv\Exception;
4
-
5
-class CsvParserInvalidParameterException extends CsvParserException
6
-{
7
-}

+ 3
- 3
tests/CsvTest.php View File

@@ -15,7 +15,7 @@ class CsvTest extends \PHPUnit_Framework_TestCase
15 15
         $this->assertEquals(';', $csv->getDelimiter());
16 16
         $csv->setDelimiter('#');
17 17
         $this->assertEquals('#', $csv->getDelimiter());
18
-        
18
+
19 19
         $csv = new Csv();
20 20
         $this->assertEquals('"', $csv->getEnclosure());
21 21
         $csv->setEnclosure('#');
@@ -98,7 +98,7 @@ class CsvTest extends \PHPUnit_Framework_TestCase
98 98
         $csv->addData(['foo', 'bar']);
99 99
         $csv->setDelimiter('#');
100 100
         $this->assertEquals('"a"#"b"'."\n".'"foo"#"bar"', $csv->render());
101
-        
101
+
102 102
         $filename = tempnam(sys_get_temp_dir(), 'csvtests');
103 103
 
104 104
         $csv = new Csv();
@@ -122,7 +122,7 @@ class CsvTest extends \PHPUnit_Framework_TestCase
122 122
         $csv->addData(['foo2', 'bar2']);
123 123
         $render = $csv->render($filename, FILE_APPEND);
124 124
         $this->assertEquals('"a";"b"'."\n".'"foo";"bar"'."\n".'"foo2";"bar2"', file_get_contents($filename));
125
-        
125
+
126 126
         unlink($filename);
127 127
     }
128 128
 

Loading…
Cancel
Save