Test Failed
Pull Request — master (#68)
by yasin
02:44
created
src/Utils/SlotRenderer.php 1 patch
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -4,33 +4,33 @@
 block discarded – undo
4 4
 
5 5
 trait SlotRenderer
6 6
 {
7
-	protected $slotName;
7
+    protected $slotName;
8 8
 
9
-	protected $slots = [];
9
+    protected $slots = [];
10 10
 
11
-	public function startSlot($name)
12
-	{
13
-		if (ob_start()) {
14
-			$this->slotName = $name;
15
-		}
16
-	}
11
+    public function startSlot($name)
12
+    {
13
+        if (ob_start()) {
14
+            $this->slotName = $name;
15
+        }
16
+    }
17 17
 
18
-	public function renderSlot($data)
19
-	{
20
-		$this->slots[$this->slotName] = $data ?? "";
21
-	}
18
+    public function renderSlot($data)
19
+    {
20
+        $this->slots[$this->slotName] = $data ?? "";
21
+    }
22 22
 
23
-	public function hasSlot()
24
-	{
25
-		return !empty($this->slots);
26
-	}
23
+    public function hasSlot()
24
+    {
25
+        return !empty($this->slots);
26
+    }
27 27
 
28
-	/**
29
-	 * Assign slots to $_viewData
30
-	 */
31
-	private function assignSlots()
32
-	{
33
-		if ($this->hasSlot())
34
-			$this->_viewData = array_merge($this->_viewData, $this->slots);
35
-	}
28
+    /**
29
+     * Assign slots to $_viewData
30
+     */
31
+    private function assignSlots()
32
+    {
33
+        if ($this->hasSlot())
34
+            $this->_viewData = array_merge($this->_viewData, $this->slots);
35
+    }
36 36
 }
Please login to merge, or discard this patch.