@@ -96,12 +96,12 @@ discard block |
||
96 | 96 | } elseif ($value === null) { |
97 | 97 | $parts[] = "(!($attribute=*))"; |
98 | 98 | } elseif ($attribute === 'dn') { |
99 | - $parts[] = '(' . LdapHelper::getRdnFromDn($value) . ')'; |
|
99 | + $parts[] = '('.LdapHelper::getRdnFromDn($value).')'; |
|
100 | 100 | } else { |
101 | 101 | $parts[] = "($attribute=$value)"; |
102 | 102 | } |
103 | 103 | } |
104 | - return count($parts) === 1 ? $parts[0] : '(&' . implode('', $parts) . ')'; |
|
104 | + return count($parts) === 1 ? $parts[0] : '(&'.implode('', $parts).')'; |
|
105 | 105 | } |
106 | 106 | |
107 | 107 | /** |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | } |
126 | 126 | } |
127 | 127 | |
128 | - return empty($parts) ? '' : '(' . $this->operator[$operator] . implode('', $parts) . ')'; |
|
128 | + return empty($parts) ? '' : '('.$this->operator[$operator].implode('', $parts).')'; |
|
129 | 129 | } |
130 | 130 | |
131 | 131 | /** |
@@ -165,9 +165,9 @@ discard block |
||
165 | 165 | if (empty($parts)) { |
166 | 166 | return ''; |
167 | 167 | } elseif ($operator === 'NOT IN') { |
168 | - return '(!' . implode('', $parts) . ')'; |
|
168 | + return '(!'.implode('', $parts).')'; |
|
169 | 169 | } |
170 | - return count($parts) === 1 ? $parts[0] : '(|' . implode('', $parts) . ')'; |
|
170 | + return count($parts) === 1 ? $parts[0] : '(|'.implode('', $parts).')'; |
|
171 | 171 | } |
172 | 172 | |
173 | 173 | /** |
@@ -213,10 +213,10 @@ discard block |
||
213 | 213 | |
214 | 214 | $parts = []; |
215 | 215 | foreach ($values as $value) { |
216 | - $parts[] = ($not ? '(!' : '') . '(' . $attribute . '=*' . $value . '*)' . ($not ? ')' : ''); |
|
216 | + $parts[] = ($not ? '(!' : '').'('.$attribute.'=*'.$value.'*)'.($not ? ')' : ''); |
|
217 | 217 | } |
218 | 218 | |
219 | - return '(' . $this->operator[$andor] . implode($parts) . ')'; |
|
219 | + return '('.$this->operator[$andor].implode($parts).')'; |
|
220 | 220 | } |
221 | 221 | |
222 | 222 | /** |