Test Setup Failed
Push — master ( c9dde2...c96a31 )
by Craig
03:54
created
src/Ams/ContentAsset.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 	public $is_child = false;
11 11
 
12 12
 	public $value_equals = 'title';
13
-    public $status_equals = 'status';
13
+	public $status_equals = 'status';
14 14
 
15 15
 	public $properties = array(
16 16
 		'title' => array(
@@ -25,11 +25,11 @@  discard block
 block discarded – undo
25 25
 			'type' => self::HTML
26 26
 		),
27 27
 		'status' => array(
28
-            'name' => 'Published',
29
-            'type' => self::DROPDOWN,
28
+			'name' => 'Published',
29
+			'type' => self::DROPDOWN,
30 30
 			'options' => ['published' => 'Published', 'unpublished' => 'Unpublished'],
31 31
 			'published' => ['published']
32
-        ),
32
+		),
33 33
 	);
34 34
 
35 35
 	public static function about() {
@@ -37,8 +37,8 @@  discard block
 block discarded – undo
37 37
 	}
38 38
 
39 39
 			/**
40
-	 * generate the route for this asset
41
-	 */
40
+			 * generate the route for this asset
41
+			 */
42 42
 	public static function route($record, $path = null){
43 43
 		$path = 'frontend.ams.page.slug';
44 44
 		$page = $record->page;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 			/**
40 40
 	 * generate the route for this asset
41 41
 	 */
42
-	public static function route($record, $path = null){
42
+	public static function route($record, $path = null) {
43 43
 		$path = 'frontend.ams.page.slug';
44 44
 		$page = $record->page;
45 45
 		return route($path, ['slug' => $page->slug]);
Please login to merge, or discard this patch.
src/Ams/AutoCompleteAsset.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -5,10 +5,10 @@
 block discarded – undo
5 5
 
6 6
 class AutoCompleteAsset extends Asset {
7 7
 
8
-    public $type = AutoCompleteAsset::class;
9
-    public $namespace = 'property';
8
+	public $type = AutoCompleteAsset::class;
9
+	public $namespace = 'property';
10 10
 
11
-    public static function html($data) {
12
-        return '<span>' . $data['value'] . '</span>';
13
-    }
11
+	public static function html($data) {
12
+		return '<span>' . $data['value'] . '</span>';
13
+	}
14 14
 }
15 15
\ No newline at end of file
Please login to merge, or discard this patch.
src/Ams/RobotsTxtAsset.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 
5 5
 use Phpsa\Datastore\Asset;
6 6
 
7
-class RobotsTxtAsset extends Asset{
7
+class RobotsTxtAsset extends Asset {
8 8
 
9 9
 	public $name = 'Robots.txt';
10 10
 	public $shortname = 'robots_txt';
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 	public $private = true; //this is not a standard public facing page!
14 14
 
15 15
 	public $meta_description = 'off'; // set to 'off' to turn it off
16
-	public $meta_keywords	 = 'off'; // set to 'off' to turn it off
16
+	public $meta_keywords = 'off'; // set to 'off' to turn it off
17 17
 
18 18
 	public $value_equals = 'entries';
19 19
 	public $properties = array(
Please login to merge, or discard this patch.
src/Ams/BooleanAsset.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,11 +8,11 @@
 block discarded – undo
8 8
 
9 9
 	public $shortname = 'Bool';
10 10
 
11
-    public $type = BooleanAsset::class;
11
+	public $type = BooleanAsset::class;
12 12
 
13 13
 	public $namespace = 'property';
14 14
 
15
-    public static function html($data) {
16
-        return  !empty($data['value']) ? 'on' : 'off';
17
-    }
15
+	public static function html($data) {
16
+		return  !empty($data['value']) ? 'on' : 'off';
17
+	}
18 18
 }
Please login to merge, or discard this patch.
src/Ams/IdentityAsset.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -6,13 +6,13 @@
 block discarded – undo
6 6
 
7 7
 class IdentityAsset extends Asset {
8 8
 
9
-    public $type = IdentityAsset::class;
10
-    public $namespace = 'property';
9
+	public $type = IdentityAsset::class;
10
+	public $namespace = 'property';
11 11
 
12
-    public static function html($data) {
12
+	public static function html($data) {
13 13
 		$record = config('auth.providers.users.model')::find($data['value']);
14 14
 		$user_label = $record ? $record->first_name . ' ' . $record->last_name : '';
15 15
 
16
-        return  $user_label;
17
-    }
16
+		return  $user_label;
17
+	}
18 18
 }
Please login to merge, or discard this patch.
src/Ams/BlockAsset.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,8 +44,8 @@
 block discarded – undo
44 44
 	}
45 45
 
46 46
 			/**
47
-	 * generate the route for this asset
48
-	 */
47
+			 * generate the route for this asset
48
+			 */
49 49
 	public static function route($record, $path = null){
50 50
 
51 51
 		$path = 'frontend.ams.page.slug';
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
 			/**
47 47
 	 * generate the route for this asset
48 48
 	 */
49
-	public static function route($record, $path = null){
49
+	public static function route($record, $path = null) {
50 50
 
51 51
 		$path = 'frontend.ams.page.slug';
52 52
 		$page = $record->page;
Please login to merge, or discard this patch.
src/Ams/HtmlAsset.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -5,12 +5,12 @@
 block discarded – undo
5 5
 
6 6
 class HtmlAsset extends Asset {
7 7
 
8
-    public $type = HtmlAsset::class;
9
-    public $namespace = 'property';
8
+	public $type = HtmlAsset::class;
9
+	public $namespace = 'property';
10 10
 	public $options = ["formatting", "bold", "italic", "deleted", "unorderedlist","orderedlist", "image", "file", "link"];
11 11
 
12
-    // return it raw
13
-    public static function html($data) {
14
-        return $data['value'];
15
-    }
12
+	// return it raw
13
+	public static function html($data) {
14
+		return $data['value'];
15
+	}
16 16
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 
8 8
     public $type = HtmlAsset::class;
9 9
     public $namespace = 'property';
10
-	public $options = ["formatting", "bold", "italic", "deleted", "unorderedlist","orderedlist", "image", "file", "link"];
10
+	public $options = ["formatting", "bold", "italic", "deleted", "unorderedlist", "orderedlist", "image", "file", "link"];
11 11
 
12 12
     // return it raw
13 13
     public static function html($data) {
Please login to merge, or discard this patch.
src/Ams/DropdownAsset.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -5,10 +5,10 @@
 block discarded – undo
5 5
 
6 6
 class DropdownAsset extends Asset {
7 7
 
8
-    public $type = DropdownAsset::class;
9
-    public $namespace = 'property';
8
+	public $type = DropdownAsset::class;
9
+	public $namespace = 'property';
10 10
 
11
-    public static function html($data) {
12
-        return '<span>' . $data['value'] . '</span>';
13
-    }
11
+	public static function html($data) {
12
+		return '<span>' . $data['value'] . '</span>';
13
+	}
14 14
 }
15 15
\ No newline at end of file
Please login to merge, or discard this patch.
src/Ams/TextAsset.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -4,11 +4,11 @@
 block discarded – undo
4 4
 
5 5
 class TextAsset extends Asset {
6 6
 
7
-    public $type = TextAsset::class;
8
-    public $namespace = 'property';
7
+	public $type = TextAsset::class;
8
+	public $namespace = 'property';
9 9
 
10
-    public static function html($data) {
11
-        return '<p>' . $data['value'] . '</p>';
12
-    }
10
+	public static function html($data) {
11
+		return '<p>' . $data['value'] . '</p>';
12
+	}
13 13
 
14 14
 }
15 15
\ No newline at end of file
Please login to merge, or discard this patch.