Passed
Pull Request — master (#2)
by Guy
08:17
created
src/Model/DataPoint.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -10,8 +10,8 @@  discard block
 block discarded – undo
10 10
     private static $table_name = 'Sunnysideup_clickspots_DataPoint';
11 11
 
12 12
     private static $db = [
13
-       'Title' => 'Varchar',
14
-       'Description' => 'HTMLText',
13
+        'Title' => 'Varchar',
14
+        'Description' => 'HTMLText',
15 15
     ];
16 16
 
17 17
     private static $has_one = [
@@ -20,19 +20,19 @@  discard block
 block discarded – undo
20 20
 
21 21
     public function getCMSFields()
22 22
     {
23
-       $fields = parent::getCMSFields();
24
-       $fields->addFieldToTab(
25
-           'Root.Main',
26
-           ImageCoordField::create(
27
-               $name = 'DataPointImageCoordinates',
28
-               $xFieldName = 'XCoordinate',
29
-               $yFieldName = 'YCoordinate',
30
-               $imageURL = $this->Parent()->DataPointImage()->Link(),
31
-               $width = $this->Parent()->DataPointImage()->getWidth(),
32
-               $height = $this->Parent()->DataPointImage()->getHeight(),
33
-               $cssGrid = true
34
-           )
35
-       );
36
-       return $fields;
23
+        $fields = parent::getCMSFields();
24
+        $fields->addFieldToTab(
25
+            'Root.Main',
26
+            ImageCoordField::create(
27
+                $name = 'DataPointImageCoordinates',
28
+                $xFieldName = 'XCoordinate',
29
+                $yFieldName = 'YCoordinate',
30
+                $imageURL = $this->Parent()->DataPointImage()->Link(),
31
+                $width = $this->Parent()->DataPointImage()->getWidth(),
32
+                $height = $this->Parent()->DataPointImage()->getHeight(),
33
+                $cssGrid = true
34
+            )
35
+        );
36
+        return $fields;
37 37
     }
38 38
 }
Please login to merge, or discard this patch.