Completed
Push — master ( 98e36f...5766a1 )
by Gordon
04:04
created
code/Advert.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 {
8 8
     public static $searchable_fields = array(
9 9
         'WebsiteLink',
10
-     );
10
+        );
11 11
 
12 12
     public static $db = array(
13 13
         // title to show in model admin
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         // stats
34 34
         'Impressions' => 'Int',
35 35
         'Clickthroughs' => 'Int',
36
-     );
36
+        );
37 37
 
38 38
     public static $has_one = array(
39 39
         'AdvertImage' => 'Image',
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
         // a Javascript toggle on this field displays either the adbroker text field, or an image with URL
76 76
         $fields->addFieldToTab('Root.Main', new DropdownField('AdvertSource', 'The type of advert',
77 77
             singleton('Advert')->dbObject('AdvertSource')->enumValues()
78
-       ));
78
+        ));
79 79
 
80 80
         if ($this->ID == 0) {
81 81
             $html = '<div class="field text">An image can be uploaded after the advert is saved for the first time</div>';
@@ -118,11 +118,11 @@  discard block
 block discarded – undo
118 118
         parent::onBeforeWrite();
119 119
     }
120 120
 
121
-  /*
121
+    /*
122 122
     Calculate a digital signature from several of the fields
123 123
   */
124
-  public function CalculateDigitalSignature()
125
-  {
124
+    public function CalculateDigitalSignature()
125
+    {
126 126
     /* because we save the impression counter on every rendition this cannot include
127 127
     - number of impressions
128 128
     - last edited
@@ -133,5 +133,5 @@  discard block
 block discarded – undo
133 133
     $hashed = hash('sha512', $data);
134 134
     //error_log("HASH CREATED:".$hashed);
135 135
     return $hashed;
136
-  }
136
+    }
137 137
 }
Please login to merge, or discard this patch.
code/AdvertSiteTreeExtension.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
         parent::onBeforeWrite();
48 48
     }
49 49
 
50
-  /*
50
+    /*
51 51
     Get the advert category.  Either use the cached advert category, or traverse the tree towards the root looking for it
52 52
   */
53 53
     public function CalculateAdvertCategoryID()
Please login to merge, or discard this patch.