Skip to content

Commit c94cbcd

Browse files
committed
Fix Code styling erros
This should make scrutinizer happy
1 parent 4e8a5a7 commit c94cbcd

26 files changed

+581
-2
lines changed

core/album/album.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class album
4343
protected $watch_table;
4444

4545
/** @var */
46-
protected $contest_table;
46+
protected $contests_table;
4747

4848
/** @var */
4949
protected $albums_table;

core/album/display.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@ class display
2222
protected $user;
2323
protected $gallery_auth;
2424
protected $gallery_user;
25+
protected $misc;
2526
protected $root_path;
2627
protected $php_ext;
2728
protected $table_albums;
2829
protected $table_contests;
2930
protected $table_moderators;
3031
protected $table_tracking;
32+
protected $language;
3133
public $album_start;
3234
public $album_limit;
3335
public $albums_total;

core/album/loader.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ class loader
2424
/** @var array */
2525
protected $data;
2626

27+
/** @var \phpbbgallery\core\contest */
28+
protected $contest;
29+
2730
/**
2831
* Constructor
2932
*

core/album/manage.php

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,72 @@ class manage
2828

2929
private $u_action = '';
3030

31+
/** @var \phpbb\user */
32+
protected $user;
33+
34+
/** @var \phpbb\language\language */
35+
protected $language;
36+
37+
/** @var \phpbb\request\request */
38+
protected $request;
39+
40+
/** @var \phpbb\db\driver\driver_interface */
41+
protected $db;
42+
43+
/** @var \phpbb\event\dispatcher */
44+
protected $dispatcher;
45+
46+
/** @var \phpbbgallery\core\auth\auth */
47+
protected $gallery_auth;
48+
49+
/** @var \phpbbgallery\core\album\album */
50+
protected $gallery_album;
51+
52+
/** @var \phpbbgallery\core\album\display */
53+
protected $gallery_display;
54+
55+
/** @var \phpbbgallery\core\image\image */
56+
protected $gallery_image;
57+
58+
/** @var \phpbbgallery\core\cache */
59+
protected $gallery_cache;
60+
61+
/** @var \phpbbgallery\core\user */
62+
protected $gallery_user;
63+
64+
/** @var \phpbbgallery\core\config */
65+
protected $gallery_config;
66+
67+
/** @var \phpbbgallery\core\contest */
68+
protected $gallery_contest;
69+
70+
/** @var \phpbbgallery\core\report */
71+
protected $gallery_report;
72+
73+
/** @var \phpbbgallery\core\log */
74+
protected $gallery_log;
75+
76+
/** @var \phpbbgallery\core\notification */
77+
protected $gallery_notification;
78+
79+
/** @var string */
80+
protected $albums_table;
81+
82+
/** @var string */
83+
protected $images_table;
84+
85+
/** @var string */
86+
protected $comments_table;
87+
88+
/** @var string */
89+
protected $permissions_table;
90+
91+
/** @var string */
92+
protected $moderators_table;
93+
94+
/** @var string */
95+
protected $contests_table;
96+
3197
/**
3298
* manage constructor.
3399
* @param \phpbb\user $user

core/auth/auth.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,18 @@ class auth
5858
*/
5959
protected $user;
6060

61+
/**
62+
* phpBB user object
63+
* @var \phpbb\user
64+
*/
65+
protected $phpbb_user;
66+
67+
/**
68+
* phpBB auth object
69+
* @var \phpbb\auth\auth
70+
*/
71+
protected $auth;
72+
6173
/**
6274
* Gallery permissions table
6375
* @var string
@@ -76,6 +88,12 @@ class auth
7688
*/
7789
protected $table_users;
7890

91+
/**
92+
* Gallery albums table
93+
* @var string
94+
*/
95+
protected $table_albums;
96+
7997
/**
8098
* Construct
8199
*

core/comment.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,27 @@
1212

1313
class comment
1414
{
15+
/** @var \phpbb\user */
16+
protected $user;
17+
18+
/** @var \phpbb\db\driver\driver_interface */
19+
protected $db;
20+
21+
/** @var \phpbbgallery\core\config */
22+
protected $config;
23+
24+
/** @var \phpbbgallery\core\auth\auth */
25+
protected $auth;
26+
27+
/** @var \phpbbgallery\core\block */
28+
protected $block;
29+
30+
/** @var string */
31+
protected $comments_table;
32+
33+
/** @var string */
34+
protected $images_table;
35+
1536
/**
1637
* Constructor
1738
*

core/config.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ class config
2222
private $phpbb_phpEx;
2323
private $phpbb_root_path;
2424

25+
/** @var \phpbb\config\config */
26+
private $config;
27+
2528
private $configs_array = array(
2629
'album_display' => 254,
2730
'album_images' => 2500,

core/contest.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,26 @@
1616

1717
class contest
1818
{
19+
/**
20+
* @var \phpbb\db\driver\driver_interface
21+
*/
22+
private $db;
23+
24+
/**
25+
* @var \phpbbgallery\core\config
26+
*/
27+
private $gallery_config;
28+
29+
/**
30+
* @var string
31+
*/
32+
private $images_table;
33+
34+
/**
35+
* @var string
36+
*/
37+
private $contest_table;
38+
1939
/**
2040
* I will have to see where is contest used except here and make it work
2141
* but for the time being - redefine contest constants here as private

core/controller/album.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,24 @@ class album
4545
/* @var \phpbbgallery\core\auth\level */
4646
protected $auth_level;
4747

48+
/** @var \phpbbgallery\core\notification\helper */
49+
protected $notifications_helper;
50+
51+
/** @var \phpbbgallery\core\url */
52+
protected $url;
53+
54+
/** @var \phpbbgallery\core\image\image */
55+
protected $image;
56+
57+
/** @var \phpbbgallery\core\config */
58+
protected $gallery_config;
59+
60+
/** @var \phpbb\request\request */
61+
protected $request;
62+
63+
/** @var \phpbbgallery\core\contest */
64+
protected $contest;
65+
4866
/* @var string */
4967
protected $table_images;
5068

core/controller/file.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ class file
3939
/* @var string */
4040
protected $path_watermark;
4141

42+
/* @var \phpbbgallery\core\file\file */
43+
protected $tool;
44+
45+
/* @var \phpbb\request\request */
46+
protected $request;
47+
4248
/* @var string */
4349
protected $table_albums;
4450

0 commit comments

Comments
 (0)