PHP CodeStandard update
- all if/while/for/etc blocks have brackets on same line - functions have brackets on new line - no blocks without brackets - all code starts on col 0 and there are no tab intends anymore off: came case for classes and class methods ignore: _ prefix functions (we can't change that anymore)
This commit is contained in:
@@ -8,10 +8,10 @@
|
||||
// PARAMS: front/back -> what image to show
|
||||
// RETURN: none
|
||||
// DESC: ajax call to switch the main image in the detail view
|
||||
function SwitchImage(image)
|
||||
{
|
||||
if (image != 'front' || image != 'back')
|
||||
function SwitchImage(image) {
|
||||
if (image != 'front' || image != 'back') {
|
||||
image = 'front';
|
||||
}
|
||||
// disable / enable the href for the other side
|
||||
x_ajax_afSwitchImage(image, OutputSwitchImage);
|
||||
}
|
||||
@@ -20,7 +20,6 @@ function SwitchImage(image)
|
||||
// PARAMS: data -> the image full path for the new image
|
||||
// RETURN: none
|
||||
// DESC: replace the image in the product detail with the back image
|
||||
function OutputSwitchImage(data)
|
||||
{
|
||||
function OutputSwitchImage(data) {
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user