Completed
Branch develop (b48c92)
by
unknown
23:11
created
htdocs/includes/odtphp/Segment.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -158,17 +158,17 @@
 block discarded – undo
158 158
 	}
159 159
 
160 160
 	/**
161
-	* Function to replace macros for invoice short and long month, invoice year
162
-	*
163
-	* Substitution occur when the invoice is generated, not considering the invoice date
164
-	* so do not (re)generate in a diferent date than the one that the invoice belongs to
165
-	* Perhaps it would be better to use the invoice issued date but I still do not know
166
-	* how to get it here
167
-	*
168
-	* Miguel Erill 09/04/2017
169
-	*
170
-	* @param	string	$text	String to convert
171
-	*/
161
+	 * Function to replace macros for invoice short and long month, invoice year
162
+	 *
163
+	 * Substitution occur when the invoice is generated, not considering the invoice date
164
+	 * so do not (re)generate in a diferent date than the one that the invoice belongs to
165
+	 * Perhaps it would be better to use the invoice issued date but I still do not know
166
+	 * how to get it here
167
+	 *
168
+	 * Miguel Erill 09/04/2017
169
+	 *
170
+	 * @param	string	$text	String to convert
171
+	 */
172 172
 	public function macroReplace($text)
173 173
 	{
174 174
 		include_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
Please login to merge, or discard this patch.
htdocs/includes/odtphp/SegmentIterator.php 1 patch
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -10,55 +10,55 @@
 block discarded – undo
10 10
  */
11 11
 class SegmentIterator implements RecursiveIterator
12 12
 {
13
-    private $ref;
14
-    private $key;
13
+	private $ref;
14
+	private $key;
15 15
 	private $keys;
16
-    public function __construct(array $ref)
17
-    {
18
-        $this->ref = $ref;
19
-        $this->key = 0;
20
-        $this->keys = array_keys($this->ref);
21
-    }
16
+	public function __construct(array $ref)
17
+	{
18
+		$this->ref = $ref;
19
+		$this->key = 0;
20
+		$this->keys = array_keys($this->ref);
21
+	}
22 22
 	#[\ReturnTypeWillChange]
23
-    public function hasChildren()
24
-    {
25
-        return $this->valid() && $this->current() instanceof Segment;
26
-    }
23
+	public function hasChildren()
24
+	{
25
+		return $this->valid() && $this->current() instanceof Segment;
26
+	}
27 27
 	#[\ReturnTypeWillChange]
28
-    public function current()
29
-    {
30
-        return $this->ref[$this->keys[$this->key]];
31
-    }
28
+	public function current()
29
+	{
30
+		return $this->ref[$this->keys[$this->key]];
31
+	}
32 32
 	#[\ReturnTypeWillChange]
33
-    function getChildren()
34
-    {
35
-        return new self($this->current()->children);
36
-    }
33
+	function getChildren()
34
+	{
35
+		return new self($this->current()->children);
36
+	}
37 37
 	#[\ReturnTypeWillChange]
38
-    public function key()
39
-    {
40
-        return $this->key;
41
-    }
38
+	public function key()
39
+	{
40
+		return $this->key;
41
+	}
42 42
 	#[\ReturnTypeWillChange]
43
-    public function valid()
44
-    {
45
-        return array_key_exists($this->key, $this->keys);
46
-    }
43
+	public function valid()
44
+	{
45
+		return array_key_exists($this->key, $this->keys);
46
+	}
47 47
 	/**
48 48
 	 * @return void
49 49
 	 */
50 50
 	#[\ReturnTypeWillChange]
51
-    public function rewind()
52
-    {
53
-        $this->key = 0;
54
-    }
51
+	public function rewind()
52
+	{
53
+		$this->key = 0;
54
+	}
55 55
 	/**
56 56
 	 * @return void
57 57
 	 */
58 58
 	#[\ReturnTypeWillChange]
59
-    public function next()
60
-    {
61
-        $this->key ++;
62
-    }
59
+	public function next()
60
+	{
61
+		$this->key ++;
62
+	}
63 63
 }
64 64
 
Please login to merge, or discard this patch.