TYPO3CMS
9.5
|
Public Member Functions | |
setFix (bool $fix) | |
setFixAll (bool $fixAll) | |
int | execute () |
Private Member Functions | |
Symfony Component Finder Finder | findCsvFixtures () |
string | validateCsvFile (string $csvFixture) |
bool | fixCsvFile (string $csvFixture) |
getRelativePath (string $fullPath) | |
string | formatOutputString (string $filename) |
Private Attributes | |
bool | $fix = false |
bool | $fixAll = false |
Core integrity test script:
Find all CSV files in fixtures and make sure they have the correct column count across all lines in them and fix them if –fix argument is given.
Definition at line 31 of file checkIntegrityCsvFixtures.php.
int checkIntegrityCsvFixtures::execute | ( | ) |
Executes the CGL check. The return value is used directly in the ext() call outside this class.
Definition at line 57 of file checkIntegrityCsvFixtures.php.
References $output, findCsvFixtures(), fixCsvFile(), formatOutputString(), getRelativePath(), and validateCsvFile().
|
private |
Finds all CSV fixtures in TYPO3s core
Definition at line 99 of file checkIntegrityCsvFixtures.php.
References $finder.
Referenced by execute().
|
private |
Fix a single CSV file.
string | $csvFixture |
Definition at line 145 of file checkIntegrityCsvFixtures.php.
Referenced by execute().
|
private |
Makes the output on CLI a bit more readable
string | $filename |
Definition at line 218 of file checkIntegrityCsvFixtures.php.
Referenced by execute().
|
private |
Definition at line 206 of file checkIntegrityCsvFixtures.php.
Referenced by execute().
checkIntegrityCsvFixtures::setFix | ( | bool | $fix | ) |
Definition at line 41 of file checkIntegrityCsvFixtures.php.
References $fix.
checkIntegrityCsvFixtures::setFixAll | ( | bool | $fixAll | ) |
Definition at line 46 of file checkIntegrityCsvFixtures.php.
References $fixAll.
|
private |
Checks if a CSV uses the same amount of columns across all lines in that file
string | $csvFixture |
Definition at line 116 of file checkIntegrityCsvFixtures.php.
Referenced by execute().
|
private |
True to fix broken files
Definition at line 35 of file checkIntegrityCsvFixtures.php.
Referenced by setFix().
|
private |
True to drop superfluous comma on all CSV fixture files
Definition at line 39 of file checkIntegrityCsvFixtures.php.
Referenced by setFixAll().