This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Stopwatch
Fabien Potencier 5b72e5ab04 minor #10717 unified return null usages (fabpot)
This PR was merged into the 2.3 branch.

Discussion
----------

unified return null usages

| Q             | A
| ------------- | ---
| License       | MIT

This PR unifies the way we return `null` from a function or method:

 * always use `return;` instead of `return null;` (the current code base uses both);
 * never use `return;` at the end of a function/method.

Commits
-------

d1d569b unified return null usages
2014-04-18 22:35:25 +02:00
..
Tests raising delta on stopwatch as travis really breaks with less than 35 2013-12-05 08:40:22 +01:00
.gitattributes moved the Stopwatch classes to their own component 2012-11-09 10:08:25 +01:00
.gitignore Added missing files .gitignore 2013-07-21 14:12:18 +02:00
composer.json updated the branch alias in composer files 2013-01-31 22:39:01 +01:00
LICENSE update year on licenses 2014-01-07 08:19:25 -05:00
phpunit.xml.dist moved the Stopwatch classes to their own component 2012-11-09 10:08:25 +01:00
README.md updated the composer install command to reflect changes in Composer 2013-09-18 09:27:26 +02:00
Stopwatch.php unified return null usages 2014-04-16 09:43:51 +02:00
StopwatchEvent.php fixed types in phpdocs 2014-04-16 12:30:19 +02:00
StopwatchPeriod.php fixed types in phpdocs 2014-04-16 12:30:19 +02:00

Stopwatch Component

Stopwatch provides a way to profile code.

Resources

You can run the unit tests with the following command:

$ cd path/to/Symfony/Component/Stopwatch/
$ composer.phar install
$ phpunit