Test Setup Failed
Push — develop ( b46587...bd8dda )
by Craig
07:01
created
src/Ams/AutoCallBackAsset.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -5,12 +5,12 @@
 block discarded – undo
5 5
 
6 6
 class AutoCallBackAsset extends Asset {
7 7
 
8
-    public $type = AutoCallBackAsset::class;
9
-    public $namespace = 'property';
8
+	public $type = AutoCallBackAsset::class;
9
+	public $namespace = 'property';
10 10
 
11
-    public static function html($data) {
11
+	public static function html($data) {
12 12
 		$content = explode('|', $data['meta']);
13
-        return '<span>' . $content[1] . '</span>';
13
+		return '<span>' . $content[1] . '</span>';
14 14
 	}
15 15
 
16 16
 
Please login to merge, or discard this patch.
src/Ams/SubHeadingAsset.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -5,11 +5,11 @@
 block discarded – undo
5 5
 
6 6
 class SubHeadingAsset extends Asset {
7 7
 
8
-    public $shortname = 'SubHeading';
9
-    public $type = SubHeadingAsset::class;
10
-    public $namespace = 'property';
8
+	public $shortname = 'SubHeading';
9
+	public $type = SubHeadingAsset::class;
10
+	public $namespace = 'property';
11 11
 
12
-    public static function html($data) {
13
-        return '<h4>' . $data['value'] . '</h4>';
14
-    }
12
+	public static function html($data) {
13
+		return '<h4>' . $data['value'] . '</h4>';
14
+	}
15 15
 }
16 16
\ No newline at end of file
Please login to merge, or discard this patch.
src/Ams/FileAsset.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -6,12 +6,12 @@
 block discarded – undo
6 6
 
7 7
 class FileAsset extends Asset {
8 8
 
9
-    public $type = FileAsset::class;
10
-    public $namespace = 'property';
9
+	public $type = FileAsset::class;
10
+	public $namespace = 'property';
11 11
 
12
-    public static function html($data) {
13
-        return Storage::url($data['value']);
14
-    }
12
+	public static function html($data) {
13
+		return Storage::url($data['value']);
14
+	}
15 15
 
16 16
 
17 17
 }
Please login to merge, or discard this patch.
src/Ams/AutoCallBackAdderAsset.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -5,16 +5,16 @@
 block discarded – undo
5 5
 
6 6
 class AutoCallBackAdderAsset extends Asset {
7 7
 
8
-    public $type = AutoCallBackAdderAsset::class;
9
-    public $namespace = 'property';
8
+	public $type = AutoCallBackAdderAsset::class;
9
+	public $namespace = 'property';
10 10
 
11
-    public static function html($data) {
11
+	public static function html($data) {
12 12
 		$strings = [];
13 13
 
14 14
 		foreach($data['meta'] as $k){
15 15
 			$parts = explode("|", $k);
16 16
 			$strings[] = $parts[1];
17 17
 		}
18
-        return '<span>' . implode(", ", $strings) . '</span>';
19
-    }
18
+		return '<span>' . implode(", ", $strings) . '</span>';
19
+	}
20 20
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     public static function html($data) {
12 12
 		$strings = [];
13 13
 
14
-		foreach($data['meta'] as $k){
14
+		foreach ($data['meta'] as $k) {
15 15
 			$parts = explode("|", $k);
16 16
 			$strings[] = $parts[1];
17 17
 		}
Please login to merge, or discard this patch.
src/Ams/StringAsset.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 StringAsset extends Asset {
7 7
 
8
-    public $type = StringAsset::class;
9
-    public $namespace = 'property';
8
+	public $type = StringAsset::class;
9
+	public $namespace = 'property';
10 10
 
11
-    public static function html($data) {
12
-        return '<span>' . $data['value'] . '</span> STRING';
13
-    }
11
+	public static function html($data) {
12
+		return '<span>' . $data['value'] . '</span> STRING';
13
+	}
14 14
 }
Please login to merge, or discard this patch.
src/Ams/MetatextAsset.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -5,11 +5,11 @@
 block discarded – undo
5 5
 
6 6
 class MetatextAsset extends Asset {
7 7
 
8
-    public $type = MetatextAsset::class;
9
-    public $namespace = 'property';
8
+	public $type = MetatextAsset::class;
9
+	public $namespace = 'property';
10 10
 
11
-    public static function html($data) {
12
-        return '<p>' . $data['value'] . '</p>';
13
-    }
11
+	public static function html($data) {
12
+		return '<p>' . $data['value'] . '</p>';
13
+	}
14 14
 
15 15
 }
Please login to merge, or discard this patch.
src/Ams/HeadingAsset.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -5,11 +5,11 @@
 block discarded – undo
5 5
 
6 6
 class HeadingAsset extends Asset {
7 7
 
8
-    public $shortname = 'Heading';
9
-    public $type = HeadingAsset::class;
10
-    public $namespace = 'property';
8
+	public $shortname = 'Heading';
9
+	public $type = HeadingAsset::class;
10
+	public $namespace = 'property';
11 11
 
12
-    public static function html($data) {
13
-        return '<h3>' . $data['value'] . '</h3>';
14
-    }
12
+	public static function html($data) {
13
+		return '<h3>' . $data['value'] . '</h3>';
14
+	}
15 15
 }
16 16
\ No newline at end of file
Please login to merge, or discard this patch.
src/Ams/DatepickerAsset.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 DatePickerAsset extends Asset {
7 7
 
8
-    public $type = DatePickerAsset::class;
9
-    public $namespace = 'property';
8
+	public $type = DatePickerAsset::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
 }
Please login to merge, or discard this patch.
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.