Completed
Push — master ( b123f6...08af57 )
by Mark
38:36 queued 18:39
created
code/ShopSearch.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Fulltext search index for shop buyables
4
- *
5
- * @author Mark Guinn <[email protected]>
6
- * @date 08.29.2013
7
- * @package shop_search
8
- */
3
+	 * Fulltext search index for shop buyables
4
+	 *
5
+	 * @author Mark Guinn <[email protected]>
6
+	 * @date 08.29.2013
7
+	 * @package shop_search
8
+	 */
9 9
 class ShopSearch extends Object
10 10
 {
11 11
 	const FACET_TYPE_LINK       = 'link';
Please login to merge, or discard this patch.
code/adapters/ShopSearchSimple.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * VERY simple adapter to use DataList and :PartialMatch searches. Bare mininum
4
- * that will probably get terrible results but doesn't require any
5
- * additional setup.
6
- *
7
- * @author Mark Guinn <[email protected]>
8
- * @date 09.03.2013
9
- * @package shop_search
10
- */
3
+	 * VERY simple adapter to use DataList and :PartialMatch searches. Bare mininum
4
+	 * that will probably get terrible results but doesn't require any
5
+	 * additional setup.
6
+	 *
7
+	 * @author Mark Guinn <[email protected]>
8
+	 * @date 09.03.2013
9
+	 * @package shop_search
10
+	 */
11 11
 class ShopSearchSimple extends Object implements ShopSearchAdapter
12 12
 {
13 13
 	/**
Please login to merge, or discard this patch.
code/helpers/HasStaticAttributes.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Extension for Product that allows static attributes in the same way
4
- * they're used for variations. I'm separating this out because it will
5
- * probably be useful in other projects.
6
- *
7
- * @author Mark Guinn <[email protected]>
8
- * @date 01.21.2014
9
- * @package Daywind
10
- * @subpackage extensions
11
- */
3
+	 * Extension for Product that allows static attributes in the same way
4
+	 * they're used for variations. I'm separating this out because it will
5
+	 * probably be useful in other projects.
6
+	 *
7
+	 * @author Mark Guinn <[email protected]>
8
+	 * @date 01.21.2014
9
+	 * @package Daywind
10
+	 * @subpackage extensions
11
+	 */
12 12
 class HasStaticAttributes extends DataExtension
13 13
 {
14 14
 	private static $many_many = array(
Please login to merge, or discard this patch.
code/helpers/VirtualFieldIndex.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -57,14 +57,14 @@
 block discarded – undo
57 57
 
58 58
 	public static $disable_building = false;
59 59
 
60
-    /**
61
-     * @return array
62
-     */
63
-    public static function get_classes_with_vfi() {
64
-        $vfi_def = Config::inst()->get('VirtualFieldIndex', 'vfi_spec');
65
-        if (!$vfi_def || !is_array($vfi_def)) return array();
66
-        return array_keys($vfi_def);
67
-    }
60
+	/**
61
+	 * @return array
62
+	 */
63
+	public static function get_classes_with_vfi() {
64
+		$vfi_def = Config::inst()->get('VirtualFieldIndex', 'vfi_spec');
65
+		if (!$vfi_def || !is_array($vfi_def)) return array();
66
+		return array_keys($vfi_def);
67
+	}
68 68
 
69 69
 	/**
70 70
 	 * Define extra db fields and indexes.
Please login to merge, or discard this patch.
code/helpers/VirtualFieldIndexQueuedJob.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * If the queued jobs module is installed, this will be used instead of
4
- * updating vfi's in onBeforeWrite.
5
- *
6
- * @author  Mark Guinn <[email protected]>
7
- * @date    07.02.2015
8
- * @package shop_search
9
- * @subpackage helpers
10
- */
3
+	 * If the queued jobs module is installed, this will be used instead of
4
+	 * updating vfi's in onBeforeWrite.
5
+	 *
6
+	 * @author  Mark Guinn <[email protected]>
7
+	 * @date    07.02.2015
8
+	 * @package shop_search
9
+	 * @subpackage helpers
10
+	 */
11 11
 if(!interface_exists('QueuedJob')) return;
12 12
 
13 13
 class VirtualFieldIndexQueuedJob extends AbstractQueuedJob implements QueuedJob
Please login to merge, or discard this patch.
code/helpers/ProductCategoryHelperMethods.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Adds some methods to the Product class to list out all categories
4
- * a product is in. This is generally useful, but also really helps
5
- * with building search indexes.
6
- *
7
- * @author Mark Guinn <[email protected]>
8
- * @date 05.23.2014
9
- * @package shop_search
10
- * @subpackage helpers
11
- */
3
+	 * Adds some methods to the Product class to list out all categories
4
+	 * a product is in. This is generally useful, but also really helps
5
+	 * with building search indexes.
6
+	 *
7
+	 * @author Mark Guinn <[email protected]>
8
+	 * @date 05.23.2014
9
+	 * @package shop_search
10
+	 * @subpackage helpers
11
+	 */
12 12
 class ProductCategoryHelperMethods extends DataExtension
13 13
 {
14 14
 	/**
Please login to merge, or discard this patch.
code/helpers/FacetHelper.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -380,7 +380,7 @@
 block discarded – undo
380 380
 			->addInnerJoin('ProductAttributeType', '"Product_StaticAttributeTypes"."ProductAttributeTypeID" = "ProductAttributeType"."ID"')
381 381
 			->addInnerJoin('Product_StaticAttributeValues', $baseTable.'."ID" = "Product_StaticAttributeValues"."ProductID"')
382 382
 			->addInnerJoin('ProductAttributeValue', '"Product_StaticAttributeValues"."ProductAttributeValueID" = "ProductAttributeValue"."ID"'
383
-			    . ' AND "ProductAttributeValue"."TypeID" = "ProductAttributeType"."ID"')
383
+				. ' AND "ProductAttributeValue"."TypeID" = "ProductAttributeType"."ID"')
384 384
 			->setOrderBy(array(
385 385
 				'"ProductAttributeType"."Label"' => 'ASC',
386 386
 				'"ProductAttributeValue"."Sort"' => 'ASC',
Please login to merge, or discard this patch.
code/adapters/ShopSearchMysql.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Adapter that will use MySQL's full text search features.
4
- *
5
- * @author Mark Guinn <[email protected]>
6
- * @date 11.13.2013
7
- * @package shop_search
8
- * @subpackage adapters
9
- */
3
+	 * Adapter that will use MySQL's full text search features.
4
+	 *
5
+	 * @author Mark Guinn <[email protected]>
6
+	 * @date 11.13.2013
7
+	 * @package shop_search
8
+	 * @subpackage adapters
9
+	 */
10 10
 class ShopSearchMysql extends Object implements ShopSearchAdapter
11 11
 {
12 12
 	/**
Please login to merge, or discard this patch.
code/reports/SearchTermsReport.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Silverstripe report for searchs
4
- *
5
- * @author Mark Guinn <[email protected]>
6
- * @date 09.24.2014
7
- * @package apluswhs.com
8
- * @subpackage
9
- */
3
+	 * Silverstripe report for searchs
4
+	 *
5
+	 * @author Mark Guinn <[email protected]>
6
+	 * @date 09.24.2014
7
+	 * @package apluswhs.com
8
+	 * @subpackage
9
+	 */
10 10
 class SearchTermsReport extends ShopPeriodReport
11 11
 {
12 12
 	protected $title = "Search Terms";
Please login to merge, or discard this patch.