File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ notifications:
55
66php :
77 - 7.0
8+ - 5.6
89
910env :
1011 global :
Original file line number Diff line number Diff line change @@ -23,17 +23,18 @@ protected function configure()
2323 protected function execute (InputInterface $ input , OutputInterface $ output )
2424 {
2525 if (! file_exists (FILES_DIR )) {
26- $ output ->writeln ('<error>Directory not found: ' . FILES_DIR . '</error> ' );
26+ $ output ->writeln ('<error>Directory not found: ' . FILES_DIR . '</error> ' );
2727 } else {
2828 $ files = new RecursiveIteratorIterator (new RecursiveDirectoryIterator (FILES_DIR ), RecursiveIteratorIterator::SELF_FIRST );
2929 $ storage = new DatabaseObjectStorage ($ this ->container ['db ' ]);;
3030
3131 foreach ($ files as $ file ) {
32- if ($ file ->getFilename (){0 } !== '. ' && ! $ file ->isDir ()) {
32+ $ fileName = $ file ->getFilename ();
33+ if ($ fileName {0 } !== '. ' && ! $ file ->isDir ()) {
3334 $ key = substr ($ file ->getRealPath (), strlen (FILES_DIR ) + 1 );
3435
3536 if (! $ this ->fileExists ($ storage , $ key )) {
36- $ output ->writeln ('<info>Migrating ' . $ file -> getFilename (). '</info> ' );
37+ $ output ->writeln ('<info>Migrating ' . $ fileName . '</info> ' );
3738 $ blob = $ this ->readFile ($ file ->getRealPath ());
3839 $ storage ->put ($ key , $ blob );
3940 }
Original file line number Diff line number Diff line change 1414Requirements
1515------------
1616
17- - PHP >= 7.0
17+ - PHP >= 5.6
1818- Kanboard >= 1.2.1
1919- Postgres is recommended
2020- Mysql or Sqlite
You can’t perform that action at this time.
0 commit comments