Commit c5e5167e authored by anthonylindsay's avatar anthonylindsay

Fixed coding style errors.

parent d85db53a
......@@ -6,7 +6,7 @@
*/
/**
* Implements hook_commerce_checkout_complete()
* Implements hook_commerce_checkout_complete().
*/
function commerce_popular_products_commerce_checkout_complete($order) {
// Update our cache of popular products.
......@@ -150,9 +150,9 @@ function commerce_popular_products_get_content() {
$output = '';
$number = variable_get('commerce_popular_products_number', $default = '1');
$all_results = variable_get('commerce_popular_products_popular_products');
if ($all_results == null) {
if ($all_results == NULL) {
$all_results = commerce_popular_products_get_product();
}
}
$i = 0;
$view_count = 0;
while ($i < $number) {
......@@ -191,7 +191,7 @@ function commerce_popular_products_menu() {
function commerce_popular_products_settings() {
$output = t('<p>Here you can define which product types are ranked for popularity & the period over which they are ranked.</p>');
$form = drupal_get_form('commerce_popular_products_settings_form');
$output .= render(&$form);
$output .= render($form);
return $output;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment