Resolve #3425461 "Post rector report"
2 unresolved threads
Closes #3425461
Merge request reports
Activity
added 1 commit
- 695c3397 - Add comment token and note about post-rector reports attached.
added 1 commit
- 8064ba53 - Update composer lock file as well with dekor/php-array-table
added 1 commit
- 4f04d083 - Fix post-rector text to flow better with the existing text. Update other text...
515 $comment_tokens['info_yml_updated'] = $this->updatedInfoYml($file_path); 516 $info_is_updated = $this->updatedInfoYml($file_path); 517 518 // If the info file was not updated, there are error left that we know. 519 $post_rector_txt_path = FALSE; 520 if (!$info_is_updated) { 521 // Upload the previous file first (done here, as Save would also 522 // upload it and avoid one extra HTTP request this way). 523 $page->pressButton('Upload'); 524 525 // Look for the post_rector report results. 526 $files = glob(static::RESULTS_DIR . '/*/*.post_rector.xml'); 527 if (!empty($files)) { 528 $txt_contents = ''; 529 $post_rector_xml = simplexml_load_file($files[0]); 530 foreach($xml->checkstyle->file as $file_result) { 512 513 // Set to needs review. 513 514 $page->fillField('edit-field-issue-status-und', self::ISSUE_STATUS_NEEDS_REVIEW); 514 515 515 $comment_tokens['info_yml_updated'] = $this->updatedInfoYml($file_path); 516 $info_is_updated = $this->updatedInfoYml($file_path); 517 518 // If the info file was not updated, there are error left that we know. 519 $post_rector_txt_path = FALSE; 520 if (!$info_is_updated) { 521 // Upload the previous file first (done here, as Save would also 522 // upload it and avoid one extra HTTP request this way). 523 $page->pressButton('Upload'); 524 525 // Look for the post_rector report results. 526 $files = glob(static::RESULTS_DIR . '/*/*.post_rector.xml');
Please register or sign in to reply