Closed (fixed)
Project:
Cloud
Version:
3.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
29 Jan 2021 at 06:46 UTC
Updated:
16 Feb 2021 at 05:19 UTC
Jump to comment: Most recent, Most recent file
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 3195312-8.patch | 25.91 KB | jigish.addweb |
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
jigish.addweb commentedComment #4
yas@jigishaddweb
Could you please also refactor the following?
$ cd /var/www/html; phpcs --standard=DrupalPractice --extensions=js,json,php,module,inc,install,test,profile,theme,css,info,txt,md,yml /var/www/html/web/modules/contrib/cloud/modules/cloud_service_providers/openstack/
FILE: /var/www/html/web/modules/contrib/cloud/modules/cloud_service_providers/openstack/src/Controller/ApiController.php
------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------
375 | WARNING | Unused variable $openstack_ec2_api.
------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/web/modules/contrib/cloud/modules/cloud_service_providers/openstack/src/Form/OpenStackSecurityGroupEditForm.php
-----------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------------------------------------
198 | WARNING | Unused variable $key.
208 | WARNING | Unused variable $key.
-----------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/web/modules/contrib/cloud/modules/cloud_service_providers/openstack/src/Form/OpenStackFloatingIpCreateForm.php
----------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------
152 | WARNING | Unused variable $entity.
----------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/web/modules/contrib/cloud/modules/cloud_service_providers/openstack/src/Form/OpenStackInstanceEditForm.php
------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------
382 | WARNING | Unused private method getAvailableFloatingIps()
------------------------------------------------------------------------------------------------------------------------------
FILE: .../www/html/web/modules/contrib/cloud/modules/cloud_service_providers/openstack/src/Plugin/cloud/server_template/OpenStackServerTemplatePlugin.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
308 | WARNING | Unused variable $group_key.
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/web/modules/contrib/cloud/modules/cloud_service_providers/openstack/src/Service/Rest/OpenStackService.php
-----------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 14 WARNINGS AFFECTING 14 LINES
-----------------------------------------------------------------------------------------------------------------------------
274 | WARNING | Unused variable $volume_key.
296 | WARNING | Unused variable $port_key.
301 | WARNING | Unused variable $address_key.
302 | WARNING | Unused variable $add_key.
376 | WARNING | Unused variable $volume_key.
398 | WARNING | Unused variable $port_key.
403 | WARNING | Unused variable $address_key.
404 | WARNING | Unused variable $add_key.
1398 | WARNING | Unused variable $key_rules.
1653 | WARNING | Unused variable $results.
1829 | WARNING | Unused variable $subnet_key.
1889 | WARNING | Unused variable $subnet_key.
1947 | WARNING | Unused variable $subnet_key.
2212 | WARNING | Unused variable $key.
-----------------------------------------------------------------------------------------------------------------------------
Time: 3.28 secs; Memory: 34MB
Comment #5
jigish.addweb commented@yas
Thank you for your review.
I've resolved all coding standard violations.
Please review the updated patch.
Thanks
Comment #6
yas@jigishaddweb
Thank you for the update. Please check https://git.drupalcode.org/project/cloud/-/merge_requests/128#note_10525 and the others for the key-value pair as a foreach loop variable.
Thanks
Comment #8
jigish.addweb commentedComment #9
jigish.addweb commentedComment #10
yas@jigishaddweb @binoliaddwebThank you for the refactoring.
I'll merge the patch to
3.xand close this issue asFixed.Comment #12
yas