Skip to content

Commit 37537b9

Browse files
committed
Several codestyle fixes
1 parent 8823ea4 commit 37537b9

29 files changed

+321
-280
lines changed

Tests/InflectorTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* @copyright Copyright (C) 2005 - 2021 Open Source Matters, Inc. All rights reserved.
45
* @license GNU General Public License version 2 or later; see LICENSE

Tests/NormaliseTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* @copyright Copyright (C) 2005 - 2021 Open Source Matters, Inc. All rights reserved.
45
* @license GNU General Public License version 2 or later; see LICENSE

Tests/StringHelperTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* @copyright Copyright (C) 2005 - 2021 Open Source Matters, Inc. All rights reserved.
45
* @license GNU General Public License version 2 or later; see LICENSE

src/Inflector.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Part of the Joomla Framework String Package
45
*

src/Normalise.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Part of the Joomla Framework String Package
45
*

src/StringHelper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Part of the Joomla Framework String Package
45
*

src/phputf8/mbstring/core.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* @package utf8
45
*/

src/phputf8/native/core.php

Lines changed: 96 additions & 95 deletions
Large diffs are not rendered by default.

src/phputf8/ord.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* @package utf8
45
*/
@@ -87,7 +88,7 @@ function utf8_ord($chr)
8788
}
8889

8990
if ($ord0 >= 254 && $ord0 <= 255) {
90-
trigger_error('Invalid UTF-8 with surrogate ordinal '.$ord0);
91+
trigger_error('Invalid UTF-8 with surrogate ordinal ' . $ord0);
9192
return false;
9293
}
9394
}

src/phputf8/str_ireplace.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* @package utf8
45
*/
@@ -33,7 +34,7 @@ function utf8_ireplace($search, $replace, $str, $count = null)
3334
$lstr = utf8_strtolower($str);
3435
$i = 0;
3536
$matched = 0;
36-
while (preg_match('/(.*)'.$search.'/Us', $lstr, $matches)) {
37+
while (preg_match('/(.*)' . $search . '/Us', $lstr, $matches)) {
3738
if ($i === $count) {
3839
break;
3940
}

0 commit comments

Comments
 (0)