Completed
Push — master ( 8ac30c...a5f7c5 )
by Yann
02:01
created
src/Converters/HTML/GenericHTMLConverter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 			]);
102 102
 		$domElementB = $this->buildElement($document, $options[self::MAIN_TAG_KEY][1]);
103 103
 		
104
-		if(!empty($node->getIcon()) && $options[self::MAIN_ICON_KEY]) {
104
+		if (!empty($node->getIcon()) && $options[self::MAIN_ICON_KEY]) {
105 105
 			$icon = $node->getIcon();
106 106
 			$domElementImg = $document->createElement('img');
107 107
 			$domElementImg->setAttribute('src', $icon->getFilePath());
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 		}
111 111
 		
112 112
 		$text = $document->createTextNode($node->getText());
113
-		if(isset($options[self::MAIN_TAG_KEY][2])) {
113
+		if (isset($options[self::MAIN_TAG_KEY][2])) {
114 114
 			$domElementC = $this->buildElement($document, $options[self::MAIN_TAG_KEY][2]);
115 115
 			$domElementC->appendChild($text);
116 116
 			$domElementB->appendChild($domElementC);
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 		
122 122
 		$domElementA->appendChild($domElementB);
123 123
 		
124
-		foreach($node->getChildren() as $child) {
124
+		foreach ($node->getChildren() as $child) {
125 125
 			$domElementB->appendChild($this->buildHTMLTreeFromNode($document, $child, $options));
126 126
 		}
127 127
 		
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 	 */
139 139
 	private function buildElement(DOMDocument $document, array $description) {
140 140
 		$domElement = $document->createElement($description[self::TAG_KEY]);
141
-		foreach($description[self::ATTRIBUTES_KEY] as $name => $attribute) {
141
+		foreach ($description[self::ATTRIBUTES_KEY] as $name => $attribute) {
142 142
 			$domElement->setAttribute($name, $attribute);
143 143
 		}
144 144
 		
Please login to merge, or discard this patch.
src/Models/Icon.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 	 * @param String $extension : The extension of the icon file without the leading dot. If it is a builtin icon, then it is 'png'.
34 34
 	 */ 
35 35
 	public function __construct($name = null, $extension = null, $filePath = null, $size = null) {
36
-		if(!empty($name)) {
36
+		if (!empty($name)) {
37 37
 			$this->setIcon($name, $extension, $filePath, $size);
38 38
 		}
39 39
 	}
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 		$this->extension = $extension ?: 'png';
53 53
 		$this->filePath = $filePath ?: realpath(__DIR__.'/../../img/'.$this->name.'.'.$this->extension);
54 54
 		
55
-		if(!file_exists($this->filePath)) {
55
+		if (!file_exists($this->filePath)) {
56 56
 			throw new UnexistentFileException('The file '.$this->filePath.' does not exist !');
57 57
 		}
58 58
 		
Please login to merge, or discard this patch.