芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/xmintal-back/vendor/codeception/stub/RoboFile.php
'Codeception\Stub', 'docs/Expected.md' => 'Codeception\Stub\Expected', 'docs/StubTrait.md' => 'Codeception\Test\Feature\Stub', ]; public function docs() { foreach ($this->docs as $file => $class) { if (!class_exists($class, true) && !trait_exists($class, true)) { throw new Exception('ups'); } $this->say("Here goes, $class"); $this->taskGenDoc($file) ->docClass($class) ->filterMethods(function(\ReflectionMethod $method) { if ($method->isConstructor() or $method->isDestructor()) return false; if (!$method->isPublic()) return false; if (strpos($method->name, '_') === 0) return false; if (strpos($method->name, 'stub') === 0) return false; return true; }) ->processMethodDocBlock( function (\ReflectionMethod $m, $doc) { $doc = str_replace(array('@since'), array(' * available since version'), $doc); $doc = str_replace(array(' @', "\n@"), array(" * ", "\n * "), $doc); return $doc; }) ->processProperty(false) ->run(); } } }