Passed
Push — master ( 63912c...2646fd )
by Julius
15:33 queued 12s
created
lib/public/Files/Template/TemplateFileCreator.php 1 patch
Indentation   +95 added lines, -95 removed lines patch added patch discarded remove patch
@@ -30,110 +30,110 @@
 block discarded – undo
30 30
  * @since 21.0.0
31 31
  */
32 32
 final class TemplateFileCreator implements \JsonSerializable {
33
-	protected $appId;
34
-	protected $mimetypes = [];
35
-	protected $actionName;
36
-	protected $fileExtension;
37
-	protected $iconClass;
38
-	protected $ratio = null;
39
-	protected $order = 100;
40
-	/**
41
-	 * @since 27.0.0
42
-	 */
43
-	protected string $actionLabel;
33
+    protected $appId;
34
+    protected $mimetypes = [];
35
+    protected $actionName;
36
+    protected $fileExtension;
37
+    protected $iconClass;
38
+    protected $ratio = null;
39
+    protected $order = 100;
40
+    /**
41
+     * @since 27.0.0
42
+     */
43
+    protected string $actionLabel;
44 44
 
45
-	/**
46
-	 * @since 21.0.0
47
-	 */
48
-	public function __construct(
49
-		string $appId, string $actionName, string $fileExtension
50
-	) {
51
-		$this->appId = $appId;
52
-		$this->actionName = $actionName;
53
-		$this->fileExtension = $fileExtension;
54
-	}
45
+    /**
46
+     * @since 21.0.0
47
+     */
48
+    public function __construct(
49
+        string $appId, string $actionName, string $fileExtension
50
+    ) {
51
+        $this->appId = $appId;
52
+        $this->actionName = $actionName;
53
+        $this->fileExtension = $fileExtension;
54
+    }
55 55
 
56
-	/**
57
-	 * @since 21.0.0
58
-	 */
59
-	public function getAppId(): string {
60
-		return $this->appId;
61
-	}
56
+    /**
57
+     * @since 21.0.0
58
+     */
59
+    public function getAppId(): string {
60
+        return $this->appId;
61
+    }
62 62
 
63
-	/**
64
-	 * @since 21.0.0
65
-	 */
66
-	public function setIconClass(string $iconClass): TemplateFileCreator {
67
-		$this->iconClass = $iconClass;
68
-		return $this;
69
-	}
63
+    /**
64
+     * @since 21.0.0
65
+     */
66
+    public function setIconClass(string $iconClass): TemplateFileCreator {
67
+        $this->iconClass = $iconClass;
68
+        return $this;
69
+    }
70 70
 
71
-	/**
72
-	 * @since 21.0.0
73
-	 */
74
-	public function addMimetype(string $mimetype): TemplateFileCreator {
75
-		$this->mimetypes[] = $mimetype;
76
-		return $this;
77
-	}
71
+    /**
72
+     * @since 21.0.0
73
+     */
74
+    public function addMimetype(string $mimetype): TemplateFileCreator {
75
+        $this->mimetypes[] = $mimetype;
76
+        return $this;
77
+    }
78 78
 
79
-	/**
80
-	 * @since 21.0.0
81
-	 */
82
-	public function getMimetypes(): array {
83
-		return $this->mimetypes;
84
-	}
79
+    /**
80
+     * @since 21.0.0
81
+     */
82
+    public function getMimetypes(): array {
83
+        return $this->mimetypes;
84
+    }
85 85
 
86
-	/**
87
-	 * @since 21.0.0
88
-	 */
89
-	public function setRatio(float $ratio): TemplateFileCreator {
90
-		$this->ratio = $ratio;
91
-		return $this;
92
-	}
86
+    /**
87
+     * @since 21.0.0
88
+     */
89
+    public function setRatio(float $ratio): TemplateFileCreator {
90
+        $this->ratio = $ratio;
91
+        return $this;
92
+    }
93 93
 
94
-	/**
95
-	 * @param int $order order in which the create action shall be listed
96
-	 * @since 21.0.0
97
-	 */
98
-	public function setOrder(int $order): TemplateFileCreator {
99
-		$this->order = $order;
100
-		return $this;
101
-	}
94
+    /**
95
+     * @param int $order order in which the create action shall be listed
96
+     * @since 21.0.0
97
+     */
98
+    public function setOrder(int $order): TemplateFileCreator {
99
+        $this->order = $order;
100
+        return $this;
101
+    }
102 102
 
103
-	/**
104
-	 * @since 21.0.0
105
-	 */
106
-	public function getOrder(): int {
107
-		return $this->order;
108
-	}
103
+    /**
104
+     * @since 21.0.0
105
+     */
106
+    public function getOrder(): int {
107
+        return $this->order;
108
+    }
109 109
 
110
-	/**
111
-	 * @since 27.0.0
112
-	 */
113
-	public function setActionLabel(string $actionLabel): TemplateFileCreator {
114
-		$this->actionLabel = $actionLabel;
115
-		return $this;
116
-	}
110
+    /**
111
+     * @since 27.0.0
112
+     */
113
+    public function setActionLabel(string $actionLabel): TemplateFileCreator {
114
+        $this->actionLabel = $actionLabel;
115
+        return $this;
116
+    }
117 117
 
118
-	/**
119
-	 * @since 27.0.0
120
-	 */
121
-	public function getActionLabel(): string {
122
-		return $this->actionLabel;
123
-	}
118
+    /**
119
+     * @since 27.0.0
120
+     */
121
+    public function getActionLabel(): string {
122
+        return $this->actionLabel;
123
+    }
124 124
 
125
-	/**
126
-	 * @since 21.0.0
127
-	 */
128
-	public function jsonSerialize(): array {
129
-		return [
130
-			'app' => $this->appId,
131
-			'label' => $this->actionName,
132
-			'extension' => $this->fileExtension,
133
-			'iconClass' => $this->iconClass,
134
-			'mimetypes' => $this->mimetypes,
135
-			'ratio' => $this->ratio,
136
-			'actionLabel' => $this->actionLabel,
137
-		];
138
-	}
125
+    /**
126
+     * @since 21.0.0
127
+     */
128
+    public function jsonSerialize(): array {
129
+        return [
130
+            'app' => $this->appId,
131
+            'label' => $this->actionName,
132
+            'extension' => $this->fileExtension,
133
+            'iconClass' => $this->iconClass,
134
+            'mimetypes' => $this->mimetypes,
135
+            'ratio' => $this->ratio,
136
+            'actionLabel' => $this->actionLabel,
137
+        ];
138
+    }
139 139
 }
Please login to merge, or discard this patch.