Code Duplication    Length = 7-8 lines in 2 locations

includes/profiler/ProfilerXhprof.php 2 locations

@@ 110-117 (lines=8) @@
107
		if ( $name === '-total' ) {
108
			return true;
109
		}
110
		if ( !empty( $this->params['include'] ) ) {
111
			foreach ( $this->params['include'] as $pattern ) {
112
				if ( fnmatch( $pattern, $name, FNM_NOESCAPE ) ) {
113
					return false;
114
				}
115
			}
116
			return true;
117
		}
118
		if ( !empty( $this->params['exclude'] ) ) {
119
			foreach ( $this->params['exclude'] as $pattern ) {
120
				if ( fnmatch( $pattern, $name, FNM_NOESCAPE ) ) {
@@ 118-124 (lines=7) @@
115
			}
116
			return true;
117
		}
118
		if ( !empty( $this->params['exclude'] ) ) {
119
			foreach ( $this->params['exclude'] as $pattern ) {
120
				if ( fnmatch( $pattern, $name, FNM_NOESCAPE ) ) {
121
					return true;
122
				}
123
			}
124
		}
125
		return false;
126
	}
127