Passed
Push — release-3.2.0 ( 42857a...93efa8 )
by Daniel
09:12
created
services/template/extensions/format_date.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -15,11 +15,11 @@  discard block
 block discarded – undo
15 15
 	protected $user;
16 16
 
17 17
 	/**
18
-	* Constructor
19
-	*
20
-	* @param \phpbb\user $user
21
-	* @return \phpbb\template\twig\extension
22
-	*/
18
+	 * Constructor
19
+	 *
20
+	 * @param \phpbb\user $user
21
+	 * @return \phpbb\template\twig\extension
22
+	 */
23 23
 	public function __construct(\phpbb\user $user)
24 24
 	{
25 25
 		$this->user = $user;
@@ -28,24 +28,24 @@  discard block
 block discarded – undo
28 28
 	/**
29 29
 	 * @inheritdoc
30 30
 	 */
31
-    public function getFilters()
32
-    {
33
-        return [
34
-            new \Twig\TwigFilter('format_date', [$this, 'format_date_filter']),
35
-        ];
36
-    }
31
+	public function getFilters()
32
+	{
33
+		return [
34
+			new \Twig\TwigFilter('format_date', [$this, 'format_date_filter']),
35
+		];
36
+	}
37 37
 
38 38
 	/**
39
-	* Format user date
40
-	*
41
-	* @param int $gmepoch unix timestamp
42
-	* @param string $format date format in date() notation. | used to indicate relative dates, for example |d m Y|, h:i is translated to Today, h:i.
43
-	* @param bool $forcedate force non-relative date format.
44
-	*
45
-	* @return mixed translated date
46
-	*/
47
-    public function format_date_filter($timestamp, $format = false, $forcedate = false)
48
-    {
49
-        return $this->user->format_date($timestamp, $format, $forcedate);
50
-    }
39
+	 * Format user date
40
+	 *
41
+	 * @param int $gmepoch unix timestamp
42
+	 * @param string $format date format in date() notation. | used to indicate relative dates, for example |d m Y|, h:i is translated to Today, h:i.
43
+	 * @param bool $forcedate force non-relative date format.
44
+	 *
45
+	 * @return mixed translated date
46
+	 */
47
+	public function format_date_filter($timestamp, $format = false, $forcedate = false)
48
+	{
49
+		return $this->user->format_date($timestamp, $format, $forcedate);
50
+	}
51 51
 }
Please login to merge, or discard this patch.