GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( fc2f08...10d0e6 )
by
unknown
61:03
created
plugins/tracker/include/Tracker/Artifact/Tracker_Artifact.class.php 1 patch
Doc Comments   +26 added lines, -8 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
     *
133 133
     * @param bool $use_artifact_permissions
134 134
     *
135
-    * @return bool true if the artifact has individual permissions set
135
+    * @return boolean|null true if the artifact has individual permissions set
136 136
     */
137 137
     public function setUseArtifactPermissions($use_artifact_permissions) {
138 138
         $this->use_artifact_permissions = $use_artifact_permissions;
@@ -175,6 +175,9 @@  discard block
 block discarded – undo
175 175
         return $this->can_view_cache[$user->getId()];
176 176
     }
177 177
 
178
+    /**
179
+     * @param boolean $can_view
180
+     */
178 181
     public function setUserCanView(PFUser $user, $can_view) {
179 182
         $this->can_view_cache[$user->getId()] = $can_view;
180 183
     }
@@ -226,6 +229,7 @@  discard block
 block discarded – undo
226 229
      * @param array  $recipient
227 230
      * @param string $format, the mail format text or html
228 231
      * @param bool   $ignore_perms, indicates if we ignore various permissions
232
+     * @param string $format
229 233
      *
230 234
      * @return string
231 235
      */
@@ -290,7 +294,8 @@  discard block
 block discarded – undo
290 294
         return $output;
291 295
     }
292 296
 
293
-    /** @param Tracker_FormElement[] */
297
+    /** @param Tracker_FormElement[]
298
+* @param Tracker_FormElement $toplevel_form_elements */
294 299
     private function prepareElementsForDisplay($toplevel_form_elements) {
295 300
         foreach ($toplevel_form_elements as $formElement) {
296 301
             $formElement->prepareForDisplay();
@@ -418,6 +423,9 @@  discard block
 block discarded – undo
418 423
         return $this->fetchTitleContent($prefix, true);
419 424
     }
420 425
 
426
+    /**
427
+     * @param boolean $unsubscribe_button
428
+     */
421 429
     private function fetchTitleContent($prefix = '', $unsubscribe_button) {
422 430
         $html = '';
423 431
         $html .= $this->fetchHiddenTrackerId();
@@ -653,6 +661,7 @@  discard block
 block discarded – undo
653 661
      * Returns HTML code to display the artifact history
654 662
      *
655 663
      * @param Codendi_Request $request The data from the user
664
+     * @param string $comment_format_field_name
656 665
      *
657 666
      * @return String The valid followup comment format
658 667
      */
@@ -838,6 +847,9 @@  discard block
 block discarded – undo
838 847
         $GLOBALS['Response']->sendStatusCode(403);
839 848
     }
840 849
 
850
+    /**
851
+     * @param integer $milestone_id
852
+     */
841 853
     private function userHasRankingPermissions($milestone_id) {
842 854
         $user_is_authorized = true;
843 855
 
@@ -1058,7 +1070,7 @@  discard block
 block discarded – undo
1058 1070
      *
1059 1071
      * @throws Tracker_Exception In the validation
1060 1072
      * @throws Tracker_NoChangeException In the validation
1061
-     * @return Tracker_Artifact_Changeset|Boolean The new changeset if update is done without error, false otherwise
1073
+     * @return Tracker_Artifact_Changeset The new changeset if update is done without error, false otherwise
1062 1074
      */
1063 1075
     public function createNewChangeset($fields_data, $comment, PFUser $submitter, $send_notification = true, $comment_format = Tracker_Artifact_Changeset_Comment::TEXT_COMMENT) {
1064 1076
         $submitted_on = $_SERVER['REQUEST_TIME'];
@@ -1474,7 +1486,7 @@  discard block
 block discarded – undo
1474 1486
      * @param int  $linked_artifact_id The id of the artifact to link
1475 1487
      * @param PFUser $current_user       The user who made the link
1476 1488
      *
1477
-     * @return bool true if success false otherwise
1489
+     * @return boolean|null true if success false otherwise
1478 1490
      */
1479 1491
     public function linkArtifact($linked_artifact_id, PFUser $current_user) {
1480 1492
         $artlink_fields = $this->getFormElementFactory()->getUsedArtifactLinkFields($this->getTracker());
@@ -1505,7 +1517,7 @@  discard block
 block discarded – undo
1505 1517
      * @param array  $linked_artifact_ids The ids of the artifacts to link
1506 1518
      * @param PFUser $current_user       The user who made the link
1507 1519
      *
1508
-     * @return bool true if success false otherwise
1520
+     * @return boolean|null true if success false otherwise
1509 1521
      */
1510 1522
     public function linkArtifacts($linked_artifact_ids, PFUser $current_user) {
1511 1523
         $linked_artifact_ids = implode(',', $linked_artifact_ids);
@@ -1570,7 +1582,7 @@  discard block
 block discarded – undo
1570 1582
      *
1571 1583
      * @param PFUser $user The user who should see the artifacts
1572 1584
      *
1573
-     * @return Array of Tracker_Artifact
1585
+     * @return Tracker_Artifact[] of Tracker_Artifact
1574 1586
      */
1575 1587
     public function getLinkedArtifactsOfHierarchy(PFUser $user) {
1576 1588
         $artifact_links = $this->getLinkedArtifacts($user);
@@ -1611,7 +1623,7 @@  discard block
 block discarded – undo
1611 1623
      *
1612 1624
      * @param PFUser $user The user who should see the artifacts
1613 1625
      *
1614
-     * @return Array of Tracker_Artifact
1626
+     * @return Tracker_Artifact[] of Tracker_Artifact
1615 1627
      */
1616 1628
     public function getUniqueLinkedArtifacts(PFUser $user) {
1617 1629
         $sub_artifacts = $this->getLinkedArtifacts($user);
@@ -1678,6 +1690,9 @@  discard block
 block discarded – undo
1678 1690
         return $this->parent_without_permission_checking;
1679 1691
     }
1680 1692
 
1693
+    /**
1694
+     * @param Tracker_Artifact $parent
1695
+     */
1681 1696
     public function setParentWithoutPermissionChecking($parent) {
1682 1697
         $this->parent_without_permission_checking = $parent;
1683 1698
     }
@@ -1717,6 +1732,9 @@  discard block
 block discarded – undo
1717 1732
         return $this->siblings_without_permission_checking;
1718 1733
     }
1719 1734
 
1735
+    /**
1736
+     * @param ArrayIterator $siblings
1737
+     */
1720 1738
     public function setSiblingsWithoutPermissionChecking($siblings) {
1721 1739
         $this->siblings_without_permission_checking = $siblings;
1722 1740
     }
@@ -1765,7 +1783,7 @@  discard block
 block discarded – undo
1765 1783
     /**
1766 1784
      * Return the first BurndownField (if any)
1767 1785
      *
1768
-     * @return Tracker_FormElement_Field_Burndown
1786
+     * @return Tracker_FormElement_Field_ArtifactLink
1769 1787
      */
1770 1788
     public function getABurndownField(PFUser $user) {
1771 1789
         return $this->getFormElementFactory()->getABurndownField($user, $this->getTracker());
Please login to merge, or discard this patch.
tracker/include/Tracker/Artifact/Tracker_Artifact_Changeset.class.php 1 patch
Doc Comments   +28 added lines, -3 removed lines patch added patch discarded remove patch
@@ -361,6 +361,11 @@  discard block
 block discarded – undo
361 361
     // display such changesets as if they were only containing changes,
362 362
     // so we introduced this function to determine wether we're in this
363 363
     // case or not.
364
+
365
+    /**
366
+     * @param string $changes
367
+     * @param Tracker_Artifact_Changeset_Comment|null $comment
368
+     */
364 369
     private function shouldBeDisplayedAsChange($changes, $comment) {
365 370
         if ($comment) {
366 371
             // Not comment AND no changes
@@ -499,7 +504,7 @@  discard block
 block discarded – undo
499 504
     /**
500 505
      * Returns the comment dao
501 506
      *
502
-     * @return Tracker_Artifact_ChangesetCommentDao The dao
507
+     * @return Tracker_Artifact_Changeset_CommentDao The dao
503 508
      */
504 509
     protected function getCommentDao() {
505 510
         return new Tracker_Artifact_Changeset_CommentDao();
@@ -606,6 +611,7 @@  discard block
 block discarded – undo
606 611
     * Display diff messsage
607 612
     *
608 613
     * @param String $diff
614
+    * @param string $format
609 615
     *
610 616
     */
611 617
     public function displayDiff($diff, $format, $field) {
@@ -706,6 +712,9 @@  discard block
 block discarded – undo
706 712
         }
707 713
     }
708 714
 
715
+    /**
716
+     * @param boolean $is_update
717
+     */
709 718
     public function buildOneMessageForMultipleRecipients(array $recipients, $is_update) {
710 719
         $messages = array();
711 720
         foreach ($recipients as $recipient => $check_perms) {
@@ -735,6 +744,9 @@  discard block
 block discarded – undo
735 744
         return $messages;
736 745
     }
737 746
 
747
+    /**
748
+     * @param boolean $is_update
749
+     */
738 750
     public function buildAMessagePerRecipient(array $recipients, $is_update) {
739 751
         $messages       = array();
740 752
         $anonymous_mail = 0;
@@ -807,6 +819,9 @@  discard block
 block discarded – undo
807 819
         }
808 820
     }
809 821
 
822
+    /**
823
+     * @param PFUser $user
824
+     */
810 825
     private function getMessageContent($user, $is_update, $check_perms) {
811 826
         $ignore_perms = !$check_perms;
812 827
 
@@ -925,6 +940,9 @@  discard block
 block discarded – undo
925 940
         );
926 941
     }
927 942
 
943
+    /**
944
+     * @param string $tracker_name
945
+     */
928 946
     private function getTextBodyFilter($project_name, $tracker_name) {
929 947
         $project_filter = '=PROJECT='.$project_name;
930 948
         $tracker_filter = '=TRACKER='.$tracker_name;
@@ -932,6 +950,9 @@  discard block
 block discarded – undo
932 950
         return PHP_EOL . $project_filter . PHP_EOL . $tracker_filter . PHP_EOL;
933 951
     }
934 952
 
953
+    /**
954
+     * @param string $tracker_name
955
+     */
935 956
     private function getHTMLBodyFilter($project_name, $tracker_name) {
936 957
         $filter  = '<div style="display: none !important;">';
937 958
         $filter .= '=PROJECT=' . $project_name . '<br>';
@@ -1072,7 +1093,7 @@  discard block
 block discarded – undo
1072 1093
      * Get the text body for notification
1073 1094
      *
1074 1095
      * @param Boolean $is_update    It is an update, not a new artifact
1075
-     * @param String  $recipient    The recipient who will receive the notification
1096
+     * @param String  $recipient_user    The recipient who will receive the notification
1076 1097
      * @param BaseLanguage $language The language of the message
1077 1098
      * @param Boolean $ignore_perms indicates if permissions have to be ignored
1078 1099
      *
@@ -1112,7 +1133,7 @@  discard block
 block discarded – undo
1112 1133
      * Get the html body for notification
1113 1134
      *
1114 1135
      * @param Boolean $is_update    It is an update, not a new artifact
1115
-     * @param String  $recipient    The recipient who will receive the notification
1136
+     * @param String  $recipient_user    The recipient who will receive the notification
1116 1137
      * @param BaseLanguage $language The language of the message
1117 1138
      * @param Boolean $ignore_perms ???
1118 1139
      *
@@ -1195,6 +1216,7 @@  discard block
 block discarded – undo
1195 1216
     }
1196 1217
 
1197 1218
     /**
1219
+     * @param string $artifact_link
1198 1220
      * @return string html call to action button to include in an html mail
1199 1221
      */
1200 1222
     private function fetchHtmlAnswerButton($artifact_link) {
@@ -1302,6 +1324,9 @@  discard block
 block discarded – undo
1302 1324
         return $soap;
1303 1325
     }
1304 1326
 
1327
+    /**
1328
+     * @param string $fields
1329
+     */
1305 1330
     public function getRESTValue(PFUser $user, $fields) {
1306 1331
         $comment = $this->getComment();
1307 1332
         if (! $comment) {
Please login to merge, or discard this patch.
tracker/include/Tracker/Artifact/Tracker_Artifact_Changeset_Null.class.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
     /**
121 121
      * Return diff between this changeset and previous one (HTML code)
122 122
      *
123
-     * @return string The field difference between the previous changeset. or false if no changes
123
+     * @return boolean The field difference between the previous changeset. or false if no changes
124 124
      */
125 125
     public function diffToPrevious($format='html', $user=null, $ignore_perms=false) {
126 126
         return false;
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      * Get the body for notification
156 156
      *
157 157
      * @param bool   $is_update It is an update, not a new artifact
158
-     * @param string $recipient The recipient who will receive the notification
158
+     * @param string $recipient_user The recipient who will receive the notification
159 159
      *
160 160
      * @return string
161 161
      */
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
      * Get the body for notification
168 168
      *
169 169
      * @param bool   $is_update It is an update, not a new artifact
170
-     * @param string $recipient The recipient who will receive the notification
170
+     * @param string $recipient_user The recipient who will receive the notification
171 171
      *
172 172
      * @return string
173 173
      */
Please login to merge, or discard this patch.
Tracker/Artifact/Tracker_Artifact_ChangesetValue_ArtifactLink.class.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
     /**
219 219
      * Returns the value of this changeset value
220 220
      *
221
-     * @return mixed The value of this artifact changeset value
221
+     * @return Tracker_ArtifactLinkInfo[] The value of this artifact changeset value
222 222
      */
223 223
     public function getValue() {
224 224
         return $this->artifact_links;
@@ -258,6 +258,9 @@  discard block
 block discarded – undo
258 258
         return $reverse_artifact_links_user_can_see;
259 259
     }
260 260
 
261
+    /**
262
+     * @param null|PFUser $user
263
+     */
261 264
     private function setCurrentUserIfUserIsNotDefined(&$user) {
262 265
         if (! isset($user)) {
263 266
             $user = $this->user_manager->getCurrentUser();
Please login to merge, or discard this patch.
Tracker/Artifact/Tracker_Artifact_ChangesetValue_ArtifactLinkDiff.class.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -144,6 +144,9 @@
 block discarded – undo
144 144
         return $this->getFormatted($this->getRemovedUserCanSee($user), $format);
145 145
     }
146 146
 
147
+    /**
148
+     * @param string $format
149
+     */
147 150
     private function getFormatted(array $array, $format) {
148 151
         $method = 'getLabel';
149 152
         if ($format === 'html') {
Please login to merge, or discard this patch.
include/Tracker/Artifact/Tracker_Artifact_ChangesetValue_Date.class.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -35,6 +35,7 @@
 block discarded – undo
35 35
      * @param Tracker_FormElement_Field_Date $field       The field of the value
36 36
      * @param boolean                        $has_changed If the changeset value has chnged from the previous one
37 37
      * @param int                            $timestamp   The date
38
+     * @param integer|null $id
38 39
      */
39 40
     public function __construct($id, $field, $has_changed, $timestamp) {
40 41
         parent::__construct($id, $field, $has_changed);
Please login to merge, or discard this patch.
include/Tracker/Artifact/Tracker_Artifact_ChangesetValue_File.class.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,6 +35,7 @@  discard block
 block discarded – undo
35 35
      * @param Tracker_FormElement_Field_File $field       The field of the value
36 36
      * @param boolean                        $has_changed If the changeset value has chnged from the previous one
37 37
      * @param array                          $files       array of Tracker_FileInfo
38
+     * @param integer $id
38 39
      */
39 40
     public function __construct($id, $field, $has_changed, $files) {
40 41
         parent::__construct($id, $field, $has_changed);
@@ -207,7 +208,7 @@  discard block
 block discarded – undo
207 208
     /**
208 209
      * Returns the value of this changeset value
209 210
      *
210
-     * @return mixed The value of this artifact changeset value
211
+     * @return boolean The value of this artifact changeset value
211 212
      */
212 213
     public function getValue() {
213 214
         // TODO : implement
Please login to merge, or discard this patch.
include/Tracker/Artifact/Tracker_Artifact_ChangesetValue_Float.class.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
     /**
88 88
      * Get the Json value
89 89
      *
90
-     * @return string The value of this artifact changeset value in Json format
90
+     * @return double|null The value of this artifact changeset value in Json format
91 91
      */
92 92
     public function getJsonValue() {
93 93
         return $this->getFloat();
Please login to merge, or discard this patch.
include/Tracker/Artifact/Tracker_Artifact_ChangesetValue_List.class.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -268,6 +268,9 @@  discard block
 block discarded – undo
268 268
         return $this->getChangesSentence($previous, $next, $added, $removed);
269 269
     }
270 270
 
271
+    /**
272
+     * @param string $format
273
+     */
271 274
     private function getAdded(array $previous, array $next, $format) {
272 275
         $added_elements = array_diff($next, $previous);
273 276
         $added_arr = array();
@@ -279,6 +282,9 @@  discard block
 block discarded – undo
279 282
         return $this->format(implode(', ', $added_arr), $format);
280 283
     }
281 284
 
285
+    /**
286
+     * @param string $format
287
+     */
282 288
     private function getRemoved(array $previous, array $next, $format) {
283 289
         $removed_elements = array_diff($previous, $next);
284 290
         $removed_arr = array();
@@ -290,6 +296,9 @@  discard block
 block discarded – undo
290 296
         return $this->format(implode(', ', $removed_arr), $format);
291 297
     }
292 298
 
299
+    /**
300
+     * @param string $value
301
+     */
293 302
     private function format($value, $format) {
294 303
         if ($format === 'text') {
295 304
             return $value;
Please login to merge, or discard this patch.