diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 220dc0f..fa94077 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -41,6 +41,7 @@ jobs: php-version: ${{ matrix.php-versions }} coverage: xdebug tools: phpunit:${{ matrix.phpunit-versions }} + extensions: pdo_sqlite - name: Get composer cache directory id: composer-cache diff --git a/composer.lock b/composer.lock index ae26143..3ad4c86 100644 --- a/composer.lock +++ b/composer.lock @@ -1,28 +1,31 @@ { "_readme": [ "This file locks the dependencies of your project to a known state", - "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], "content-hash": "0cf2724820e052705fe6eb637bcd3c2e", "packages": [ { "name": "aura/sql", - "version": "2.5.1", + "version": "2.6.0", "source": { "type": "git", "url": "https://github.com/auraphp/Aura.Sql.git", - "reference": "ffc692d2037c1e8d17103ad0a128189ba6f59b96" + "reference": "16206efbe5ba63603fe3b18ba54a4c5296cd5f3e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/auraphp/Aura.Sql/zipball/ffc692d2037c1e8d17103ad0a128189ba6f59b96", - "reference": "ffc692d2037c1e8d17103ad0a128189ba6f59b96", + "url": "https://api.github.com/repos/auraphp/Aura.Sql/zipball/16206efbe5ba63603fe3b18ba54a4c5296cd5f3e", + "reference": "16206efbe5ba63603fe3b18ba54a4c5296cd5f3e", "shasum": "" }, "require": { "php": ">=5.3.0" }, + "require-dev": { + "phpunit/phpunit": "~5.7 || ~4.8" + }, "type": "library", "extra": { "aura": { @@ -57,7 +60,7 @@ "sqlserver", "sqlsrv" ], - "time": "2016-10-03T20:31:07+00:00" + "time": "2018-08-15T13:33:56+00:00" }, { "name": "camspiers/json-pretty", @@ -97,22 +100,22 @@ }, { "name": "console-helpers/console-kit", - "version": "v0.1.1", + "version": "v0.1.2", "source": { "type": "git", "url": "https://github.com/console-helpers/console-kit.git", - "reference": "2a19a9ca2c2143afd7ba6c73dbb84878edb7cc32" + "reference": "4dccfec9b03b9f6c47df0e59b3b7cbf6b9ad94d0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/console-helpers/console-kit/zipball/2a19a9ca2c2143afd7ba6c73dbb84878edb7cc32", - "reference": "2a19a9ca2c2143afd7ba6c73dbb84878edb7cc32", + "url": "https://api.github.com/repos/console-helpers/console-kit/zipball/4dccfec9b03b9f6c47df0e59b3b7cbf6b9ad94d0", + "reference": "4dccfec9b03b9f6c47df0e59b3b7cbf6b9ad94d0", "shasum": "" }, "require": { "php": ">=5.4.0", "pimple/pimple": "^2.0|^3.0", - "stecman/symfony-console-completion": "^0.6.1", + "stecman/symfony-console-completion": "^0.11.0", "symfony/console": "^2.7" }, "require-dev": { @@ -132,7 +135,7 @@ }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD 3-Clause" + "BSD-3-Clause" ], "authors": [ { @@ -141,24 +144,24 @@ } ], "description": "Toolkit for creating command line applications using Symfony Console component", - "time": "2017-10-12T14:00:31+00:00" + "time": "2020-12-20T19:10:51+00:00" }, { "name": "console-helpers/db-migration", - "version": "v0.1.0", + "version": "v0.1.1", "source": { "type": "git", "url": "https://github.com/console-helpers/db-migration.git", - "reference": "8579ed3ea861bd4e49a4dbb4979fb1149cf2b370" + "reference": "cde8df8975bb9bb8ed641ce1558d3b070c764dac" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/console-helpers/db-migration/zipball/8579ed3ea861bd4e49a4dbb4979fb1149cf2b370", - "reference": "8579ed3ea861bd4e49a4dbb4979fb1149cf2b370", + "url": "https://api.github.com/repos/console-helpers/db-migration/zipball/cde8df8975bb9bb8ed641ce1558d3b070c764dac", + "reference": "cde8df8975bb9bb8ed641ce1558d3b070c764dac", "shasum": "" }, "require": { - "aura/sql": "^2.5", + "aura/sql": "^2.5 | ^3.0", "php": ">=5.3.7" }, "require-dev": { @@ -177,7 +180,7 @@ }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD 3-Clause" + "BSD-3-Clause" ], "authors": [ { @@ -191,7 +194,7 @@ "migration", "sqlite" ], - "time": "2016-06-09T19:50:38+00:00" + "time": "2020-12-21T10:18:04+00:00" }, { "name": "doctrine/cache", @@ -265,16 +268,16 @@ }, { "name": "goaop/parser-reflection", - "version": "1.4.0", + "version": "1.4.1", "source": { "type": "git", "url": "https://github.com/goaop/parser-reflection.git", - "reference": "adfc38fee63014880932ebcc4810871b8e33edc9" + "reference": "d9c1dcc7ce4a5284fe3530e011faf9c9c10e1166" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/goaop/parser-reflection/zipball/adfc38fee63014880932ebcc4810871b8e33edc9", - "reference": "adfc38fee63014880932ebcc4810871b8e33edc9", + "url": "https://api.github.com/repos/goaop/parser-reflection/zipball/d9c1dcc7ce4a5284fe3530e011faf9c9c10e1166", + "reference": "d9c1dcc7ce4a5284fe3530e011faf9c9c10e1166", "shasum": "" }, "require": { @@ -312,20 +315,20 @@ } ], "description": "Provides reflection information, based on raw source", - "time": "2017-09-03T14:59:13+00:00" + "time": "2018-03-19T15:57:41+00:00" }, { "name": "nikic/php-parser", - "version": "v3.1.1", + "version": "v3.1.5", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "a1e8e1a30e1352f118feff1a8481066ddc2f234a" + "reference": "bb87e28e7d7b8d9a7fda231d37457c9210faf6ce" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/a1e8e1a30e1352f118feff1a8481066ddc2f234a", - "reference": "a1e8e1a30e1352f118feff1a8481066ddc2f234a", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/bb87e28e7d7b8d9a7fda231d37457c9210faf6ce", + "reference": "bb87e28e7d7b8d9a7fda231d37457c9210faf6ce", "shasum": "" }, "require": { @@ -363,20 +366,20 @@ "parser", "php" ], - "time": "2017-09-02T17:10:46+00:00" + "time": "2018-02-28T20:30:58+00:00" }, { "name": "pimple/pimple", - "version": "v3.2.2", + "version": "v3.2.3", "source": { "type": "git", "url": "https://github.com/silexphp/Pimple.git", - "reference": "4d45fb62d96418396ec58ba76e6f065bca16e10a" + "reference": "9e403941ef9d65d20cba7d54e29fe906db42cf32" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/silexphp/Pimple/zipball/4d45fb62d96418396ec58ba76e6f065bca16e10a", - "reference": "4d45fb62d96418396ec58ba76e6f065bca16e10a", + "url": "https://api.github.com/repos/silexphp/Pimple/zipball/9e403941ef9d65d20cba7d54e29fe906db42cf32", + "reference": "9e403941ef9d65d20cba7d54e29fe906db42cf32", "shasum": "" }, "require": { @@ -413,7 +416,7 @@ "container", "dependency injection" ], - "time": "2017-07-23T07:32:15+00:00" + "time": "2018-01-21T07:42:36+00:00" }, { "name": "psr/container", @@ -466,16 +469,16 @@ }, { "name": "psr/log", - "version": "1.0.2", + "version": "1.1.3", "source": { "type": "git", "url": "https://github.com/php-fig/log.git", - "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d" + "reference": "0f73288fd15629204f9d42b7055f72dacbe811fc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/4ebe3a8bf773a19edfe0a84b6585ba3d401b724d", - "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d", + "url": "https://api.github.com/repos/php-fig/log/zipball/0f73288fd15629204f9d42b7055f72dacbe811fc", + "reference": "0f73288fd15629204f9d42b7055f72dacbe811fc", "shasum": "" }, "require": { @@ -484,7 +487,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "1.1.x-dev" } }, "autoload": { @@ -509,33 +512,33 @@ "psr", "psr-3" ], - "time": "2016-10-10T12:19:37+00:00" + "time": "2020-03-23T09:12:05+00:00" }, { "name": "stecman/symfony-console-completion", - "version": "0.6.2", + "version": "0.11.0", "source": { "type": "git", "url": "https://github.com/stecman/symfony-console-completion.git", - "reference": "3f9a6c017e688c771df9948521c84c6190175293" + "reference": "a9502dab59405e275a9f264536c4e1cb61fc3518" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/stecman/symfony-console-completion/zipball/3f9a6c017e688c771df9948521c84c6190175293", - "reference": "3f9a6c017e688c771df9948521c84c6190175293", + "url": "https://api.github.com/repos/stecman/symfony-console-completion/zipball/a9502dab59405e275a9f264536c4e1cb61fc3518", + "reference": "a9502dab59405e275a9f264536c4e1cb61fc3518", "shasum": "" }, "require": { "php": ">=5.3.2", - "symfony/console": "~2.3 || ~3.0" + "symfony/console": "~2.3 || ~3.0 || ~4.0 || ~5.0" }, "require-dev": { - "phpunit/phpunit": "~4.4" + "phpunit/phpunit": "~4.8.36 || ~5.7 || ~6.4" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "0.6.x-dev" + "dev-master": "0.10.x-dev" } }, "autoload": { @@ -554,20 +557,20 @@ } ], "description": "Automatic BASH completion for Symfony Console Component based applications.", - "time": "2015-12-12T12:23:58+00:00" + "time": "2019-11-24T17:03:06+00:00" }, { "name": "symfony/console", - "version": "v2.8.28", + "version": "v2.8.52", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "f81549d2c5fdee8d711c9ab3c7e7362353ea5853" + "reference": "cbcf4b5e233af15cd2bbd50dee1ccc9b7927dc12" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/f81549d2c5fdee8d711c9ab3c7e7362353ea5853", - "reference": "f81549d2c5fdee8d711c9ab3c7e7362353ea5853", + "url": "https://api.github.com/repos/symfony/console/zipball/cbcf4b5e233af15cd2bbd50dee1ccc9b7927dc12", + "reference": "cbcf4b5e233af15cd2bbd50dee1ccc9b7927dc12", "shasum": "" }, "require": { @@ -581,7 +584,7 @@ "symfony/process": "~2.1|~3.0.0" }, "suggest": { - "psr/log": "For using the console logger", + "psr/log-implementation": "For using the console logger", "symfony/event-dispatcher": "", "symfony/process": "" }, @@ -615,7 +618,7 @@ ], "description": "Symfony Console Component", "homepage": "https://symfony.com", - "time": "2017-10-01T21:00:16+00:00" + "time": "2018-11-20T15:55:20+00:00" }, { "name": "symfony/debug", @@ -676,16 +679,16 @@ }, { "name": "symfony/finder", - "version": "v2.8.28", + "version": "v2.8.52", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "a945724b201f74d543e356f6059c930bb8d10c92" + "reference": "1444eac52273e345d9b95129bf914639305a9ba4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/a945724b201f74d543e356f6059c930bb8d10c92", - "reference": "a945724b201f74d543e356f6059c930bb8d10c92", + "url": "https://api.github.com/repos/symfony/finder/zipball/1444eac52273e345d9b95129bf914639305a9ba4", + "reference": "1444eac52273e345d9b95129bf914639305a9ba4", "shasum": "" }, "require": { @@ -721,20 +724,20 @@ ], "description": "Symfony Finder Component", "homepage": "https://symfony.com", - "time": "2017-10-01T21:00:16+00:00" + "time": "2018-11-11T11:18:13+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.5.0", + "version": "v1.19.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "7c8fae0ac1d216eb54349e6a8baa57d515fe8803" + "reference": "b5f7b932ee6fa802fc792eabd77c4c88084517ce" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/7c8fae0ac1d216eb54349e6a8baa57d515fe8803", - "reference": "7c8fae0ac1d216eb54349e6a8baa57d515fe8803", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/b5f7b932ee6fa802fc792eabd77c4c88084517ce", + "reference": "b5f7b932ee6fa802fc792eabd77c4c88084517ce", "shasum": "" }, "require": { @@ -746,7 +749,11 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.5-dev" + "dev-main": "1.19-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" } }, "autoload": { @@ -780,7 +787,21 @@ "portable", "shim" ], - "time": "2017-06-14T15:44:48+00:00" + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-10-23T09:01:57+00:00" } ], "packages-dev": [ @@ -790,21 +811,21 @@ "source": { "type": "git", "url": "https://github.com/aik099/CodingStandard.git", - "reference": "df4d3f0d78d47359bf541d7917a650da60d9cebe" + "reference": "4b605a2fadc7f69bd89ee83a388d2965a0b34b0c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/aik099/CodingStandard/zipball/df4d3f0d78d47359bf541d7917a650da60d9cebe", - "reference": "df4d3f0d78d47359bf541d7917a650da60d9cebe", + "url": "https://api.github.com/repos/aik099/CodingStandard/zipball/4b605a2fadc7f69bd89ee83a388d2965a0b34b0c", + "reference": "4b605a2fadc7f69bd89ee83a388d2965a0b34b0c", "shasum": "" }, "require-dev": { - "squizlabs/php_codesniffer": "~2.0" + "squizlabs/php_codesniffer": "^3.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "2.0.x-dev" } }, "notification-url": "https://packagist.org/downloads/", @@ -822,7 +843,7 @@ "PHP_CodeSniffer", "codesniffer" ], - "time": "2016-12-04T18:28:15+00:00" + "time": "2020-01-14T16:30:17+00:00" } ], "aliases": [], @@ -835,5 +856,6 @@ "platform": { "php": ">=5.6.0" }, - "platform-dev": [] + "platform-dev": [], + "plugin-api-version": "1.1.0" } diff --git a/src/CodeInsight/KnowledgeBase/KnowledgeBase.php b/src/CodeInsight/KnowledgeBase/KnowledgeBase.php index 91e3f5a..967a251 100644 --- a/src/CodeInsight/KnowledgeBase/KnowledgeBase.php +++ b/src/CodeInsight/KnowledgeBase/KnowledgeBase.php @@ -321,7 +321,7 @@ public function processFile($file) SET Found = 1, Size = :size WHERE Id = :file_id'; $this->db->perform($sql, array( - 'file_id' => $file_data['Id'], + 'file_id' => $file_id, 'size' => $size, ));