Cleaned up some double ;;
This commit is contained in:
parent
1599319478
commit
840a68961c
2 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ class String
|
||||||
$string = strtolower(trim($string));
|
$string = strtolower(trim($string));
|
||||||
$string = preg_replace('/[^a-z0-9-]/', '-', $string);
|
$string = preg_replace('/[^a-z0-9-]/', '-', $string);
|
||||||
$string = preg_replace('/-+/', '-', $string);
|
$string = preg_replace('/-+/', '-', $string);
|
||||||
return trim($string, '-');;
|
return trim($string, '-');
|
||||||
}
|
}
|
||||||
|
|
||||||
// }}}
|
// }}}
|
||||||
|
|
|
@ -483,7 +483,7 @@ class ModelTest extends PHPUnit_Framework_TestCase
|
||||||
public function testCommitIncrement()
|
public function testCommitIncrement()
|
||||||
{
|
{
|
||||||
$model = new MockModelWithoutColumns(1);
|
$model = new MockModelWithoutColumns(1);
|
||||||
$model->record['field1'] = 100;;
|
$model->record['field1'] = 100;
|
||||||
$model->commit();
|
$model->commit();
|
||||||
$model = new MockModelWithoutColumns(1);
|
$model = new MockModelWithoutColumns(1);
|
||||||
$model->record['field1'] = '++';
|
$model->record['field1'] = '++';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue