Passed
Push — master ( 9c08df...f49242 )
by Stanislav
03:23
created
core/notification/events/phpbbgallery_image_approved.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -11,20 +11,20 @@  discard block
 block discarded – undo
11 11
 class phpbbgallery_image_approved extends \phpbb\notification\type\base
12 12
 {
13 13
 	/**
14
-	* Get notification type name
15
-	*
16
-	* @return string
17
-	*/
14
+	 * Get notification type name
15
+	 *
16
+	 * @return string
17
+	 */
18 18
 	public function get_type()
19 19
 	{
20 20
 		return 'phpbbgallery.core.notification.image_approved';
21 21
 	}
22 22
 	/**
23
-	* Notification option data (for outputting to the user)
24
-	*
25
-	* @var bool|array False if the service should use it's default data
26
-	* 					Array of data (including keys 'id', 'lang', and 'group')
27
-	*/
23
+	 * Notification option data (for outputting to the user)
24
+	 *
25
+	 * @var bool|array False if the service should use it's default data
26
+	 * 					Array of data (including keys 'id', 'lang', and 'group')
27
+	 */
28 28
 	public static $notification_option = array(
29 29
 		'lang'	=> 'NOTIFICATION_TYPE_PHPBBGALLERY_IMAGE_APPROVED',
30 30
 	);
@@ -46,10 +46,10 @@  discard block
 block discarded – undo
46 46
 	}
47 47
 
48 48
 	/**
49
-	* Is this type available to the current user (defines whether or not it will be shown in the UCP Edit notification options)
50
-	*
51
-	* @return bool True/False whether or not this is available to the user
52
-	*/
49
+	 * Is this type available to the current user (defines whether or not it will be shown in the UCP Edit notification options)
50
+	 *
51
+	 * @return bool True/False whether or not this is available to the user
52
+	 */
53 53
 	public function is_available()
54 54
 	{
55 55
 		return true;
@@ -140,10 +140,10 @@  discard block
 block discarded – undo
140 140
 	}
141 141
 
142 142
 	/**
143
-	* Users needed to query before this notification can be displayed
144
-	*
145
-	* @return array Array of user_ids
146
-	*/
143
+	 * Users needed to query before this notification can be displayed
144
+	 *
145
+	 * @return array Array of user_ids
146
+	 */
147 147
 	public function users_to_query()
148 148
 	{
149 149
 		return array();
@@ -151,14 +151,14 @@  discard block
 block discarded – undo
151 151
 
152 152
 
153 153
 	/**
154
-	* Function for preparing the data for insertion in an SQL query
155
-	* (The service handles insertion)
156
-	*
157
-	* @param array $data The data for the updated rules
158
-	* @param array $pre_create_data Data from pre_create_insert_array()
159
-	*
160
-	* @return array Array of data ready to be inserted into the database
161
-	*/
154
+	 * Function for preparing the data for insertion in an SQL query
155
+	 * (The service handles insertion)
156
+	 *
157
+	 * @param array $data The data for the updated rules
158
+	 * @param array $pre_create_data Data from pre_create_insert_array()
159
+	 *
160
+	 * @return array Array of data ready to be inserted into the database
161
+	 */
162 162
 	public function create_insert_array($data, $pre_create_data = array())
163 163
 	{
164 164
 		$this->set_data('album_name', $data['album_name']);
Please login to merge, or discard this patch.
core/notification/helper.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -235,11 +235,11 @@
 block discarded – undo
235 235
 	}
236 236
 
237 237
 	/**
238
-	* Remove albums from watch-list
239
-	*
240
-	* @param	mixed	$album_ids		Array or integer with album_id where we delete from the watch-list.
241
-	* @param	mixed	$user_ids		If not set, it uses the currents user_id
242
-	*/
238
+	 * Remove albums from watch-list
239
+	 *
240
+	 * @param	mixed	$album_ids		Array or integer with album_id where we delete from the watch-list.
241
+	 * @param	mixed	$user_ids		If not set, it uses the currents user_id
242
+	 */
243 243
 	public function remove_albums($album_ids, $user_ids = false)
244 244
 	{
245 245
 		$album_ids = $this->cast_mixed_int2array($album_ids);
Please login to merge, or discard this patch.
core/log.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -106,9 +106,9 @@
 block discarded – undo
106 106
 	}
107 107
 
108 108
 	/**
109
-	* Delete logs
110
-	* @param	array	$mark	Logs selected for deletion
111
-	**/
109
+	 * Delete logs
110
+	 * @param	array	$mark	Logs selected for deletion
111
+	 **/
112 112
 	public function delete_logs($mark)
113 113
 	{
114 114
 		$sql = 'DELETE FROM ' . $this->log_table . ' WHERE ' . $this->db->sql_in_set('log_id', $mark);
Please login to merge, or discard this patch.
core/cache.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -17,12 +17,12 @@  discard block
 block discarded – undo
17 17
 	private $phpbb_db;
18 18
 
19 19
 	/**
20
-	* cache constructor.
21
-	* @param \phpbb\cache\service $cache
22
-	* @param \phpbb\db\driver\driver_interface $db
23
-	* @param $albums_table
24
-	* @param $images_table
25
-	*/
20
+	 * cache constructor.
21
+	 * @param \phpbb\cache\service $cache
22
+	 * @param \phpbb\db\driver\driver_interface $db
23
+	 * @param $albums_table
24
+	 * @param $images_table
25
+	 */
26 26
 	public function __construct(\phpbb\cache\service $cache, \phpbb\db\driver\driver_interface $db,
27 27
 								$albums_table, $images_table)
28 28
 	{
@@ -153,18 +153,18 @@  discard block
 block discarded – undo
153 153
 	}
154 154
 
155 155
 	/**
156
-	* Destroy images cache - if we had updated image information or we want other set - we will have to destroy cache
157
-	*/
156
+	 * Destroy images cache - if we had updated image information or we want other set - we will have to destroy cache
157
+	 */
158 158
 	public function destroy_images()
159 159
 	{
160 160
 		$this->phpbb_cache->destroy('_images');
161 161
 	}
162 162
 
163 163
 	/**
164
-	* Destroy album cache
165
-	* Basicly some tests fail due album cache not destroyed ...
166
-	* So lets try it now?
167
-	*/
164
+	 * Destroy album cache
165
+	 * Basicly some tests fail due album cache not destroyed ...
166
+	 * So lets try it now?
167
+	 */
168 168
 	public function destroy_albums()
169 169
 	{
170 170
 		$this->phpbb_cache->destroy('_albums');
Please login to merge, or discard this patch.
core/ucp/settings_module.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -92,12 +92,12 @@  discard block
 block discarded – undo
92 92
 			$additional_settings = array();
93 93
 
94 94
 			/**
95
-			* Event set personal settings
96
-			*
97
-			* @event phpbbgallery.core.ucp.set_settings_submit
98
-			* @var	array	additional_settings		array of additional settings
99
-			* @since 1.2.0
100
-			*/
95
+			 * Event set personal settings
96
+			 *
97
+			 * @event phpbbgallery.core.ucp.set_settings_submit
98
+			 * @var	array	additional_settings		array of additional settings
99
+			 * @since 1.2.0
100
+			 */
101 101
 			$vars = array('additional_settings');
102 102
 			extract($this->dispatcher->trigger_event('phpbbgallery.core.ucp.set_settings_submit', compact($vars)));
103 103
 
@@ -118,11 +118,11 @@  discard block
 block discarded – undo
118 118
 		}
119 119
 
120 120
 		/**
121
-		* Event no submit personal settings
122
-		*
123
-		* @event phpbbgallery.core.ucp.set_settings_nosubmit
124
-		* @since 1.2.0
125
-		*/
121
+		 * Event no submit personal settings
122
+		 *
123
+		 * @event phpbbgallery.core.ucp.set_settings_nosubmit
124
+		 * @since 1.2.0
125
+		 */
126 126
 		$this->dispatcher->dispatch('phpbbgallery.core.ucp.set_settings_nosubmit');
127 127
 
128 128
 		$this->template->assign_vars(array(
Please login to merge, or discard this patch.
core/ucp/main_module.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -389,10 +389,10 @@  discard block
 block discarded – undo
389 389
 			generate_text_for_storage($album_data['album_desc'], $album_data['album_desc_uid'], $album_data['album_desc_bitfield'], $album_data['album_desc_options'], $request->variable('desc_parse_bbcode', false), $request->variable('desc_parse_urls', false), $request->variable('desc_parse_smilies', false));
390 390
 
391 391
 			/**
392
-			* borrowed from phpBB3
393
-			* @author: phpBB Group
394
-			* @location: acp_forums->manage_forums
395
-			*/
392
+			 * borrowed from phpBB3
393
+			 * @author: phpBB Group
394
+			 * @location: acp_forums->manage_forums
395
+			 */
396 396
 			// Parent should always be filled otherwise we use initialise_album()
397 397
 			if ($album_data['parent_id'])
398 398
 			{
@@ -833,13 +833,13 @@  discard block
 block discarded – undo
833 833
 			}
834 834
 
835 835
 			/**
836
-			* Event delete user albums
837
-			*
838
-			* @event phpbbgallery.core.ucp.delete_album
839
-			* @var	int		album_id			Album ID
840
-			* @var	array	deleted_albums		Deleted album IDs
841
-			* @since 1.2.0
842
-			*/
836
+			 * Event delete user albums
837
+			 *
838
+			 * @event phpbbgallery.core.ucp.delete_album
839
+			 * @var	int		album_id			Album ID
840
+			 * @var	array	deleted_albums		Deleted album IDs
841
+			 * @since 1.2.0
842
+			 */
843 843
 			$vars = array('album_id', 'deleted_albums');
844 844
 			extract($phpbb_dispatcher->trigger_event('phpbbgallery.core.ucp.delete_album', compact($vars)));
845 845
 
Please login to merge, or discard this patch.
core/url.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -13,23 +13,23 @@  discard block
 block discarded – undo
13 13
 class url
14 14
 {
15 15
 	/**
16
-	* Path from the gallery root, back to phpbb's root
17
-	*/
16
+	 * Path from the gallery root, back to phpbb's root
17
+	 */
18 18
 	private $phpbb_root_path = '../';
19 19
 
20 20
 	/**
21
-	* Path from the phpbb root, into admin's root
22
-	*/
21
+	 * Path from the phpbb root, into admin's root
22
+	 */
23 23
 	private $phpbb_admin_path = 'adm/';
24 24
 
25 25
 	/**
26
-	* Path from the phpbb root, into gallery's file root
27
-	*/
26
+	 * Path from the phpbb root, into gallery's file root
27
+	 */
28 28
 	private $phpbb_gallery_file_path = 'files/phpbbgallery/';
29 29
 
30 30
 	/**
31
-	* Path from the phpbb root, into gallery's root
32
-	*/
31
+	 * Path from the phpbb root, into gallery's root
32
+	 */
33 33
 	private $phpbb_gallery_path = 'gallery/';
34 34
 
35 35
 	const IMAGE_PATH = 'images/';
@@ -223,16 +223,16 @@  discard block
 block discarded – undo
223 223
 	}
224 224
 
225 225
 	/**
226
-	* Creates beautiful relative path from ugly relative path
227
-	* Resolves .. (up directory)
228
-	*
229
-	* @author	bantu		based on phpbb_own_realpath() by Chris Smith
230
-	* @license	http://opensource.org/licenses/gpl-license.php GNU Public License
231
-	*
232
-	* @param	string		ugly path e.g. "../community/../gallery/"
233
-	* @param	bool		is it a full url, so we need to fix teh http:// at the beginning?
234
-	* @return	string		beautiful path e.g. "../gallery/"
235
-	*/
226
+	 * Creates beautiful relative path from ugly relative path
227
+	 * Resolves .. (up directory)
228
+	 *
229
+	 * @author	bantu		based on phpbb_own_realpath() by Chris Smith
230
+	 * @license	http://opensource.org/licenses/gpl-license.php GNU Public License
231
+	 *
232
+	 * @param	string		ugly path e.g. "../community/../gallery/"
233
+	 * @param	bool		is it a full url, so we need to fix teh http:// at the beginning?
234
+	 * @return	string		beautiful path e.g. "../gallery/"
235
+	 */
236 236
 	static public function beautiful_path($path, $is_full_url = false)
237 237
 	{
238 238
 		// Remove any repeated slashes
@@ -274,10 +274,10 @@  discard block
 block discarded – undo
274 274
 	}
275 275
 
276 276
 	/**
277
-	* Custom meta_refresh implementation
278
-	* @param	int		$time	Time in seconds.
279
-	* @param	string	$route	Route generated by $helper->route
280
-	*/
277
+	 * Custom meta_refresh implementation
278
+	 * @param	int		$time	Time in seconds.
279
+	 * @param	string	$route	Route generated by $helper->route
280
+	 */
281 281
 	public function meta_refresh($time, $route)
282 282
 	{
283 283
 		// For XHTML compatibility we change back & to &
Please login to merge, or discard this patch.
acpimport/acp/main_module.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -58,8 +58,8 @@  discard block
 block discarded – undo
58 58
 			foreach ($images as $image_src)
59 59
 			{
60 60
 				/**
61
-				* Import the images
62
-				*/
61
+				 * Import the images
62
+				 */
63 63
 
64 64
 				$image_src = str_replace("{{$import_schema}}", "'", $image_src);
65 65
 				$image_src_full = $gallery_url->path('import') . utf8_decode($image_src);
@@ -153,21 +153,21 @@  discard block
 block discarded – undo
153 153
 						$file_link = $gallery_url->path('upload') . $image_filename;
154 154
 
155 155
 						/**
156
-						* Event to trigger before mass update
157
-						*
158
-						* @event phpbbgallery.acpimport.update_image_before
159
-						* @var	array	additional_sql_data		array of additional sql_data
160
-						* @var	string	file_link				String with real file link
161
-						* @since 1.2.0
162
-						*/
156
+						 * Event to trigger before mass update
157
+						 *
158
+						 * @event phpbbgallery.acpimport.update_image_before
159
+						 * @var	array	additional_sql_data		array of additional sql_data
160
+						 * @var	string	file_link				String with real file link
161
+						 * @since 1.2.0
162
+						 */
163 163
 						$vars = array('additional_sql_data', 'file_link');
164 164
 						extract($phpbb_dispatcher->trigger_event('phpbbgallery.acpimport.update_image_before', compact($vars)));
165 165
 
166 166
 						if (($filetype[0] > $gallery_config->get('max_width')) || ($filetype[1] > $gallery_config->get('max_height')))
167 167
 						{
168 168
 							/**
169
-							* Resize overside images
170
-							*/
169
+							 * Resize overside images
170
+							 */
171 171
 							if ($gallery_config->get('allow_resize'))
172 172
 							{
173 173
 								$image_tools->resize_image($gallery_config->get('max_width'), $gallery_config->get('max_height'));
@@ -180,13 +180,13 @@  discard block
 block discarded – undo
180 180
 						$file_updated = (bool) $image_tools->resized;
181 181
 
182 182
 						/**
183
-						* Event to trigger before mass update
184
-						*
185
-						* @event phpbbgallery.acpimport.update_image
186
-						* @var	array	additional_sql_data		array of additional sql_data
187
-						* @var	bool	file_updated			is file resized
188
-						* @since 1.2.0
189
-						*/
183
+						 * Event to trigger before mass update
184
+						 *
185
+						 * @event phpbbgallery.acpimport.update_image
186
+						 * @var	array	additional_sql_data		array of additional sql_data
187
+						 * @var	bool	file_updated			is file resized
188
+						 * @since 1.2.0
189
+						 */
190 190
 						$vars = array('additional_sql_data', 'file_updated');
191 191
 						extract($phpbb_dispatcher->trigger_event('phpbbgallery.acpimport.update_image', compact($vars)));
192 192
 
Please login to merge, or discard this patch.
acpcleanup/cleanup.php 1 patch
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -89,11 +89,11 @@  discard block
 block discarded – undo
89 89
 	}
90 90
 
91 91
 	/**
92
-	* Delete source files without a database entry.
93
-	*
94
-	* @param	array	$filenames		An array of filenames
95
-	* @return	string	Language key for the success message.
96
-	*/
92
+	 * Delete source files without a database entry.
93
+	 *
94
+	 * @param	array	$filenames		An array of filenames
95
+	 * @return	string	Language key for the success message.
96
+	 */
97 97
 	public function delete_files($filenames)
98 98
 	{
99 99
 		foreach ($filenames as $file)
@@ -106,11 +106,11 @@  discard block
 block discarded – undo
106 106
 	}
107 107
 
108 108
 	/**
109
-	* Delete images, where the source file is missing.
110
-	*
111
-	* @param	mixed	$image_ids		Either an array of integers or an integer.
112
-	* @return	string	Language key for the success message.
113
-	*/
109
+	 * Delete images, where the source file is missing.
110
+	 *
111
+	 * @param	mixed	$image_ids		Either an array of integers or an integer.
112
+	 * @return	string	Language key for the success message.
113
+	 */
114 114
 	public function delete_images($image_ids)
115 115
 	{
116 116
 		$this->log->add_log('admin', 'clean_deleteentries', 0, 0, array('LOG_CLEANUP_DELETE_ENTRIES', count($image_ids)));
@@ -120,11 +120,11 @@  discard block
 block discarded – undo
120 120
 	}
121 121
 
122 122
 	/**
123
-	* Delete images, where the author is missing.
124
-	*
125
-	* @param	mixed	$image_ids		Either an array of integers or an integer.
126
-	* @return	string	Language key for the success message.
127
-	*/
123
+	 * Delete images, where the author is missing.
124
+	 *
125
+	 * @param	mixed	$image_ids		Either an array of integers or an integer.
126
+	 * @return	string	Language key for the success message.
127
+	 */
128 128
 	public function delete_author_images($image_ids)
129 129
 	{
130 130
 		$this->log->add_log('admin', 'clean_deletenoauthors', 0, 0, array('LOG_CLEANUP_DELETE_NO_AUTHOR', count($image_ids)));
@@ -134,11 +134,11 @@  discard block
 block discarded – undo
134 134
 	}
135 135
 
136 136
 	/**
137
-	* Delete comments, where the author is missing.
138
-	*
139
-	* @param	mixed	$comment_ids	Either an array of integers or an integer.
140
-	* @return	string	Language key for the success message.
141
-	*/
137
+	 * Delete comments, where the author is missing.
138
+	 *
139
+	 * @param	mixed	$comment_ids	Either an array of integers or an integer.
140
+	 * @return	string	Language key for the success message.
141
+	 */
142 142
 	public function delete_author_comments($comment_ids)
143 143
 	{
144 144
 		$this->log->add_log('admin', 'clean_deletecna', 0, 0, array('LOG_CLEANUP_COMMENT_DELETE_NO_AUTHOR', count($comment_ids)));
@@ -148,12 +148,12 @@  discard block
 block discarded – undo
148 148
 	}
149 149
 
150 150
 	/**
151
-	* Delete unwanted and obsolent personal galleries.
152
-	*
153
-	* @param	array	$unwanted_pegas		User IDs we want to delete the pegas.
154
-	* @param	array	$obsolent_pegas		User IDs we want to delete the pegas.
155
-	* @return	array	Language keys for the success messages.
156
-	*/
151
+	 * Delete unwanted and obsolent personal galleries.
152
+	 *
153
+	 * @param	array	$unwanted_pegas		User IDs we want to delete the pegas.
154
+	 * @param	array	$obsolent_pegas		User IDs we want to delete the pegas.
155
+	 * @return	array	Language keys for the success messages.
156
+	 */
157 157
 	public function delete_pegas($unwanted_pegas, $obsolent_pegas)
158 158
 	{
159 159
 
@@ -284,8 +284,8 @@  discard block
 block discarded – undo
284 284
 	}
285 285
 
286 286
 	/**
287
-	*
288
-	*/
287
+	 *
288
+	 */
289 289
 	public function prune($pattern)
290 290
 	{
291 291
 		$sql_where = '';
@@ -329,8 +329,8 @@  discard block
 block discarded – undo
329 329
 	}
330 330
 
331 331
 	/**
332
-	*
333
-	*/
332
+	 *
333
+	 */
334 334
 	public function lang_prune_pattern($pattern)
335 335
 	{
336 336
 		if (isset($pattern['image_album_id']))
Please login to merge, or discard this patch.