Completed
Push — master ( 1bd818...6fba0f )
by Richard
02:31
created
src/Property/ContentPseudo.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,5 +2,5 @@
 block discarded – undo
2 2
 namespace Transphporm\Property;
3 3
 
4 4
 interface ContentPseudo {
5
-    public function run($value, $pseudoArgs, $element);
5
+	public function run($value, $pseudoArgs, $element);
6 6
 }
Please login to merge, or discard this patch.
src/Property/Content.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,9 +39,9 @@
 block discarded – undo
39 39
 		return (isset($rules['content-mode'])) ? $rules['content-mode']->read() : 'append';
40 40
 	}
41 41
 
42
-    public function addContentPseudo($name, ContentPseudo $contentPseudo) {
43
-        $this->contentPseudo[$name] = $contentPseudo;
44
-    }
42
+	public function addContentPseudo($name, ContentPseudo $contentPseudo) {
43
+		$this->contentPseudo[$name] = $contentPseudo;
44
+	}
45 45
     
46 46
 	private function processPseudo($value, $element, $pseudoMatcher) {
47 47
 		foreach ($this->contentPseudo as $pseudoName => $pseudoFunction) {
Please login to merge, or discard this patch.
src/Property/ContentPseudo/Attr.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Transphporm\Property\ContentPseudo;
3 3
 class Attr implements \Transphporm\Property\ContentPseudo {
4
-    public function run($value, $pseudoArgs, $element) {
5
-        $element->setAttribute($pseudoArgs, implode('', $value));
6
-    }
4
+	public function run($value, $pseudoArgs, $element) {
5
+		$element->setAttribute($pseudoArgs, implode('', $value));
6
+	}
7 7
 }
Please login to merge, or discard this patch.
src/Property/ContentPseudo/BeforeAfter.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,18 +1,18 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Transphporm\Property\ContentPseudo;
3 3
 class BeforeAfter implements \Transphporm\Property\ContentPseudo {
4
-    private $insertLocation;
5
-    private $content;
4
+	private $insertLocation;
5
+	private $content;
6 6
 
7
-    public function __construct($insertLocation, \Transphporm\Property\Content $content) {
8
-        $this->insertLocation = $insertLocation;
7
+	public function __construct($insertLocation, \Transphporm\Property\Content $content) {
8
+		$this->insertLocation = $insertLocation;
9 9
 		$this->content = $content;
10 10
 	}
11 11
 
12
-    public function run($value, $pseudoArgs, $element) {
13
-        foreach ($this->content->getNode($value, $element->ownerDocument) as $node) {
12
+	public function run($value, $pseudoArgs, $element) {
13
+		foreach ($this->content->getNode($value, $element->ownerDocument) as $node) {
14 14
 			if ($this->insertLocation === "before") $element->insertBefore($node, $element->firstChild);
15
-            else if ($this->insertLocation === "after") $element->appendChild($node);
15
+			else if ($this->insertLocation === "after") $element->appendChild($node);
16 16
 		}
17
-    }
17
+	}
18 18
 }
Please login to merge, or discard this patch.
src/Property/ContentPseudo/Headers.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Transphporm\Property\ContentPseudo;
3 3
 class Headers implements \Transphporm\Property\ContentPseudo {
4
-    private $headers;
4
+	private $headers;
5 5
 
6
-    public function __construct(&$headers) {
6
+	public function __construct(&$headers) {
7 7
 		$this->headers = &$headers;
8 8
 	}
9 9
 
10
-    public function run($value, $pseudoArgs, $element) {
11
-        $this->headers[] = [$pseudoArgs, implode('', $value)];
12
-    }
10
+	public function run($value, $pseudoArgs, $element) {
11
+		$this->headers[] = [$pseudoArgs, implode('', $value)];
12
+	}
13 13
 }
Please login to merge, or discard this patch.
src/Module/Basics.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,15 +13,15 @@
 block discarded – undo
13 13
 		$data = $config->getFunctionSet();
14 14
 		$headers = &$config->getHeaders();
15 15
 
16
-        $content = new \Transphporm\Property\Content($config->getFormatter());
16
+		$content = new \Transphporm\Property\Content($config->getFormatter());
17 17
 		$config->registerProperty('content', $content);
18 18
 		$config->registerProperty('repeat', new \Transphporm\Property\Repeat($data, $config->getElementData(), $config->getLine(), $config->getFilePath()));
19 19
 		$config->registerProperty('display', new \Transphporm\Property\Display);
20 20
 		$config->registerProperty('bind', new \Transphporm\Property\Bind($config->getElementData()));
21 21
 
22
-        $content->addContentPseudo("before", new \Transphporm\Property\ContentPseudo\BeforeAfter("before", $content));
23
-        $content->addContentPseudo("after", new \Transphporm\Property\ContentPseudo\BeforeAfter("after", $content));
24
-        $content->addContentPseudo("attr", new \Transphporm\Property\ContentPseudo\Attr());
25
-        $content->addContentPseudo("header", new \Transphporm\Property\ContentPseudo\Headers($headers));
22
+		$content->addContentPseudo("before", new \Transphporm\Property\ContentPseudo\BeforeAfter("before", $content));
23
+		$content->addContentPseudo("after", new \Transphporm\Property\ContentPseudo\BeforeAfter("after", $content));
24
+		$content->addContentPseudo("attr", new \Transphporm\Property\ContentPseudo\Attr());
25
+		$content->addContentPseudo("header", new \Transphporm\Property\ContentPseudo\Headers($headers));
26 26
 	}
27 27
 }
Please login to merge, or discard this patch.