refactoring

This commit is contained in:
Roland Gruber 2022-04-20 19:11:15 +02:00
parent 2fc25a8d58
commit 64b2caf28e
4 changed files with 11 additions and 8 deletions

View file

@ -29,12 +29,15 @@ jobs:
- name: Install dependencies
run: composer install --prefer-dist --no-progress
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
# Docs: https://getcomposer.org/doc/articles/scripts.md
- name: Run test suite
run: composer run-script test
- name: Install CodeSpell
run: pip install --user codespell
- name: CodeSpell
run: ./codespell
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:

3
codespell.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
~/.local/bin/codespell --skip '*3rdParty*,*/ckeditor/*,*/po/*,*/locale/*,tmp,sess,config,graphics,*/style/images/*,*/style/*.gif,*/style/*.png,*/docs/manual-onePage/*,*/docs/manual-sources/images/*,*/templates/lib/*jquery*,*/templates/lib/*flatpickr*,*~,*/docs/phpdoc/*,*/docs/manual/*,*/docs/devel/images/*,*/docs/manual-pdf/*,*.sh,*/cropper.js,*/lib/extra/*,lam/.phpdoc' --ignore-words-list "tim,te,pres,files'" lam

View file

@ -1,3 +0,0 @@
#!/bin/bash
~/.local/bin/codespell --skip '*3rdParty*,*/ckeditor/*,*/po/*,*/locale/*,tmp,sess,config,graphics,*/style/images/*,*/style/*.gif,*/style/*.png,*/docs/manual-onePage/*,*/docs/manual-sources/images/*,*/templates/lib/*jquery*,*~,*/docs/phpdoc/*,*/docs/manual/*,*/docs/devel/images/*,*/docs/manual-pdf/*,*.sh,*/cropper.js,*/lib/extra/*' --ignore-words-list "tim,te,pres,files'"

View file

@ -73,8 +73,8 @@ $tableTitles = array('text 1', 'text 2', 'text 3', 'text 4', 'text 5');
$tableData = array();
for ($rowNumber = 0; $rowNumber < 10; $rowNumber++) {
$tableRow = array();
for ($colum = 0; $colum < 5; $colum++) {
$tableRow[] = new htmlOutputText('value' . $colum);
for ($column = 0; $column < 5; $column++) {
$tableRow[] = new htmlOutputText('value' . $column);
}
$tableData[] = $tableRow;
}