Completed
Branch master (8fc554)
by Alexander
06:05
created
src/SVNBuddy/Repository/Parser/LogMessageParser.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -73,12 +73,10 @@
 block discarded – undo
73 73
 		if ( count($bugtraq_logregex) == 2 ) {
74 74
 			$this->_preFilterRegExp = '/' . $bugtraq_logregex[0] . '/s';
75 75
 			$this->_filterRegExp = '/' . $bugtraq_logregex[1] . '/s';
76
-		}
77
-		elseif ( count($bugtraq_logregex) == 1 ) {
76
+		} elseif ( count($bugtraq_logregex) == 1 ) {
78 77
 			$this->_preFilterRegExp = '';
79 78
 			$this->_filterRegExp = '/' . $bugtraq_logregex[0] . '/s';
80
-		}
81
-		else {
79
+		} else {
82 80
 			$this->_preFilterRegExp = '';
83 81
 			$this->_filterRegExp = '';
84 82
 		}
Please login to merge, or discard this patch.
src/SVNBuddy/Repository/Parser/RevisionListParser.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,11 +44,9 @@
 block discarded – undo
44 44
 				for ( $i = $range_start; $i <= $range_end; $i++ ) {
45 45
 					$ret[$i] = true;
46 46
 				}
47
-			}
48
-			elseif ( preg_match('/^([\d]+)\*?$/', $raw_revision, $regs) ) {
47
+			} elseif ( preg_match('/^([\d]+)\*?$/', $raw_revision, $regs) ) {
49 48
 				$ret[(int)$regs[1]] = true;
50
-			}
51
-			else {
49
+			} else {
52 50
 				throw new \InvalidArgumentException('The "' . $raw_revision . '" revision is invalid.');
53 51
 			}
54 52
 		}
Please login to merge, or discard this patch.
src/SVNBuddy/Repository/RevisionLog/MergesRevisionLogPlugin.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,8 +88,7 @@
 block discarded – undo
88 88
 
89 89
 		if ( $first_criteria === 'all_merges' ) {
90 90
 			return array_keys($this->_mergeRevisions);
91
-		}
92
-		elseif ( $first_criteria === 'all_merged' ) {
91
+		} elseif ( $first_criteria === 'all_merged' ) {
93 92
 			return array_keys($this->_mergedRevisions);
94 93
 		}
95 94
 
Please login to merge, or discard this patch.
src/SVNBuddy/Repository/RevisionLog/SummaryRevisionLogPlugin.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,8 +95,7 @@
 block discarded – undo
95 95
 				foreach ( $this->_authorRevisions[$value] as $revision ) {
96 96
 					$summary_revisions[$revision] = true;
97 97
 				}
98
-			}
99
-			else {
98
+			} else {
100 99
 				$error_msg = 'Searching by "%s" is not supported by "%s" plugin.';
101 100
 				throw new \InvalidArgumentException(sprintf($error_msg, $field, $this->getName()));
102 101
 			}
Please login to merge, or discard this patch.