Skip to content

Commit 5489e2e

Browse files
author
Robin Geuze
committed
Remove the now unused EmptyDocblockVisitor and simply some closures
1 parent 5f56d53 commit 5489e2e

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

src/config/CodeFileGeneratorConfig.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,10 @@ protected function getDefaultOptions() {
2121
'blankLineAtEnd' => true,
2222
'declareStrictTypes' => false,
2323
'generateScalarTypeHints' => function(Options $options) {
24-
if ($options['declareStrictTypes'])
25-
return true;
26-
return false;
24+
return $options['declareStrictTypes'];
2725
},
2826
'generateReturnTypeHints' => function(Options $options) {
29-
if ($options['declareStrictTypes'])
30-
return true;
31-
return false;
27+
return $options['declareStrictTypes'];
3228
},
3329
]);
3430
}

src/visitor/EmptyDocblockVisitor.php

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

0 commit comments

Comments
 (0)