Code Duplication    Length = 13-14 lines in 2 locations

src/Cli/HubphCommands.php 2 locations

@@ 315-327 (lines=13) @@
312
     *
313
     * @return Consolidation\OutputFormatters\StructuredData\RowsOfFields
314
     */
315
    public function orgRepos($org, $options = ['as' => 'default', 'format' => 'table'])
316
    {
317
        $api = $this->api($options['as']);
318
        $pager = $api->resultPager();
319
320
        $repoApi = $api->gitHubAPI()->api('organization');
321
        $repos = $pager->fetchAll($repoApi, 'repositories', [$org]);
322
323
        $data = new \Consolidation\OutputFormatters\StructuredData\RowsOfFields($repos);
324
        $this->addTableRenderFunction($data);
325
326
        return $data;
327
    }
328
329
    /**
330
     * @command repo:info
@@ 366-379 (lines=14) @@
363
     *
364
     * @return Consolidation\OutputFormatters\StructuredData\PropertyList
365
     */
366
    public function repoInfo($projectWithOrg, $options = ['as' => 'default', 'format' => 'table'])
367
    {
368
        $api = $this->api($options['as']);
369
370
        $projectWithOrg = $this->projectWithOrg($projectWithOrg);
371
        list($org, $project) = explode('/', $projectWithOrg, 2);
372
373
        $info = $api->gitHubAPI()->api('repo')->show($org, $project);
374
375
        $data = new \Consolidation\OutputFormatters\StructuredData\PropertyList($info);
376
        $this->addTableRenderFunction($data);
377
378
        return $data;
379
    }
380
381
    /**
382
     * @command pr:show