Skip to content

Commit 402988f

Browse files
committed
Merge branch 'QA'
Signed-off-by: William Desportes <williamdes@wdes.fr>
2 parents bebff37 + e01422f commit 402988f

File tree

5 files changed

+27
-26
lines changed

5 files changed

+27
-26
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ matrix:
3434
before_install: phpenv config-rm xdebug.ini
3535
after_success: skip
3636
install:
37-
- composer global require "sami/sami:^4.0"
37+
- composer global require "code-lts/doctum:^5.0"
3838
- composer install --no-interaction
3939
script:
40-
- $HOME/.composer/vendor/bin/sami.php --no-interaction update ./tools/sami-config.php
40+
- $HOME/.composer/vendor/bin/doctum.php --no-interaction update ./tools/doctum-config.php
4141
- php: nightly
4242
install:
4343
- composer install --no-interaction --ignore-platform-reqs

phpcs.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<file>tests</file>
1212
<file>tools</file>
1313

14-
<exclude-pattern>tools/sami-config.php</exclude-pattern>
14+
<exclude-pattern>tools/doctum-config.php</exclude-pattern>
1515

1616
<rule ref="PhpMyAdmin">
1717
<exclude name="SlevomatCodingStandard.ControlStructures.EarlyExit.EarlyExitNotUsed"/>

phpstan.neon.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ parameters:
1010
reportUnmatchedIgnoredErrors: true
1111
inferPrivatePropertyTypeFromConstructor: true
1212
excludes_analyse:
13-
- tools/sami-config.php
13+
- tools/doctum-config.php

tools/doctum-config.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
/**
3+
* This file has been generated by phpmyadmin/scripts/develdocs/build.sh
4+
* @see https://github.com/phpmyadmin/scripts/blob/master/develdocs/doctum.php
5+
* @see https://github.com/phpmyadmin/scripts/blob/master/develdocs/build.sh
6+
*/
7+
use Doctum\Doctum;
8+
use Symfony\Component\Finder\Finder;
9+
use Doctum\RemoteRepository\GitHubRemoteRepository;
10+
11+
$root = realpath(__DIR__ . '/../') . '/';
12+
13+
$iterator = Finder::create()
14+
->files()
15+
->name('*.php')
16+
->in($root . 'src');
17+
18+
return new Doctum($iterator, [
19+
'title' => json_decode(file_get_contents($root . 'composer.json'))->description,
20+
'build_dir' => $root . 'build/apidocs/',
21+
'cache_dir' => $root . 'tmp/',
22+
'remote_repository' => new GitHubRemoteRepository('phpmyadmin/sql-parser', $root),
23+
]);

tools/sami-config.php

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)