src/PHPDish/Bundle/ForumBundle/Service/ThreadManager.php
public function createThreadsByNames($names)
    {
        $threads = [];
        foreach ($names as $name) {
            $thread = $this->createThread();
            $thread->setName($name)
                ->setSlug($this->pinyin->permalink($name))
                ->setDescription($name);
            $threads[] = $thread;
        }
        return $threads;
    }
public function createThreadsByNames($names)
    {
        $threads = [];
        foreach ($names as $name) {
            $thread = $this->createThread();
            $thread->setName($name)
                ->setSlug($this->pinyin->permalink($name))
                ->setDescription($name);
            $threads[] = $thread;
        }
        return $threads;
    }
{@inheritdoc}