Skip to content
This repository has been archived by the owner on Sep 17, 2020. It is now read-only.

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
clement-hollander committed Jul 27, 2017
1 parent 1518493 commit bd7f848
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 77 deletions.
7 changes: 7 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@
</exec>
</target>

<target name="test:phpcbf" description="Run php code beautifier">
<exec executable="${project.basedir}/vendor/bin/phpcbf" checkreturn="true" passthru="true">
<arg value="--standard=${project.basedir}/phpcs.xml"/>
<arg path="${project.basedir}" />
</exec>
</target>

<target name="git:submodule" description="Fetch git submodules">
<exec executable="git" passthru="true" checkreturn="true">
<arg value="submodule"/>
Expand Down
42 changes: 21 additions & 21 deletions debug.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
* International Registered Trademark & Property of PrestaShop SA
*/
define('_PS_MODE_DEV_', true);
include (dirname(__FILE__) . '/../../config/config.inc.php');
include (dirname(__FILE__) . '/../../init.php');
include(dirname(__FILE__) . '/../../config/config.inc.php');
include(dirname(__FILE__) . '/../../init.php');

include_once (dirname(__FILE__) . '/sfpayment.php');
include (dirname(__FILE__) . '/shoppingfluxexport.php');
include_once(dirname(__FILE__) . '/sfpayment.php');
include(dirname(__FILE__) . '/shoppingfluxexport.php');

ini_set("memory_limit", "2048M");
ini_set('display_errors', 'on');
Expand Down Expand Up @@ -268,16 +268,16 @@ function logDebug($toLog)
<head>
<style type="text/css">
label {
font-weight: bold;
display: inline-block;
width: 50%;
text-align: right;
padding-right: 10px;
float: left;
font-weight: bold;
display: inline-block;
width: 50%;
text-align: right;
padding-right: 10px;
float: left;
}

pre {
float: left;
float: left;
}
</style>
</head>
Expand All @@ -291,10 +291,10 @@ function logDebug($toLog)
$curl_response = curl_file_get_contents($urlBase);
?>
<fieldset id="debug_content">
<legend>Open page via curl for <?php echo $urlBase; ?>, result :</legend>
<?php echo $curl_response; ?>
</fieldset>
<?php
<legend>Open page via curl for <?php echo $urlBase; ?>, result :</legend>
<?php echo $curl_response; ?>
</fieldset>
<?php
}
if (isset($_GET['test_curl']) && $_GET['test_curl'] != '') {
$outputFile = dirname(__FILE__) . '/logs/testCurl.txt';
Expand Down Expand Up @@ -343,12 +343,12 @@ function logDebug($toLog)
if ($replayXml) {
$replayOrder = @simplexml_load_string($replayXml);
?><div style="border: 1px solid #CCC; padding: 10px;">
<div>
<b><?php echo $sf->l('Execution Result of XML replay :'); ?></b>
</div>
<br>
<div><?php $sf->replayOrder(false, $replayOrder) ?></div>
</div><?php
<div>
<b><?php echo $sf->l('Execution Result of XML replay :'); ?></b>
</div>
<br>
<div><?php $sf->replayOrder(false, $replayOrder) ?></div>
</div><?php
}
?>
</body>
Expand Down
56 changes: 28 additions & 28 deletions views/templates/admin/index.php
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
<?php
/**
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2015 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/

header("Location: ../");
exit;
<?php
/**
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2015 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/

header("Location: ../");
exit;
56 changes: 28 additions & 28 deletions views/templates/index.php
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
<?php
/**
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2015 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/

header("Location: ../");
exit;
<?php
/**
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2015 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/

header("Location: ../");
exit;

0 comments on commit bd7f848

Please sign in to comment.