- First commit to issue fork.
- Assigned to vishaljd
- Status changed to Needs review
almost 2 years ago 5:08am 16 February 2023 - Issue was unassigned.
- Status changed to Needs work
almost 2 years ago 8:26am 16 February 2023 - ๐ฎ๐นItaly apaderno Brescia, ๐ฎ๐น
- 'title' => $this->t($button['title']), - 'alt' => $this->t($button['title']), + 'title' => $button['title'], + 'alt' => $button['title'],
Since this issue is about coding standards, that is an off-topic change. Coding standards do not say that a variable cannot be passed to
$this->t()
.Also, before attaching further patches or creating MRs, it would be better to update the issue summary to make clearer what this patch is supposed to fix. follow the coding standards is quite a broad topic, which is different from fix what reported from
phpcs
; if the issue purpose is fixing what reported byphpcs
, the issue summary needs to be explicit about that, and show the arguments passed tophpcs
and what reportphpcs
outputs. - Status changed to Needs review
over 1 year ago 8:01am 1 March 2023 - ๐ฎ๐ณIndia sahil.goyal
Hi @apaderno the changes those has been done in #2 resolving the phpcs issues and the
$this->t().
does not seems to be off topic here, for making that clear i updated the issue summary, Reviewed the Patch looks good, Moving to NR, Revert back if needed. - Status changed to Needs work
over 1 year ago 9:47am 1 March 2023 - ๐ฎ๐นItaly apaderno Brescia, ๐ฎ๐น
Those changes are off-topic because that code could be correct.
phpcs
is not able to understand if that code is correct; changing it just becausephpcs
says so is not correct. Before changing it, all the code used by the module should be checked. - ๐ฎ๐ณIndia sahil.goyal
I'm just confirming after applying the changes to the current module, i tested functionality, works alright, seems everything working as expected, therefore i moved it to NR as it does not break anything and also resolving the This->t() error reported by PHPCS, yes code could be correct already and its right that phpcs is unidentified it it is correct, but it looks alright even added with the patch.
- ๐ช๐ธSpain penyaskito Seville ๐, Spain ๐ช๐ธ, UTC+2 ๐ช๐บ
+++ b/src/ShareEverywhereService.php @@ -102,13 +102,13 @@ class ShareEverywhereService implements ShareEverywhereServiceInterface { - $build['#title'] = $this->t($config->get('title')); + $build['#title'] = $config->get('title'); ... - 'alt' => $this->t($config->get('share_icon.alt')), + 'alt' => $config->get('share_icon.alt'),
These changes are right.
If this needs to be translatable, it needs to translate the configuration object, not passing the values through t(). See https://www.drupal.org/docs/multilingual-guide/translating-configuration โ - Open on Drupal.org โCore: 9.5.x + Environment: PHP 7.3 & MySQL 5.7last update
over 1 year ago Waiting for branch to pass - last update
over 1 year ago 1 fail - ๐ฎ๐ณIndia Shreyas gowda
Shreyas gowda โ made their first commit to this issueโs fork.
- Open on Drupal.org โCore: 9.5.x + Environment: PHP 7.4 & MySQL 5.7last update
about 1 year ago Waiting for branch to pass - ๐ฎ๐ณIndia Shreyas gowda
Resolved the phpcs issues and commited it please review
- Status changed to Needs review
about 1 year ago 11:27am 4 October 2023 - Open on Drupal.org โCore: 9.5.x + Environment: PHP 7.4 & MySQL 5.7last update
about 1 year ago Waiting for branch to pass - ๐ฎ๐ณIndia aayushDrupal
Hi,
There are still PHPCS errors remaining, so I created a patch to fix all the remaining errors.
Thanks - First commit to issue fork.
- Open on Drupal.org โCore: 9.5.x + Environment: PHP 7.4 & MySQL 5.7last update
12 months ago Waiting for branch to pass - Open on Drupal.org โCore: 9.5.x + Environment: PHP 7.4 & MySQL 5.7last update
10 months ago Waiting for branch to pass - Open on Drupal.org โCore: 9.5.x + Environment: PHP 7.4 & MySQL 5.7last update
10 months ago Waiting for branch to pass