Completed
Push — master ( 686b54...ec5bd5 )
by Mark
06:38
created
code/helpers/VirtualFieldIndexQueuedJob.php 2 patches
Indentation   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -9,64 +9,64 @@
 block discarded – undo
9 9
  * @subpackage helpers
10 10
  */
11 11
 if (!interface_exists('QueuedJob')) {
12
-    return;
12
+	return;
13 13
 }
14 14
 
15 15
 class VirtualFieldIndexQueuedJob extends AbstractQueuedJob implements QueuedJob
16 16
 {
17
-    /**
18
-     * The QueuedJob queue to use when processing updates
19
-     * @config
20
-     * @var int
21
-     */
22
-    private static $reindex_queue = 2; // QueuedJob::QUEUED;
17
+	/**
18
+	 * The QueuedJob queue to use when processing updates
19
+	 * @config
20
+	 * @var int
21
+	 */
22
+	private static $reindex_queue = 2; // QueuedJob::QUEUED;
23 23
 
24 24
 
25
-    /**
26
-     * @param DataObject $object
27
-     * @param array $fields
28
-     */
29
-    public function __construct($object = null, $fields = array())
30
-    {
31
-        if ($object) {
32
-            $this->setObject($object);
33
-        }
34
-        $this->rebuildFields = $fields;
35
-    }
25
+	/**
26
+	 * @param DataObject $object
27
+	 * @param array $fields
28
+	 */
29
+	public function __construct($object = null, $fields = array())
30
+	{
31
+		if ($object) {
32
+			$this->setObject($object);
33
+		}
34
+		$this->rebuildFields = $fields;
35
+	}
36 36
 
37 37
 
38
-    /**
39
-     * Helper method
40
-     */
41
-    public function triggerProcessing()
42
-    {
43
-        singleton('QueuedJobService')->queueJob($this);
44
-    }
38
+	/**
39
+	 * Helper method
40
+	 */
41
+	public function triggerProcessing()
42
+	{
43
+		singleton('QueuedJobService')->queueJob($this);
44
+	}
45 45
 
46 46
 
47
-    /**
48
-     * @return string
49
-     */
50
-    public function getTitle()
51
-    {
52
-        $obj = $this->getObject();
53
-        return "Update Virtual Field Indexes: " . ($obj ? $obj->getTitle() : '???');
54
-    }
47
+	/**
48
+	 * @return string
49
+	 */
50
+	public function getTitle()
51
+	{
52
+		$obj = $this->getObject();
53
+		return "Update Virtual Field Indexes: " . ($obj ? $obj->getTitle() : '???');
54
+	}
55 55
 
56 56
 
57
-    /**
58
-     * Reprocess any needed fields
59
-     */
60
-    public function process()
61
-    {
62
-        Versioned::reading_stage('Stage');
63
-        /** @var DataObject|VirtualFieldIndex $obj */
64
-        $obj = $this->getObject();
57
+	/**
58
+	 * Reprocess any needed fields
59
+	 */
60
+	public function process()
61
+	{
62
+		Versioned::reading_stage('Stage');
63
+		/** @var DataObject|VirtualFieldIndex $obj */
64
+		$obj = $this->getObject();
65 65
 
66
-        if ($obj) {
67
-            $obj->rebuildVFI();
68
-        }
66
+		if ($obj) {
67
+			$obj->rebuildVFI();
68
+		}
69 69
 
70
-        $this->isComplete = true;
71
-    }
70
+		$this->isComplete = true;
71
+	}
72 72
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
     public function getTitle()
51 51
     {
52 52
         $obj = $this->getObject();
53
-        return "Update Virtual Field Indexes: " . ($obj ? $obj->getTitle() : '???');
53
+        return "Update Virtual Field Indexes: ".($obj ? $obj->getTitle() : '???');
54 54
     }
55 55
 
56 56
 
Please login to merge, or discard this patch.