Skip to content

Commit 8728b5f

Browse files
committedAug 4, 2018
update travis and sami
1 parent 9c12e5d commit 8728b5f

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed
 

‎.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ php:
77
- 7.0
88
- 7.1
99
- 7.2
10-
- hhvm
10+
# - hhvm # broken with nikic/php-parser
1111

1212
install:
1313
- composer install

‎sami.php

+14-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
use Sami\Sami;
55
use Sami\Version\GitVersionCollection;
66
use Symfony\Component\Finder\Finder;
7+
use Sami\Parser\Filter\PublicFilter;
78

89
$dir = __DIR__ . '/src';
910
$iterator = Finder::create()
@@ -17,11 +18,22 @@
1718
->add('master', 'master branch')
1819
;
1920

20-
return new Sami($iterator, [
21+
$sami = new Sami($iterator, [
2122
'title' => 'PHP Code Generator API',
2223
'theme' => 'default',
2324
'versions' => $versions,
2425
'build_dir' => __DIR__ . '/api/%version%',
2526
'cache_dir' => __DIR__ . '/cache/%version%',
26-
'default_opened_level' => 2
27+
'default_opened_level' => 2,
28+
'sort_class_properties' => true,
29+
'sort_class_methods' => true,
30+
'sort_class_constants' => true,
31+
'sort_class_traits' => true,
32+
'sort_class_interfaces' => true
2733
]);
34+
35+
$sami['filter'] = function () {
36+
return new PublicFilter();
37+
};
38+
39+
return $sami;

0 commit comments

Comments
 (0)
Please sign in to comment.