Skip to content

Commit 089a882

Browse files
committed
Fixed string concatenation, Changed Exception to InvalidArgumentException
1 parent 0a510f2 commit 089a882

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

VerbalExpressions.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function anything()
125125
}
126126

127127
/**
128-
* Anthing But
128+
* AnythingBut
129129
*
130130
* Anything but this chars
131131
*
@@ -187,7 +187,7 @@ public function replace($source, $value)
187187
}
188188

189189
/**
190-
* Linebreak
190+
* Line break
191191
*
192192
* Match line break
193193
*
@@ -200,7 +200,7 @@ public function lineBreak()
200200
}
201201

202202
/**
203-
* Linebreak
203+
* Line break
204204
*
205205
* Shorthand for lineBreak
206206
*
@@ -226,9 +226,9 @@ public function tab()
226226
}
227227

228228
/**
229-
* Alpha Numberic
229+
* Alpha Numeric
230230
*
231-
* Match any alfanumeric
231+
* Match any alpha numeric
232232
*
233233
* @access public
234234
* @return VerEx
@@ -273,15 +273,15 @@ public function any($value)
273273
*
274274
* @access public
275275
* @return VerEx
276-
* @throws Exception
276+
* @throws \InvalidArgumentException
277277
*/
278278
public function range()
279279
{
280280

281281
$arg_num = func_num_args();
282282

283283
if($arg_num%2 != 0) {
284-
throw new Exception("Number of args must be even", 1);
284+
throw new \InvalidArgumentException("Number of args must be even", 1);
285285
}
286286

287287
$value = "[";
@@ -360,7 +360,7 @@ public function stopAtFirst($enable = true)
360360
}
361361

362362
/**
363-
* SearchOneline
363+
* SearchOneLine
364364
*
365365
* Toggles m modifier
366366
*
@@ -393,7 +393,7 @@ public function multiple($value)
393393
break;
394394

395395
default:
396-
$value += '+';
396+
$value .= '+';
397397
break;
398398
}
399399

0 commit comments

Comments
 (0)