<?php
declare (strict_types = 1);

namespace GrottoPress\Jentil\Utilities\Page\Posts;

use GrottoPress\WordPress\Posts\Posts as PostsPackage;

abstract class AbstractPosts
{
    /**
     * @var Posts
     */
    protected $posts;

    /**
     * @var string
     */
    protected $id = 'main-query';

    public function __construct(Posts $posts)
    {
        $this->posts = $posts;
    }

    public function posts(): PostsPackage
    {
        return $this->posts->page->utilities->posts(
            $this->args()
        );
    }

    /**
     * @return mixed[string]
     */
    abstract protected function args(): array;
}

<?php
declare (strict_types = 1);

namespace GrottoPress\Jentil\Utilities\Page\Posts;

use GrottoPress\WordPress\Posts\Posts as PostsPackage;

abstract class AbstractPosts
{
    /**
     * @var Posts
     */
    protected $posts;

    /**
     * @var string
     */
    protected $id = 'main-query';

    public function __construct(Posts $posts)
    {
        $this->posts = $posts;
    }

    public function posts(): PostsPackage
    {
        return $this->posts->page->utilities->posts($this->args());
    }

    /**
     * @return mixed[string]
     */
    abstract protected function args(): array;
}

Reduce multi-line method call to single line
Reduce multi-line method call to single line
