-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Fixing the bin to run on the app itself * Moving the delta calculation to the metrics object * Refactoring the baseline handling. * Fixing a bug in the visitor * Added DI
- Loading branch information
1 parent
34c8fe3
commit fd296a5
Showing
28 changed files
with
1,212 additions
and
667 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
require_once __DIR__ . '/../../../autoload.php'; | ||
if (file_exists(__DIR__ . '/../../../autoload.php')) { | ||
require_once __DIR__ . '/../../../autoload.php'; | ||
} else { | ||
require_once __DIR__ . '/../vendor/autoload.php'; | ||
} | ||
|
||
use Phauthentic\CodeQualityMetrics\Command\CognitiveMetricsCommand; | ||
use Phauthentic\CodeQualityMetrics\Command\HalsteadMetricsCommand; | ||
use Symfony\Component\Console\Application; | ||
use Phauthentic\CodeQualityMetrics\Application; | ||
|
||
$application = new Application(); | ||
$application->add(new CognitiveMetricsCommand()); | ||
$application->add(new HalsteadMetricsCommand()); | ||
|
||
$application->run(); | ||
(new Application())->run(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.