MathiasReker wants to merge fix-15 into develop December 10

Fix use of protocol

Current Status: Analysed View logs
View on GitHub

Up to standards. A positive pull request.

=
Issues
=
Duplication
=
Complexity
-
Coverage

classes/pdf/HTMLTemplate.php

The "WordPress.CSRF.NonceVerification" sniff has been renamed to "WordPress.Security.NonceVerification". Please update your custom ruleset.
1
<?php
The "WordPress.WP.PreparedSQL" sniff has been renamed to "WordPress.DB.PreparedSQL". Please update your custom ruleset.
1
<?php
The "WordPress.XSS.EscapeOutput" sniff has been renamed to "WordPress.Security.EscapeOutput". Please update your custom ruleset.
1
<?php
Avoid using static access to class 'Tools' in method 'assignCommonHeaderData'.
139
'img_ps_dir' => Tools::getShopProtocol() . Tools::getMediaServer(_PS_IMG_) . _PS_IMG_,

classes/pdf/HTMLTemplateSupplyOrderForm.php

The "WordPress.XSS.EscapeOutput" sniff has been renamed to "WordPress.Security.EscapeOutput". Please update your custom ruleset.
1
<?php
The "WordPress.CSRF.NonceVerification" sniff has been renamed to "WordPress.Security.NonceVerification". Please update your custom ruleset.
1
<?php
The "WordPress.WP.PreparedSQL" sniff has been renamed to "WordPress.DB.PreparedSQL". Please update your custom ruleset.
1
<?php
Avoid using static access to class 'Tools' in method 'getHeader'.
177
'img_ps_dir' => Tools::getShopProtocol() . Tools::getMediaServer(_PS_IMG_) . _PS_IMG_,

controllers/admin/AdminCurrenciesController.php

Avoid using static access to class 'Configuration' in method 'ajaxProcessCronjobLiveExchangeRate'.
313
$cronJobUrl = Tools::getShopProtocol() . ShopUrl::getMainShopDomain($this->context->shop->id) . __PS_BASE_URI__ . basename(_PS_ADMIN_DIR_) . '/cron_currency_rates.php?secure_key=' . md5(_COOKIE_KEY_ . Configuration::get('PS_SHOP_NAME'));

classes/pdf/HTMLTemplate.php

Avoid using static access to class 'Tools' in method 'assignCommonHeaderData'.
139
'img_ps_dir' => 'http://'.Tools::getMediaServer(_PS_IMG_)._PS_IMG_,

classes/pdf/HTMLTemplateSupplyOrderForm.php

Avoid using static access to class 'Tools' in method 'getHeader'.
177
'img_ps_dir' => 'http://'.Tools::getMediaServer(_PS_IMG_)._PS_IMG_,

controllers/admin/AdminCurrenciesController.php

Avoid using static access to class 'ShopUrl' in method 'ajaxProcessCronjobLiveExchangeRate'.
313
$cronJobUrl = 'http://'.ShopUrl::getMainShopDomain($this->context->shop->id).__PS_BASE_URI__.basename(_PS_ADMIN_DIR_).'/cron_currency_rates.php?secure_key='.md5(_COOKIE_KEY_.Configuration::get('PS_SHOP_NAME'));

Loading...

Loading...

Loading...

Loading...