- last update
over 1 year ago PHPLint Failed - 🇧🇷Brazil Diego_Mow
Uploading file with latest PHPCS review and generated patch #29 → .
I read notes from #28 several times and those are some considerations while creating this patch:
- Drush Commands vs Dependecy Injection: I added Ignore Flags on all so we don't need to go trough this discussion again.
- Drupal t(): Also did the same: using Ignore Flags to remove it.
- Voting API file: In the end of it there is a abstract example of Storage changing. I tried to fill all "Todo" flags there but also Ignoring that file made sense to me.
- VoteTypeAccessControlHandler.php: DID NOTHING AT ALL. My honest opinion is that this should be deleted, so I prefer to investigate it in a new issue instead of this one.
- Status changed to Needs work
over 1 year ago 3:45pm 13 May 2023 - 🇮🇹Italy apaderno Brescia, 🇮🇹
TR said:
Yes, the CS warning will remain, and that's OK.
He did not suggest to add
@codingStandardsIgnoreLine
to all the lines that must not be changed. He said to ignore the warnings/errors for those lines that should not be changed, or that should be changed in a different issue. - Assigned to RohitRawat676
- Status changed to Active
over 1 year ago 6:16pm 30 July 2023 - Issue was unassigned.
- Status changed to Needs review
over 1 year ago 6:17pm 30 July 2023 - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Patch Failed to Apply - Status changed to Needs work
over 1 year ago 11:31pm 30 July 2023 - 🇮🇹Italy apaderno Brescia, 🇮🇹
diff --git a/entity.module b/entity.module index b1a72ef..562e322 100644 --- a/entity.module +++ b/entity.module
The last patch is not for this project, since there is any entity.module file in this project.
+/** + * @file + */ + use Drupal\Core\Entity\ContentEntityInterface;
Leaving out the patch is not for this project, TR already explained that is the wrong type of changes to do. That documentation comment requires a short description, after the line containing
@file
; adding just the line containing@file
to avoid a PHP_CodeSniffer warning/error is not the type of changes he will accept. - First commit to issue fork.
- First commit to issue fork.
- Status changed to Needs review
9 months ago 5:16am 22 February 2024 - last update
9 months ago 9 pass, 2 fail The last submitted patch, 38: 3003096-38.patch, failed testing. View results →
- Status changed to Needs review
9 months ago 5:37am 22 February 2024 - last update
9 months ago 9 pass, 2 fail The last submitted patch, 40: 3003096-39.patch, failed testing. View results →
- Status changed to Needs review
9 months ago 6:16am 22 February 2024 - last update
9 months ago 10 pass - Status changed to Needs work
9 months ago 9:13am 22 February 2024 - 🇺🇸United States tr Cascadia
No, and I really don't feel like repeating myself.
- 🇮🇹Italy apaderno Brescia, 🇮🇹
/** - * Voting API's vote storage can be overridden by setting the - * 'votingapi_vote_storage' state variable to an alternative class. + * Voting API's. */ -\Drupal::state()->set('votingapi_vote_storage', 'Mongodb_VoteStorage'); +// Vote storage can be overridden by . +// setting the 'votingapi_vote_storage'state variable to an alternative class. +\Drupal::state()->set('votingapi_vote_storage', 'VotingApi');
Replacing a full sentence with Voting API's is not a correct change, as it is not correct to split a sentence in a phrase and a sentence.
Furthermore, why is the class name changed?+ * @param int $vote * instance of VotingApi_Vote. */ public function addVote(&$vote) {
If
$vote
is an object, it cannot be an integer. - Status changed to Closed: outdated
4 months ago 11:32pm 10 August 2024 - 🇺🇸United States tr Cascadia
Please open new issue(s) for any new problems found that show up in GitLab CI test results.