class Cloner
{
-
/**
* @var PageRepo
*/
$directChildren = $original->getDirectChildren();
foreach ($directChildren as $child) {
-
if ($child instanceof Chapter && userCan('chapter-create', $copyBook)) {
$this->cloneChapter($child, $copyBook, $child->name);
}
return $tags;
}
-
-}
\ No newline at end of file
+}