Code Duplication    Length = 7-12 lines in 2 locations

Sources/Subs-Package.php 2 locations

@@ 2132-2143 (lines=12) @@
2129
					);
2130
2131
				// At least one search should be defined.
2132
				if (empty($actual_operation['searches']))
2133
				{
2134
					$actions[] = array(
2135
						'type' => 'failure',
2136
						'filename' => $working_file,
2137
						'search' => $search['search'],
2138
						'is_custom' => $theme > 1 ? $theme : 0,
2139
					);
2140
2141
					// Skip to the next operation.
2142
					continue;
2143
				}
2144
2145
				// Reverse the operations in case of undoing stuff.
2146
				if ($undo)
@@ 2154-2160 (lines=7) @@
2151
						// Reverse modification of regular expressions are not allowed.
2152
						if ($search['is_reg_exp'])
2153
						{
2154
							if ($actual_operation['error'] === 'fatal')
2155
								$actions[] = array(
2156
									'type' => 'failure',
2157
									'filename' => $working_file,
2158
									'search' => $search['search'],
2159
									'is_custom' => $theme > 1 ? $theme : 0,
2160
								);
2161
2162
							// Continue to the next operation.
2163
							continue 2;