@@ -15,7 +15,6 @@  | 
                                                    ||
| 15 | 15 | use Consolidation\AnnotatedCommand\CommandError;  | 
                                                        
| 16 | 16 | use Hubph\HubphAPI;  | 
                                                        
| 17 | 17 | use Hubph\VersionIdentifiers;  | 
                                                        
| 18 | -use Hubph\PullRequests;  | 
                                                        |
| 19 | 18 | |
| 20 | 19 | class HubphCommands extends \Robo\Tasks implements ConfigAwareInterface, LoggerAwareInterface  | 
                                                        
| 21 | 20 |  { | 
                                                        
@@ -185,6 +185,9 @@ discard block  | 
                                                    ||
| 185 | 185 | return $this->getProjectWithOrfFromUrl($remote);  | 
                                                        
| 186 | 186 | }  | 
                                                        
| 187 | 187 | |
| 188 | + /**  | 
                                                        |
| 189 | + * @param string $remote  | 
                                                        |
| 190 | + */  | 
                                                        |
| 188 | 191 | protected function getProjectWithOrfFromUrl($remote)  | 
                                                        
| 189 | 192 |      { | 
                                                        
| 190 | 193 |          $remote = preg_replace('#^git@[^:]*:#', '', $remote); | 
                                                        
@@ -242,7 +245,7 @@ discard block  | 
                                                    ||
| 242 | 245 | * _links: Links  | 
                                                        
| 243 | 246 | * @default-fields number,user,title  | 
                                                        
| 244 | 247 | * @default-string-field number  | 
                                                        
| 245 | - * @return Consolidation\OutputFormatters\StructuredData\RowsOfFields  | 
                                                        |
| 248 | + * @return RowsOfFields  | 
                                                        |
| 246 | 249 | */  | 
                                                        
| 247 | 250 | public function prFind($projectWithOrg = '', $options = ['as' => 'default', 'format' => 'yaml', 'q' => ''])  | 
                                                        
| 248 | 251 |      { | 
                                                        
@@ -299,7 +302,7 @@ discard block  | 
                                                    ||
| 299 | 302 | * head: Head  | 
                                                        
| 300 | 303 | * base: Base  | 
                                                        
| 301 | 304 | * _links: Links  | 
                                                        
| 302 | - * @return Consolidation\OutputFormatters\StructuredData\PropertyList  | 
                                                        |
| 305 | + * @return PropertyList  | 
                                                        |
| 303 | 306 | */  | 
                                                        
| 304 | 307 | public function prShow($projectWithOrg = '', $number = '', $options = ['as' => 'default', 'format' => 'table'])  | 
                                                        
| 305 | 308 |      { | 
                                                        
@@ -359,7 +362,7 @@ discard block  | 
                                                    ||
| 359 | 362 | * _links: Links  | 
                                                        
| 360 | 363 | * @default-fields number,user,title  | 
                                                        
| 361 | 364 | * @default-string-field number  | 
                                                        
| 362 | - * @return Consolidation\OutputFormatters\StructuredData\RowsOfFields  | 
                                                        |
| 365 | + * @return RowsOfFields  | 
                                                        |
| 363 | 366 | */  | 
                                                        
| 364 | 367 | public function prList($projectWithOrg = '', $options = ['state' => 'open', 'as' => 'default', 'format' => 'table'])  | 
                                                        
| 365 | 368 |      { | 
                                                        
@@ -407,6 +410,9 @@ discard block  | 
                                                    ||
| 407 | 410 | );  | 
                                                        
| 408 | 411 | }  | 
                                                        
| 409 | 412 | |
| 413 | + /**  | 
                                                        |
| 414 | + * @param string $field  | 
                                                        |
| 415 | + */  | 
                                                        |
| 410 | 416 | protected function keyById($data, $field)  | 
                                                        
| 411 | 417 |      { | 
                                                        
| 412 | 418 | return  | 
                                                        
@@ -55,6 +55,9 @@  | 
                                                    ||
| 55 | 55 | EOT;  | 
                                                        
| 56 | 56 | }  | 
                                                        
| 57 | 57 | |
| 58 | + /**  | 
                                                        |
| 59 | + * @param string $event_name  | 
                                                        |
| 60 | + */  | 
                                                        |
| 58 | 61 | protected function getEntry($event_name, $args, $params, $response)  | 
                                                        
| 59 | 62 |      { | 
                                                        
| 60 | 63 | $args_string = json_encode($args);  | 
                                                        
@@ -36,6 +36,9 @@ discard block  | 
                                                    ||
| 36 | 36 | $this->eventLogger = null;  | 
                                                        
| 37 | 37 | }  | 
                                                        
| 38 | 38 | |
| 39 | + /**  | 
                                                        |
| 40 | + * @param string $as  | 
                                                        |
| 41 | + */  | 
                                                        |
| 39 | 42 | public function setAs($as)  | 
                                                        
| 40 | 43 |      { | 
                                                        
| 41 | 44 |          if ($as != $this->as) { | 
                                                        
@@ -118,6 +121,9 @@ discard block  | 
                                                    ||
| 118 | 121 | return $remote;  | 
                                                        
| 119 | 122 | }  | 
                                                        
| 120 | 123 | |
| 124 | + /**  | 
                                                        |
| 125 | + * @param string $projectWithOrg  | 
                                                        |
| 126 | + */  | 
                                                        |
| 121 | 127 | protected function existingPRs($projectWithOrg, VersionIdentifiers $vids)  | 
                                                        
| 122 | 128 |      { | 
                                                        
| 123 | 129 | $preamble = $vids->getPreamble();  |