Skip to content

Commit b20ed2b

Browse files
committed
PHP CS fix
1 parent 2d853a6 commit b20ed2b

File tree

1 file changed

+14
-17
lines changed

1 file changed

+14
-17
lines changed

Example.php

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,31 @@
55
* 22.July.2013
66
*/
77

8-
require_once('VerbalExpressions.php');
9-
8+
require_once 'VerbalExpressions.php';
109

1110
$regex = new VerEx;
1211

1312
$regex ->startOfLine()
14-
->then( "http" )
15-
->maybe( "s" )
16-
->then( "://" )
17-
->maybe( "www." )
18-
->anythingBut( " " )
19-
->endOfLine();
20-
13+
->then("http")
14+
->maybe("s")
15+
->then("://")
16+
->maybe("www.")
17+
->anythingBut(" ")
18+
->endOfLine();
2119

2220
if($regex->test("http://github.com"))
23-
echo "valid url". '<br>';
21+
echo "valid url". '<br>';
2422
else
25-
echo "invalid url". '<br>';
23+
echo "invalid url". '<br>';
2624

2725
if (preg_match($regex, 'http://github.com')) {
28-
echo 'valid url';
26+
echo 'valid url';
2927
} else {
30-
echo 'invalud url';
28+
echo 'invalud url';
3129
}
3230

3331
echo "<pre>". $regex->getRegex() ."</pre>";
3432

35-
36-
echo $regex ->clean(array("modifiers"=> "m","replaceLimit"=>4))
37-
->find(' ')
38-
->replace("This is a small test http://somesite.com and some more text.", "-");
33+
echo $regex ->clean(array("modifiers" => "m", "replaceLimit" => 4))
34+
->find(' ')
35+
->replace("This is a small test http://somesite.com and some more text.", "-");

0 commit comments

Comments
 (0)