Skip to content

Commit d801aad

Browse files
committed
Fixing CI
1 parent 3e237b3 commit d801aad

File tree

3 files changed

+24
-31
lines changed

3 files changed

+24
-31
lines changed

generator/src/DocPage.php

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -27,29 +27,28 @@ public function detectFalsyFunction(): bool
2727
{
2828
$file = file_get_contents($this->path);
2929

30-
//if (!preg_match('/::/m', $file)) {
31-
if (preg_match('/&false;\s+on\s+error/m', $file)) {
32-
return true;
33-
}
34-
if (preg_match('/&false;\s+on\s+failure/m', $file)) {
35-
return true;
36-
}
37-
if (preg_match('/&false;\s+if\s+an\s+error\s+occurred/m', $file)) {
38-
return true;
39-
}
40-
if (preg_match('/&return.success;/m', $file)) {
41-
return true;
42-
}
43-
if (preg_match('/&return.nullorfalse;/m', $file)) {
44-
return true;
45-
}
46-
if (preg_match('/&return.falseforfailure;/m', $file)) {
47-
return true;
48-
}
49-
if (preg_match('/&date.datetime.return.modifiedobjectorfalseforfailure;/m', $file)) {
50-
return true;
51-
}
52-
//}
30+
if (preg_match('/&false;\s+on\s+error/m', $file)) {
31+
return true;
32+
}
33+
if (preg_match('/&false;\s+on\s+failure/m', $file)) {
34+
return true;
35+
}
36+
if (preg_match('/&false;\s+if\s+an\s+error\s+occurred/m', $file)) {
37+
return true;
38+
}
39+
if (preg_match('/&return.success;/m', $file)) {
40+
return true;
41+
}
42+
if (preg_match('/&return.nullorfalse;/m', $file)) {
43+
return true;
44+
}
45+
if (preg_match('/&return.falseforfailure;/m', $file)) {
46+
return true;
47+
}
48+
if (preg_match('/&date.datetime.return.modifiedobjectorfalseforfailure;/m', $file)) {
49+
return true;
50+
}
51+
5352
return false;
5453
}
5554

generator/src/ScanObjectsCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,5 @@ protected function execute(InputInterface $input, OutputInterface $output)
3535
}
3636

3737
$output->writeln('These methods are overloaded: '.\implode(', ', $overloadedFunctions));
38-
3938
}
4039
}

generator/src/Scanner.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,9 @@ class Scanner
1515
*/
1616
private $path;
1717

18-
/**
19-
* Scanner constructor.
20-
* @param string $_path
21-
* @param string[] $excludedModules
22-
*/
23-
public function __construct(string $_path)
18+
public function __construct(string $path)
2419
{
25-
$this->path = $_path;
20+
$this->path = $path;
2621
}
2722

2823
/**

0 commit comments

Comments
 (0)