Completed
Push — master ( eac471...13cf44 )
by Stanislav
21s queued 17s
created
acpcleanup/cleanup.php 1 patch
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -85,11 +85,11 @@  discard block
 block discarded – undo
85 85
 	}
86 86
 
87 87
 	/**
88
-	* Delete source files without a database entry.
89
-	*
90
-	* @param	array	$filenames		An array of filenames
91
-	* @return	string	Language key for the success message.
92
-	*/
88
+	 * Delete source files without a database entry.
89
+	 *
90
+	 * @param	array	$filenames		An array of filenames
91
+	 * @return	string	Language key for the success message.
92
+	 */
93 93
 	public function delete_files($filenames)
94 94
 	{
95 95
 		foreach ($filenames as $file)
@@ -102,11 +102,11 @@  discard block
 block discarded – undo
102 102
 	}
103 103
 
104 104
 	/**
105
-	* Delete images, where the source file is missing.
106
-	*
107
-	* @param	mixed	$image_ids		Either an array of integers or an integer.
108
-	* @return	string	Language key for the success message.
109
-	*/
105
+	 * Delete images, where the source file is missing.
106
+	 *
107
+	 * @param	mixed	$image_ids		Either an array of integers or an integer.
108
+	 * @return	string	Language key for the success message.
109
+	 */
110 110
 	public function delete_images($image_ids)
111 111
 	{
112 112
 		$this->log->add_log('admin', 'clean_deleteentries', 0, 0, array('LOG_CLEANUP_DELETE_ENTRIES', count($image_ids)));
@@ -116,11 +116,11 @@  discard block
 block discarded – undo
116 116
 	}
117 117
 
118 118
 	/**
119
-	* Delete images, where the author is missing.
120
-	*
121
-	* @param	mixed	$image_ids		Either an array of integers or an integer.
122
-	* @return	string	Language key for the success message.
123
-	*/
119
+	 * Delete images, where the author is missing.
120
+	 *
121
+	 * @param	mixed	$image_ids		Either an array of integers or an integer.
122
+	 * @return	string	Language key for the success message.
123
+	 */
124 124
 	public function delete_author_images($image_ids)
125 125
 	{
126 126
 		$this->log->add_log('admin', 'clean_deletenoauthors', 0, 0, array('LOG_CLEANUP_DELETE_NO_AUTHOR', count($image_ids)));
@@ -130,11 +130,11 @@  discard block
 block discarded – undo
130 130
 	}
131 131
 
132 132
 	/**
133
-	* Delete comments, where the author is missing.
134
-	*
135
-	* @param	mixed	$comment_ids	Either an array of integers or an integer.
136
-	* @return	string	Language key for the success message.
137
-	*/
133
+	 * Delete comments, where the author is missing.
134
+	 *
135
+	 * @param	mixed	$comment_ids	Either an array of integers or an integer.
136
+	 * @return	string	Language key for the success message.
137
+	 */
138 138
 	public function delete_author_comments($comment_ids)
139 139
 	{
140 140
 		$this->log->add_log('admin', 'clean_deletecna', 0, 0, array('LOG_CLEANUP_COMMENT_DELETE_NO_AUTHOR', count($comment_ids)));
@@ -144,12 +144,12 @@  discard block
 block discarded – undo
144 144
 	}
145 145
 
146 146
 	/**
147
-	* Delete unwanted and obsolete personal galleries.
148
-	*
149
-	* @param	array	$unwanted_pegas		User IDs we want to delete the pegas.
150
-	* @param	array	$obsolete_pegas		User IDs we want to delete the pegas.
151
-	* @return	array	Language keys for the success messages.
152
-	*/
147
+	 * Delete unwanted and obsolete personal galleries.
148
+	 *
149
+	 * @param	array	$unwanted_pegas		User IDs we want to delete the pegas.
150
+	 * @param	array	$obsolete_pegas		User IDs we want to delete the pegas.
151
+	 * @return	array	Language keys for the success messages.
152
+	 */
153 153
 	public function delete_pegas($unwanted_pegas, $obsolete_pegas)
154 154
 	{
155 155
 
@@ -280,8 +280,8 @@  discard block
 block discarded – undo
280 280
 	}
281 281
 
282 282
 	/**
283
-	*
284
-	*/
283
+	 *
284
+	 */
285 285
 	public function prune($pattern)
286 286
 	{
287 287
 		$sql_where = '';
@@ -325,8 +325,8 @@  discard block
 block discarded – undo
325 325
 	}
326 326
 
327 327
 	/**
328
-	*
329
-	*/
328
+	 *
329
+	 */
330 330
 	public function lang_prune_pattern($pattern)
331 331
 	{
332 332
 		if (isset($pattern['image_album_id']))
Please login to merge, or discard this patch.
core/album/manage.php 1 patch
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -817,8 +817,8 @@  discard block
 block discarded – undo
817 817
 		$log_action = implode('_', array($log_action_images, $log_action_albums));
818 818
 
819 819
 		/**
820
-		* Log what we did
821
-		*/
820
+		 * Log what we did
821
+		 */
822 822
 		switch ($log_action)
823 823
 		{
824 824
 			case 'MOVE_IMAGES_MOVE_ALBUMS':
@@ -908,14 +908,14 @@  discard block
 block discarded – undo
908 908
 		$this->gallery_notification->delete_albums($from_id);
909 909
 
910 910
 		/**
911
-		* Event related to moving album content
912
-		*
913
-		* @event phpbbgallery.core.album.manage.move_album_content
914
-		* @var	int	from_id		Album we are moving from
915
-		* @var	int	to_id		Album we are moving to
916
-		* @var	bool	sync	Should we sync the albums data
917
-		* @since 1.2.0
918
-		*/
911
+		 * Event related to moving album content
912
+		 *
913
+		 * @event phpbbgallery.core.album.manage.move_album_content
914
+		 * @var	int	from_id		Album we are moving from
915
+		 * @var	int	to_id		Album we are moving to
916
+		 * @var	bool	sync	Should we sync the albums data
917
+		 * @since 1.2.0
918
+		 */
919 919
 		$vars = array('from_id', 'to_id', 'sync');
920 920
 		extract($this->dispatcher->trigger_event('phpbbgallery.core.album.manage.move_album_content', compact($vars)));
921 921
 
@@ -1017,12 +1017,12 @@  discard block
 block discarded – undo
1017 1017
 		$this->gallery_config->set('num_comments', (int) $row['num_comments']);
1018 1018
 
1019 1019
 		/**
1020
-		* Event delete album content
1021
-		*
1022
-		* @event phpbbgallery.core.album.manage.delete_album_content
1023
-		* @var	int	album_id		Album we are deleting
1024
-		* @since 1.2.0
1025
-		*/
1020
+		 * Event delete album content
1021
+		 *
1022
+		 * @event phpbbgallery.core.album.manage.delete_album_content
1023
+		 * @var	int	album_id		Album we are deleting
1024
+		 * @since 1.2.0
1025
+		 */
1026 1026
 		$vars = array('album_id');
1027 1027
 		extract($this->dispatcher->trigger_event('phpbbgallery.core.album.manage.delete_album_content', compact($vars)));
1028 1028
 
@@ -1045,11 +1045,11 @@  discard block
 block discarded – undo
1045 1045
 	public function move_album_by($album_row, $action = 'move_up', $steps = 1)
1046 1046
 	{
1047 1047
 		/**
1048
-		* Fetch all the siblings between the module's current spot
1049
-		* and where we want to move it to. If there are less than $steps
1050
-		* siblings between the current spot and the target then the
1051
-		* module will move as far as possible
1052
-		*/
1048
+		 * Fetch all the siblings between the module's current spot
1049
+		 * and where we want to move it to. If there are less than $steps
1050
+		 * siblings between the current spot and the target then the
1051
+		 * module will move as far as possible
1052
+		 */
1053 1053
 		$sql = 'SELECT album_id, album_name, left_id, right_id
1054 1054
 			FROM ' . $this->albums_table . ' 
1055 1055
 			WHERE parent_id = ' . (int) $album_row['parent_id'] . '
@@ -1071,12 +1071,12 @@  discard block
 block discarded – undo
1071 1071
 		}
1072 1072
 
1073 1073
 		/**
1074
-		* $left_id and $right_id define the scope of the nodes that are affected by the move.
1075
-		* $diff_up and $diff_down are the values to subtract or add to each node's left_id
1076
-		* and right_id in order to move them up or down.
1077
-		* $move_up_left and $move_up_right define the scope of the nodes that are moving
1078
-		* up. Other nodes in the scope of ($left_id, $right_id) are considered to move down.
1079
-		*/
1074
+		 * $left_id and $right_id define the scope of the nodes that are affected by the move.
1075
+		 * $diff_up and $diff_down are the values to subtract or add to each node's left_id
1076
+		 * and right_id in order to move them up or down.
1077
+		 * $move_up_left and $move_up_right define the scope of the nodes that are moving
1078
+		 * up. Other nodes in the scope of ($left_id, $right_id) are considered to move down.
1079
+		 */
1080 1080
 		if ($action == 'move_up')
1081 1081
 		{
1082 1082
 			$left_id = $target['left_id'];
Please login to merge, or discard this patch.