@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @file |
|
4 | - * df_engage.features.field_base.inc |
|
5 | - */ |
|
3 | + * @file |
|
4 | + * df_engage.features.field_base.inc |
|
5 | + */ |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * Implements hook_field_default_field_bases(). |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @file |
|
4 | - * df_engage.features.user_permission.inc |
|
5 | - */ |
|
3 | + * @file |
|
4 | + * df_engage.features.user_permission.inc |
|
5 | + */ |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * Implements hook_defaultconfig_user_default_permissions(). |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @file |
|
4 | - * df_engage.strongarm.inc |
|
5 | - */ |
|
3 | + * @file |
|
4 | + * df_engage.strongarm.inc |
|
5 | + */ |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * Implements hook_strongarm(). |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @file |
|
4 | - * Code for the DF Engage feature. |
|
5 | - */ |
|
3 | + * @file |
|
4 | + * Code for the DF Engage feature. |
|
5 | + */ |
|
6 | 6 | |
7 | 7 | include_once 'df_engage.features.inc'; |
8 | 8 |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @file |
|
4 | - * Drupal needs this blank file. |
|
5 | - */ |
|
3 | + * @file |
|
4 | + * Drupal needs this blank file. |
|
5 | + */ |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * Implements hook_js_alter(). |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @file |
|
4 | - * df_commerce.features.field_base.inc |
|
5 | - */ |
|
3 | + * @file |
|
4 | + * df_commerce.features.field_base.inc |
|
5 | + */ |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * Implements hook_field_default_field_bases(). |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @file |
|
4 | - * df_commerce.strongarm.inc |
|
5 | - */ |
|
3 | + * @file |
|
4 | + * df_commerce.strongarm.inc |
|
5 | + */ |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * Implements hook_strongarm(). |
@@ -104,8 +104,8 @@ |
||
104 | 104 | $products = entity_load('commerce_product'); |
105 | 105 | $products_key = array_keys($products); |
106 | 106 | $products_number = count($products_key); |
107 | - $count = $products_number < $items_number ? $products_number: $items_number; |
|
108 | - for($i = 0; $i < $count; $i++) { |
|
107 | + $count = $products_number < $items_number ? $products_number : $items_number; |
|
108 | + for ($i = 0; $i < $count; $i++) { |
|
109 | 109 | $product = $products[$products_key[rand(0, $products_number - 1)]]; |
110 | 110 | $line_item = commerce_product_line_item_new($product, 1, $order->order_id); |
111 | 111 | commerce_line_item_save($line_item); |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @file |
|
4 | - * Code for the DF Commerce feature. |
|
5 | - */ |
|
3 | + * @file |
|
4 | + * Code for the DF Commerce feature. |
|
5 | + */ |
|
6 | 6 | |
7 | 7 | include_once 'df_commerce.features.inc'; |
8 | 8 |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @file |
|
4 | - * DF Admin page handling functions. |
|
5 | - */ |
|
3 | + * @file |
|
4 | + * DF Admin page handling functions. |
|
5 | + */ |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * DF Admin page callback used to list scenarios. |