Skip to content

Commit 8707093

Browse files
committed
[Cleanup] Fix indentation
1 parent 4c90fc2 commit 8707093

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

composer.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
{
22
"name": "ph-7/lifyzer-data-parser",
33
"description": "Simple script that parses data from open source databases to the standard Lifyzer DB structure",
4-
"keywords": ["data", "food", "drink", "app", "healthy", "parser", "csv"],
4+
"keywords": [
5+
"data",
6+
"food",
7+
"drink",
8+
"app",
9+
"healthy",
10+
"parser",
11+
"csv"
12+
],
513
"type": "library",
614
"homepage": "http://ph7.me",
715
"license": "GPL-3.0-or-later",

src/Parser/CsvFile.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ public function __construct(string $filename)
3232

3333
if ($this->isInvalidExtension() || $this->isTooShortFilename()) {
3434
$exceptionCode = $this->isInvalidExtension() ? InvalidFileException::WRONG_EXTENSION : InvalidFileException::TOO_SHORT;
35-
throw new InvalidFileException('File type or file length is invalid', $exceptionCode);
35+
36+
throw new InvalidFileException(
37+
'File type or file length is invalid',
38+
$exceptionCode
39+
);
3640
}
3741
}
3842

0 commit comments

Comments
 (0)