@@ -193,6 +193,9 @@ discard block |
||
| 193 | 193 | return $this->getProjectWithOrfFromUrl($remote); |
| 194 | 194 | } |
| 195 | 195 | |
| 196 | + /** |
|
| 197 | + * @param string $remote |
|
| 198 | + */ |
|
| 196 | 199 | protected function getProjectWithOrfFromUrl($remote) |
| 197 | 200 | { |
| 198 | 201 | $remote = preg_replace('#^git@[^:]*:#', '', $remote); |
@@ -250,7 +253,7 @@ discard block |
||
| 250 | 253 | * _links: Links |
| 251 | 254 | * @default-fields number,user,title |
| 252 | 255 | * @default-string-field number |
| 253 | - * @return Consolidation\OutputFormatters\StructuredData\RowsOfFields |
|
| 256 | + * @return RowsOfFields |
|
| 254 | 257 | */ |
| 255 | 258 | public function prFind($projectWithOrg = '', $options = ['as' => 'default', 'format' => 'yaml', 'q' => '']) |
| 256 | 259 | { |
@@ -310,7 +313,7 @@ discard block |
||
| 310 | 313 | * @default-fields full_name,language,default_branch |
| 311 | 314 | * @default-string-field full_name |
| 312 | 315 | * |
| 313 | - * @return Consolidation\OutputFormatters\StructuredData\RowsOfFields |
|
| 316 | + * @return RowsOfFields |
|
| 314 | 317 | */ |
| 315 | 318 | public function orgRepos($org, $options = ['as' => 'default', 'format' => 'table']) |
| 316 | 319 | { |
@@ -361,7 +364,7 @@ discard block |
||
| 361 | 364 | * head: Head |
| 362 | 365 | * base: Base |
| 363 | 366 | * _links: Links |
| 364 | - * @return Consolidation\OutputFormatters\StructuredData\PropertyList |
|
| 367 | + * @return PropertyList |
|
| 365 | 368 | */ |
| 366 | 369 | public function prShow($projectWithOrg = '', $number = '', $options = ['as' => 'default', 'format' => 'table']) |
| 367 | 370 | { |
@@ -398,7 +401,7 @@ discard block |
||
| 398 | 401 | * updated_at: Updated |
| 399 | 402 | * @default-fields id,creator,state,description |
| 400 | 403 | * @default-string-field description |
| 401 | - * @return Consolidation\OutputFormatters\StructuredData\RowsOfFields |
|
| 404 | + * @return RowsOfFields |
|
| 402 | 405 | */ |
| 403 | 406 | public function prStatuses($projectWithOrg = '', $number = '', $options = ['as' => 'default', 'format' => 'yaml']) |
| 404 | 407 | { |
@@ -456,7 +459,7 @@ discard block |
||
| 456 | 459 | * _links: Links |
| 457 | 460 | * @default-fields number,user,title |
| 458 | 461 | * @default-string-field number |
| 459 | - * @return Consolidation\OutputFormatters\StructuredData\RowsOfFields |
|
| 462 | + * @return RowsOfFields |
|
| 460 | 463 | */ |
| 461 | 464 | public function prList($projectWithOrg = '', $options = ['state' => 'open', 'as' => 'default', 'format' => 'table']) |
| 462 | 465 | { |
@@ -507,6 +510,9 @@ discard block |
||
| 507 | 510 | ); |
| 508 | 511 | } |
| 509 | 512 | |
| 513 | + /** |
|
| 514 | + * @param string $field |
|
| 515 | + */ |
|
| 510 | 516 | protected function keyById($data, $field) |
| 511 | 517 | { |
| 512 | 518 | return |
@@ -2,9 +2,6 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | namespace Hubph\Cli; |
| 4 | 4 | |
| 5 | -use Consolidation\AnnotatedCommand\CommandData; |
|
| 6 | -use Consolidation\Filter\FilterOutputData; |
|
| 7 | -use Consolidation\Filter\LogicalOpFactory; |
|
| 8 | 5 | use Consolidation\OutputFormatters\Options\FormatterOptions; |
| 9 | 6 | use Consolidation\OutputFormatters\StructuredData\RowsOfFields; |
| 10 | 7 | use Consolidation\OutputFormatters\StructuredData\PropertyList; |
@@ -15,7 +12,6 @@ discard block |
||
| 15 | 12 | use Consolidation\AnnotatedCommand\CommandError; |
| 16 | 13 | use Hubph\HubphAPI; |
| 17 | 14 | use Hubph\VersionIdentifiers; |
| 18 | -use Hubph\PullRequests; |
|
| 19 | 15 | |
| 20 | 16 | class HubphCommands extends \Robo\Tasks implements ConfigAwareInterface, LoggerAwareInterface |
| 21 | 17 | { |