Skip to content

Commit

Permalink
Fix disabled setting
Browse files Browse the repository at this point in the history
  • Loading branch information
nohponex committed Jan 6, 2016
1 parent 46c70c5 commit 0fc740f
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 9 deletions.
12 changes: 10 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
language: php
php:
- 5.6
- 7.0
install:
- composer install
script:
- composer self-update
- composer install --no-interaction --dev
before_script:
- mkdir -p build/
- mkdir -p build/logs
script:
- composer test
after_script:
- php vendor/bin/coveralls -v
- php vendor/bin/codacycoverage clover build/logs/clover.xml
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
]
},
"scripts": {
"doc": "apigen generate -s ./src -d ./doc --template-theme bootstrap --todo --tree --deprecated --no-source-code --title \"query-log doc\"",
"doc": "apigen generate -s ./src -d ./doc --template-theme bootstrap --todo --tree --deprecated --no-source-code --title \"query-log\"",
"test": [
"find src/ -name '*.php' -print0 | xargs -0 -L 1 php -l",
"find tests/ -name '*.php' -print0 | xargs -0 -L 1 php -l",
Expand Down
2 changes: 1 addition & 1 deletion src/QueryLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public function __construct($settings)
public function register($additionalParameters = null)
{
//Ignore registration if disabled setting is set to true
if (isset($this->setting->disabled) && $this->setting->disabled) {
if (isset($this->settings->disabled) && $this->settings->disabled) {
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/APP/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static function getSettings()
$settings = [
'debug' => true,
'database' => [
'adapter' => 'mysql',
'adapter' => 'Phramework\\Database\\MySQL',
'host' => '',
'username' => '',
'password' => '',
Expand Down
4 changes: 2 additions & 2 deletions tests/src/QueryLogPostgreSQLTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
use \Phramework\Extensions\StepCallback;

/**
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache-2.0
* @author Xenofon Spafaridis <nohponex@gmail.com>
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache-2.0
* @author Xenofon Spafaridis <nohponex@gmail.com>
*/
class QueryLogPostgreSQLTest extends \PHPUnit_Framework_TestCase
{
Expand Down
4 changes: 2 additions & 2 deletions tests/src/QueryLogTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
use \Phramework\Extensions\StepCallback;

/**
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache-2.0
* @author Xenofon Spafaridis <nohponex@gmail.com>
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache-2.0
* @author Xenofon Spafaridis <nohponex@gmail.com>
*/
class QueryLogTest extends \PHPUnit_Framework_TestCase
{
Expand Down

0 comments on commit 0fc740f

Please sign in to comment.