Skip to content

Commit 687d53c

Browse files
committed
namespace change
1 parent 549746e commit 687d53c

52 files changed

Lines changed: 308 additions & 262 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 170 additions & 163 deletions
Large diffs are not rendered by default.

benchmark/Benchmark.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
declare(strict_types=1);
44

5-
use Bakame\Aide\Profiler\ConsoleTableExporter;
6-
use Bakame\Aide\Profiler\DurationUnit;
7-
use Bakame\Aide\Profiler\Environment;
8-
use Bakame\Aide\Profiler\Marker;
9-
use Bakame\Aide\Profiler\Profiler;
10-
use Bakame\Aide\Profiler\Statistics;
11-
use Bakame\Aide\Profiler\Unit;
5+
use Bakame\Stackwatch\ConsoleTableExporter;
6+
use Bakame\Stackwatch\DurationUnit;
7+
use Bakame\Stackwatch\Environment;
8+
use Bakame\Stackwatch\Marker;
9+
use Bakame\Stackwatch\Profiler;
10+
use Bakame\Stackwatch\Statistics;
11+
use Bakame\Stackwatch\Unit;
1212
use Symfony\Component\Console\Helper\Table;
1313
use Symfony\Component\Console\Output\ConsoleOutput;
1414
use Symfony\Component\Console\Output\OutputInterface;

bin/stackwatch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
declare(strict_types=1);
55

6-
use Bakame\Aide\Profiler\Stackwatch;
6+
use Bakame\Stackwatch\Stackwatch;
77

88
if (is_file(__DIR__ . '/../vendor/autoload.php')) {
99
require __DIR__ . '/../vendor/autoload.php';

composer.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,22 @@
2727
"php": "^8.1"
2828
},
2929
"require-dev": {
30-
"friendsofphp/php-cs-fixer": "^3.75.0",
30+
"friendsofphp/php-cs-fixer": "^3.85.1",
3131
"monolog/monolog": "^3.9",
3232
"nyholm/psr7": "^1.8.2",
3333
"open-telemetry/exporter-otlp": "^1.3.2",
34-
"phpstan/phpstan": "^2.1.17",
34+
"phpstan/phpstan": "^2.1.21",
3535
"phpstan/phpstan-deprecation-rules": "^2.0.3",
36-
"phpstan/phpstan-phpunit": "^2.0.6",
37-
"phpstan/phpstan-strict-rules": "^2.0.4",
38-
"phpunit/phpunit": "^10.5.15 || ^11.5.25 || ^12.2.5",
39-
"symfony/console": "^6.4 || ^7.3.1",
40-
"symfony/http-client": "^v6.4.19 || ^7.3.1",
41-
"symfony/var-dumper": "^6.4.21 || ^7.3.1"
36+
"phpstan/phpstan-phpunit": "^2.0.7",
37+
"phpstan/phpstan-strict-rules": "^2.0.6",
38+
"phpunit/phpunit": "^10.5.15 || ^11.5.25 || ^12.2.9",
39+
"symfony/console": "^6.4 || ^7.3.2",
40+
"symfony/http-client": "^v6.4.19 || ^7.3.2",
41+
"symfony/var-dumper": "^6.4.21 || ^7.3.2"
4242
},
4343
"autoload": {
4444
"psr-4": {
45-
"Bakame\\Aide\\Profiler\\": "src"
45+
"Bakame\\Stackwatch\\": "src"
4646
}
4747
},
4848
"autoload-dev": {

src/ConsoleLogger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Bakame\Aide\Profiler;
5+
namespace Bakame\Stackwatch;
66

77
use Psr\Log\AbstractLogger;
88
use Stringable;

src/ConsoleTableExporter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Bakame\Aide\Profiler;
5+
namespace Bakame\Stackwatch;
66

77
use Symfony\Component\Console\Helper\Table;
88
use Symfony\Component\Console\Helper\TableCell;

src/ConsoleTableExporterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Bakame\Aide\Profiler;
5+
namespace Bakame\Stackwatch;
66

77
use PHPUnit\Framework\Attributes\CoversClass;
88
use PHPUnit\Framework\Attributes\Test;

src/ConsoleTableProcessor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Bakame\Aide\Profiler;
5+
namespace Bakame\Stackwatch;
66

77
use ReflectionMethod;
88
use Symfony\Component\Console\Output\ConsoleOutput;
@@ -32,7 +32,7 @@ public function process(iterable $targetList): void
3232
{
3333
foreach ($targetList as $target) {
3434
['closure' => $closure, 'profile' => $profile, 'method' => $method] = $target;
35-
if (Profile::REPORT === $profile->type) {
35+
if (Profile::DETAILED === $profile->type) {
3636
$text = match (true) {
3737
$method instanceof ReflectionMethod => 'Report for the method <fg=green>'.$method->class.'::'.$method->getName().'</> located in <fg=green>'.$method->getFileName().'</> called <fg=yellow>'.$profile->iterations.'</> times',
3838
default => 'Report for the function <fg=green>'.$method->getName().'</> located in <fg=green>'.$method->getFileName().'</> called <fg=yellow>'.$profile->iterations.'</> times',

src/DurationUnit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Bakame\Aide\Profiler;
5+
namespace Bakame\Stackwatch;
66

77
use Throwable;
88
use ValueError;

src/DurationUnitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Bakame\Aide\Profiler;
5+
namespace Bakame\Stackwatch;
66

77
use PHPUnit\Framework\Attributes\CoversClass;
88
use PHPUnit\Framework\Attributes\DataProvider;

0 commit comments

Comments
 (0)