Passed
Push — master ( ac3e4b...bd6036 )
by Robbie
05:21
created
src/Extensions/ShareDraftContentControllerExtension.php 1 patch
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -7,38 +7,38 @@
 block discarded – undo
7 7
 
8 8
 class ShareDraftContentControllerExtension extends Extension
9 9
 {
10
-    /**
11
-     * @var array
12
-     */
13
-    private static $allowed_actions = [
14
-        'MakeShareDraftLink',
15
-    ];
10
+	/**
11
+	 * @var array
12
+	 */
13
+	private static $allowed_actions = [
14
+		'MakeShareDraftLink',
15
+	];
16 16
 
17
-    /**
18
-     * @return mixed
19
-     */
20
-    public function MakeShareDraftLink()
21
-    {
22
-        if ($member = Security::getCurrentUser()) {
23
-            if ($this->owner->hasMethod('CurrentPage') && $this->owner->CurrentPage()->canView($member)) {
24
-                return $this->owner->CurrentPage()->ShareTokenLink();
25
-            }
26
-            if ($this->owner->hasMethod('canView') && $this->owner->canView($member)) {
27
-                return $this->owner->ShareTokenLink();
28
-            }
29
-        }
17
+	/**
18
+	 * @return mixed
19
+	 */
20
+	public function MakeShareDraftLink()
21
+	{
22
+		if ($member = Security::getCurrentUser()) {
23
+			if ($this->owner->hasMethod('CurrentPage') && $this->owner->CurrentPage()->canView($member)) {
24
+				return $this->owner->CurrentPage()->ShareTokenLink();
25
+			}
26
+			if ($this->owner->hasMethod('canView') && $this->owner->canView($member)) {
27
+				return $this->owner->ShareTokenLink();
28
+			}
29
+		}
30 30
 
31
-        return Security::permissionFailure();
32
-    }
31
+		return Security::permissionFailure();
32
+	}
33 33
 
34
-    /**
35
-     * @return string
36
-     */
37
-    public function getShareDraftLinkAction()
38
-    {
39
-        if ($this->owner->config()->get('url_segment')) {
40
-            return $this->owner->Link('MakeShareDraftLink');
41
-        }
42
-        return '';
43
-    }
34
+	/**
35
+	 * @return string
36
+	 */
37
+	public function getShareDraftLinkAction()
38
+	{
39
+		if ($this->owner->config()->get('url_segment')) {
40
+			return $this->owner->Link('MakeShareDraftLink');
41
+		}
42
+		return '';
43
+	}
44 44
 }
Please login to merge, or discard this patch.