Passed
Push — develop ( 834258...491c3e )
by Daniel
03:18
created
model/base_entity.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,8 +56,8 @@  discard block
 block discarded – undo
56 56
 	}
57 57
 
58 58
 	/**
59
-	* {@inheritdoc}
60
-	*/
59
+	 * {@inheritdoc}
60
+	 */
61 61
 	public function to_array()
62 62
 	{
63 63
 		$attributes = $this->get_attributes();
@@ -74,8 +74,8 @@  discard block
 block discarded – undo
74 74
 	}
75 75
 
76 76
 	/**
77
-	* {@inheritdoc}
78
-	*/
77
+	 * {@inheritdoc}
78
+	 */
79 79
 	public function to_db()
80 80
 	{
81 81
 		$this->check_required();
Please login to merge, or discard this patch.
services/menus/nestedset.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -14,12 +14,12 @@
 block discarded – undo
14 14
 class nestedset extends builder
15 15
 {
16 16
 	/**
17
-	* Construct
18
-	*
19
-	* @param \phpbb\db\driver\driver_interface	$db				Database connection
20
-	* @param \phpbb\lock\db						$lock			Lock class used to lock the table when moving forums around
21
-	* @param string								$table_name		Table name
22
-	*/
17
+	 * Construct
18
+	 *
19
+	 * @param \phpbb\db\driver\driver_interface	$db				Database connection
20
+	 * @param \phpbb\lock\db						$lock			Lock class used to lock the table when moving forums around
21
+	 * @param string								$table_name		Table name
22
+	 */
23 23
 	public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\lock\db $lock, $table_name)
24 24
 	{
25 25
 		parent::__construct(
Please login to merge, or discard this patch.
services/template/extensions/format_date.php 1 patch
Indentation   +13 added lines, -13 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;
@@ -36,14 +36,14 @@  discard block
 block discarded – undo
36 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
-	*/
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 47
 	public function format_date_filter($timestamp, $format = false, $forcedate = false)
48 48
 	{
49 49
 		return $this->user->format_date($timestamp, $format, $forcedate);
Please login to merge, or discard this patch.
ext.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 
44 44
 	/**
45 45
 	 * return bool
46
-	*/
46
+	 */
47 47
 	protected function image_directory_is_ready()
48 48
 	{
49 49
 		$root_path = $this->container->getParameter('core.root_path');
Please login to merge, or discard this patch.
services/filemanager.php 1 patch
Indentation   +61 added lines, -61 removed lines patch added patch discarded remove patch
@@ -15,77 +15,77 @@
 block discarded – undo
15 15
  */
16 16
 class filemanager
17 17
 {
18
-    /** @var \phpbb\filesystem\filesystem */
19
-    protected $filesystem;
18
+	/** @var \phpbb\filesystem\filesystem */
19
+	protected $filesystem;
20 20
 
21
-    /** @var \phpbb\user */
22
-    protected $user;
21
+	/** @var \phpbb\user */
22
+	protected $user;
23 23
 
24
-    /** @var string */
25
-    protected $phpbb_root_path;
24
+	/** @var string */
25
+	protected $phpbb_root_path;
26 26
 
27
-    /** @var string */
28
-    protected $user_dir = false;
27
+	/** @var string */
28
+	protected $user_dir = false;
29 29
 
30
-    /** @var string */
31
-    protected $upload_dir = 'images/sitemaker_uploads/source/';
30
+	/** @var string */
31
+	protected $upload_dir = 'images/sitemaker_uploads/source/';
32 32
 
33
-    /**
34
-     * Constructor
35
-     *
36
-     * @param \phpbb\filesystem\filesystem	$filesystem			File system
37
-     * @param \phpbb\user					$user				User object
38
-     * @param string						$phpbb_root_path	phpBB root path
39
-     */
40
-    public function __construct(\phpbb\filesystem\filesystem $filesystem, \phpbb\user $user, $phpbb_root_path)
41
-    {
42
-        $this->filesystem = $filesystem;
43
-        $this->user = $user;
44
-        $this->phpbb_root_path = $phpbb_root_path;
45
-    }
33
+	/**
34
+	 * Constructor
35
+	 *
36
+	 * @param \phpbb\filesystem\filesystem	$filesystem			File system
37
+	 * @param \phpbb\user					$user				User object
38
+	 * @param string						$phpbb_root_path	phpBB root path
39
+	 */
40
+	public function __construct(\phpbb\filesystem\filesystem $filesystem, \phpbb\user $user, $phpbb_root_path)
41
+	{
42
+		$this->filesystem = $filesystem;
43
+		$this->user = $user;
44
+		$this->phpbb_root_path = $phpbb_root_path;
45
+	}
46 46
 
47
-    /**
48
-     * @return string
49
-     */
50
-    public function get_upload_dir()
51
-    {
52
-        return $this->upload_dir;
53
-    }
47
+	/**
48
+	 * @return string
49
+	 */
50
+	public function get_upload_dir()
51
+	{
52
+		return $this->upload_dir;
53
+	}
54 54
 
55
-    /**
56
-     * @return string
57
-     */
58
-    public function get_upload_destination()
59
-    {
60
-        return $this->upload_dir . $this->get_user_dir();
61
-    }
55
+	/**
56
+	 * @return string
57
+	 */
58
+	public function get_upload_destination()
59
+	{
60
+		return $this->upload_dir . $this->get_user_dir();
61
+	}
62 62
 
63
-    /**
64
-     * @return string
65
-     */
66
-    public function get_user_dir()
67
-    {
68
-        if (!$this->user_dir)
69
-        {
70
-            $this->set_user_dir();
71
-        }
63
+	/**
64
+	 * @return string
65
+	 */
66
+	public function get_user_dir()
67
+	{
68
+		if (!$this->user_dir)
69
+		{
70
+			$this->set_user_dir();
71
+		}
72 72
 
73
-        return $this->user_dir;
74
-    }
73
+		return $this->user_dir;
74
+	}
75 75
 
76
-    /**
77
-     * @return string
78
-     */
79
-    protected function set_user_dir()
80
-    {
81
-        // if user is not founder, they must have a directory
82
-        $this->user_dir = ($this->user->data['user_type'] != USER_FOUNDER) ? 'users/' . $this->user->data['username'] . '/' : '';
76
+	/**
77
+	 * @return string
78
+	 */
79
+	protected function set_user_dir()
80
+	{
81
+		// if user is not founder, they must have a directory
82
+		$this->user_dir = ($this->user->data['user_type'] != USER_FOUNDER) ? 'users/' . $this->user->data['username'] . '/' : '';
83 83
 
84
-        $destination = $this->phpbb_root_path . $this->upload_dir . $this->user_dir;
84
+		$destination = $this->phpbb_root_path . $this->upload_dir . $this->user_dir;
85 85
 
86
-        if (!is_dir($destination))
87
-        {
88
-            $this->filesystem->mkdir($destination, 0755);
89
-        }
90
-    }
86
+		if (!is_dir($destination))
87
+		{
88
+			$this->filesystem->mkdir($destination, 0755);
89
+		}
90
+	}
91 91
 }
Please login to merge, or discard this patch.