spec/DummyData.php
public function getMultiplePosts($formatAble = false)
    {
        $posts = Post::published()->get();

        foreach ($posts as $key => $post) {
            $posts[$key] = self::fix($post);

            if ($formatAble) {
                $posts[$key] = Manager::formatAble($posts[$key]);
            }
        }

        return $posts;
    }
public function getMultiplePosts($formatAble = false)
    {
        $posts = Post::published()->get();

        foreach ($posts as $key => $post) {
            $posts[$key] = self::fix($post);

            if ($formatAble) {
                $posts[$key] = Manager::formatAble($posts[$key]);
            }
        }

        return $posts;
    }
public function getMultiplePosts ( $ formatAble = false ) { $ posts = Post :: published ( ) -> get ( ) ; foreach ( $ posts as $ key => $ post ) { $ posts [ $ key ] = self :: fix ( $ post ) ; if ( $ formatAble ) { $ posts [ $ key ] = Manager :: formatAble ( $ posts [ $ key ] ) ; } } return $ posts ; }
Get multiple WordPress data.

@param bool|false $formatAble

@return mixed
Get multiple WordPress data .