Skip to content

Commit

Permalink
reformatted
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Knap committed Jan 5, 2016
1 parent 902dc1d commit 4310ff7
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 36 deletions.
64 changes: 32 additions & 32 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
{
"name": "petrknap/php-profiler",
"description": "PHP profiler by Petr Knap",
"license": "MIT",
"authors": [
{
"name": "Petr Knap",
"email": "dev@petrknap.cz",
"homepage": "http://petrknap.cz",
"role": "Developer"
}
"name": "petrknap/php-profiler",
"description": "PHP profiler by Petr Knap",
"license": "MIT",
"authors": [
{
"name": "Petr Knap",
"email": "dev@petrknap.cz",
"homepage": "http://petrknap.cz",
"role": "Developer"
}
],
"homepage": "https://github.com/petrknap/php-profiler",
"config": {
"preferred-install": "dist"
},
"require": {
"php": ">=5.4"
},
"require-dev": {
"phpunit/phpunit": "4.*"
},
"scripts": {
"test": [
"./vendor/bin/phpunit"
],
"homepage": "https://github.com/petrknap/php-profiler",
"config": {
"preferred-install": "dist"
},
"require": {
"php": ">=5.4"
},
"require-dev": {
"phpunit/phpunit": "4.*"
},
"scripts": {
"test": [
"./vendor/bin/phpunit"
],
"post-autoload-dump": [
"@test"
]
},
"autoload": {
"psr-4": {
"PetrKnap\\Php\\Profiler\\": "src/Profiler"
}
"post-autoload-dump": [
"@test"
]
},
"autoload": {
"psr-4": {
"PetrKnap\\Php\\Profiler\\": "src/Profiler"
}
}
}
2 changes: 1 addition & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
</testsuite>
</testsuites>
<logging>
<log type="testdox-text" target="./tests/phpunit.log" />
<log type="testdox-text" target="./tests/phpunit.log"/>
</logging>
</phpunit>
4 changes: 2 additions & 2 deletions src/Profiler/SimpleProfiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static function disable()
*/
public static function start($label = null)
{
if(self::$enabled) {
if (self::$enabled) {
$now = microtime(true);
$memoryUsage = memory_get_usage(true);

Expand Down Expand Up @@ -88,7 +88,7 @@ public static function start($label = null)
*/
public static function finish($label = null)
{
if(self::$enabled) {
if (self::$enabled) {
$now = microtime(true);
$memoryUsage = memory_get_usage(true);

Expand Down
2 changes: 1 addition & 1 deletion tests/Profiler/SimpleProfilerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public function testMemoryProfiling()
SimpleProfiler::start();

$largeObject = null;
for($i = 0; $i < 1000; $i++) {
for ($i = 0; $i < 1000; $i++) {
SimpleProfiler::start();
$largeObject = new \Exception("Large object", 0, $largeObject);
SimpleProfiler::finish();
Expand Down

0 comments on commit 4310ff7

Please sign in to comment.