diff --git a/src/String.php b/src/String.php index 518b308..a66d463 100644 --- a/src/String.php +++ b/src/String.php @@ -62,7 +62,7 @@ class String $string = strtolower(trim($string)); $string = preg_replace('/[^a-z0-9-]/', '-', $string); $string = preg_replace('/-+/', '-', $string); - return trim($string, '-');; + return trim($string, '-'); } // }}} diff --git a/tests/Pickles/ModelTest.php b/tests/Pickles/ModelTest.php index dbf6bcf..dd0fd64 100644 --- a/tests/Pickles/ModelTest.php +++ b/tests/Pickles/ModelTest.php @@ -483,7 +483,7 @@ class ModelTest extends PHPUnit_Framework_TestCase public function testCommitIncrement() { $model = new MockModelWithoutColumns(1); - $model->record['field1'] = 100;; + $model->record['field1'] = 100; $model->commit(); $model = new MockModelWithoutColumns(1); $model->record['field1'] = '++';