Completed
Push — master ( 9b1a28...1180e8 )
by Greg
01:29
created
src/Internal/EventLogger.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -55,6 +55,9 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/HubphAPI.php 1 patch
Doc Comments   +16 added lines patch added patch discarded remove patch
@@ -36,6 +36,9 @@  discard block
 block discarded – undo
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) {
@@ -122,6 +125,9 @@  discard block
 block discarded – undo
122 125
         return [$status, $existingPRs];
123 126
     }
124 127
 
128
+    /**
129
+     * @param string $number
130
+     */
125 131
     public function prStatuses($projectWithOrg, $number)
126 132
     {
127 133
         list($org, $project) = explode('/', $projectWithOrg, 2);
@@ -141,6 +147,10 @@  discard block
 block discarded – undo
141 147
         uasort(
142 148
 
143 149
             $pullRequestStatus,
150
+
151
+            /**
152
+             * @param string $rhs
153
+             */
144 154
             function ($lhs, $rhs) {
145 155
                 return abs(strtotime($lhs['updated_at']) - strtotime($rhs['updated_at']));
146 156
             }
@@ -171,11 +181,17 @@  discard block
 block discarded – undo
171 181
         return $remote;
172 182
     }
173 183
 
184
+    /**
185
+     * @param string $projectWithOrg
186
+     */
174 187
     protected function existingPRs($projectWithOrg, VersionIdentifiers $vids)
175 188
     {
176 189
         return $this->matchingPRs($projectWithOrg, $vids->getPreamble(), $vids->pattern());
177 190
     }
178 191
 
192
+    /**
193
+     * @param string $preamble
194
+     */
179 195
     public function matchingPRs($projectWithOrg, $preamble, $pattern = '')
180 196
     {
181 197
         $q = "repo:$projectWithOrg in:title is:pr state:open $preamble";
Please login to merge, or discard this patch.
src/Cli/HubphCommands.php 1 patch
Doc Comments   +12 added lines, -6 removed lines patch added patch discarded remove patch
@@ -193,6 +193,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
361 364
      *   license: License
362 365
      *   permissions: Permissions
363 366
      *
364
-     * @return Consolidation\OutputFormatters\StructuredData\PropertyList
367
+     * @return PropertyList
365 368
      */
366 369
     public function repoInfo($projectWithOrg = '', $options = ['as' => 'default', 'format' => 'table'])
367 370
     {
@@ -455,7 +458,7 @@  discard block
 block discarded – undo
455 458
      *   head: Head
456 459
      *   base: Base
457 460
      *   _links: Links
458
-     * @return Consolidation\OutputFormatters\StructuredData\PropertyList
461
+     * @return PropertyList
459 462
      */
460 463
     public function prShow($projectWithOrg = '', $number = '', $options = ['as' => 'default', 'format' => 'table'])
461 464
     {
@@ -492,7 +495,7 @@  discard block
 block discarded – undo
492 495
      *   updated_at: Updated
493 496
      * @default-fields id,creator,state,description
494 497
      * @default-string-field description
495
-     * @return Consolidation\OutputFormatters\StructuredData\RowsOfFields
498
+     * @return RowsOfFields
496 499
      */
497 500
     public function prStatuses($projectWithOrg = '', $number = '', $options = ['as' => 'default', 'format' => 'yaml'])
498 501
     {
@@ -550,7 +553,7 @@  discard block
 block discarded – undo
550 553
      *   _links: Links
551 554
      * @default-fields number,user,title
552 555
      * @default-string-field number
553
-     * @return Consolidation\OutputFormatters\StructuredData\RowsOfFields
556
+     * @return RowsOfFields
554 557
      */
555 558
     public function prList($projectWithOrg = '', $options = ['state' => 'open', 'as' => 'default', 'format' => 'table'])
556 559
     {
@@ -601,6 +604,9 @@  discard block
 block discarded – undo
601 604
         );
602 605
     }
603 606
 
607
+    /**
608
+     * @param string $field
609
+     */
604 610
     protected function keyById($data, $field)
605 611
     {
606 612
         return
Please login to merge, or discard this patch.