Completed
Branch master (9411cc)
by Gordon
15:12
created
code/ImageEditPartialCacheBustExtension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,9 +20,9 @@  discard block
 block discarded – undo
20 20
 				$objectsWithImage = $instanceofclass::get()->filter($idfield, $this->owner->ID);
21 21
 				foreach ($objectsWithImage as $objectWithImage) {
22 22
 					foreach ($stages as $stage) {
23
-						$suffix = '_'.$stage;
23
+						$suffix = '_' . $stage;
24 24
 						$suffix = str_replace('_Stage', '', $suffix);
25
-						$sql = "UPDATE `SiteTree{$suffix}` SET LastEdited=NOW() where ID=".$objectWithImage->ID;
25
+						$sql = "UPDATE `SiteTree{$suffix}` SET LastEdited=NOW() where ID=" . $objectWithImage->ID;
26 26
 						DB::query($sql);
27 27
 					}
28 28
 				}
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 				$instanceofclass = Injector::inst()->create($clazz);
38 38
 				$objectsWithImage = $instanceofclass::get()->filter($idfield, $this->owner->ID);
39 39
 				foreach ($objectsWithImage as $objectWithImage) {
40
-						$sql = "UPDATE `$clazz` SET LastEdited=NOW() where ID=".$objectWithImage->ID;
40
+						$sql = "UPDATE `$clazz` SET LastEdited=NOW() where ID=" . $objectWithImage->ID;
41 41
 						DB::query($sql);
42 42
 					
43 43
 				}
Please login to merge, or discard this patch.