diff --git a/.travis.yml b/.travis.yml index d1354df9..ad573168 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,7 @@ before_install: - psql -c 'CREATE DATABASE dibi_test' -U postgres install: - - travis_retry composer install --no-interaction --prefer-dist + - travis_retry composer install --no-progress --prefer-dist script: - vendor/bin/tester tests -s @@ -29,9 +29,9 @@ jobs: php: 7.1 install: # Install Nette Code Checker - - travis_retry composer create-project nette/code-checker temp/code-checker ~2 --no-interaction + - travis_retry composer create-project nette/code-checker temp/code-checker ~2 --no-progress # Install Nette Coding Standard - - travis_retry composer create-project nette/coding-standard temp/coding-standard --no-interaction + - travis_retry composer create-project nette/coding-standard temp/coding-standard --no-progress script: - php temp/code-checker/src/code-checker.php --short-arrays --strict-types - php temp/coding-standard/ecs check src tests examples --config temp/coding-standard/coding-standard-php71.neon diff --git a/examples/connecting-to-databases.php b/examples/connecting-to-databases.php index 4edd9f04..c9484548 100644 --- a/examples/connecting-to-databases.php +++ b/examples/connecting-to-databases.php @@ -77,7 +77,7 @@ try { 'driver' => 'odbc', 'username' => 'root', 'password' => '***', - 'dsn' => 'Driver={Microsoft Access Driver (*.mdb)};Dbq='.__DIR__.'/data/sample.mdb', + 'dsn' => 'Driver={Microsoft Access Driver (*.mdb)};Dbq=' . __DIR__ . '/data/sample.mdb', ]); echo 'OK'; } catch (Dibi\Exception $e) { diff --git a/examples/using-substitutions.php b/examples/using-substitutions.php index b6b741fc..75fc1bbb 100644 --- a/examples/using-substitutions.php +++ b/examples/using-substitutions.php @@ -41,6 +41,7 @@ function substFallBack($expr) } } + // define callback dibi::getSubstitutes()->setCallback('substFallBack');