-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
46 additions
and
95 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,9 +1,9 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the SensioLabsInsight package. | ||
* This file is part of the SymfonyInsight package. | ||
* | ||
* (c) SensioLabs <[email protected]> | ||
* (c) Symfony <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
@@ -25,7 +25,7 @@ | |
|
||
class Application extends SymfonyApplication | ||
{ | ||
const APPLICATION_NAME = 'SensioLabs Insight CLI'; | ||
const APPLICATION_NAME = 'SymfonyInsight CLI'; | ||
const APPLICATION_VERSION = '1.7.1'; | ||
|
||
private $api; | ||
|
@@ -69,7 +69,7 @@ public function getApi() | |
|
||
public function getLongVersion() | ||
{ | ||
$version = parent::getLongVersion().' by <comment>SensioLabs</comment>'; | ||
$version = parent::getLongVersion().' by <comment>Symfony</comment>'; | ||
$commit = '@git-commit@'; | ||
|
||
if ('@'.'git-commit@' !== $commit) { | ||
|
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,9 +1,9 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the SensioLabsInsight package. | ||
* This file is part of the SymfonyInsight package. | ||
* | ||
* (c) SensioLabs <[email protected]> | ||
* (c) Symfony <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
@@ -52,7 +52,7 @@ protected function execute(InputInterface $input, OutputInterface $output) | |
} | ||
|
||
if (!$expr = $input->getOption('fail-condition')) { | ||
return; | ||
return 1; | ||
} | ||
|
||
return $this->getHelperSet()->get('fail_condition')->evaluate($analysis, $expr); | ||
|
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,9 +1,9 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the SensioLabsInsight package. | ||
* This file is part of the SymfonyInsight package. | ||
* | ||
* (c) SensioLabs <[email protected]> | ||
* (c) Symfony <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
@@ -60,12 +60,12 @@ protected function execute(InputInterface $input, OutputInterface $output) | |
if ($input->getOption('no-wait')) { | ||
$output->writeln('The analysis is launched. Please check the result in you SymfonyInsight notifications.'); | ||
|
||
return; | ||
return 1; | ||
} | ||
|
||
while (true) { | ||
// we don't check the status too often (every second) | ||
if (0 === $position % 5) { | ||
// we don't check the status too often (every 10 seconds) | ||
if (0 === $position % 50) { | ||
$analysis = $api->getAnalysisStatus($projectUuid, $analysis->getNumber()); | ||
} | ||
|
||
|
@@ -104,7 +104,7 @@ protected function execute(InputInterface $input, OutputInterface $output) | |
} | ||
|
||
if (!$expr = $input->getOption('fail-condition')) { | ||
return; | ||
return 1; | ||
} | ||
|
||
return $this->getHelperSet()->get('fail_condition')->evaluate($analysis, $expr); | ||
|
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,9 +1,9 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the SensioLabsInsight package. | ||
* This file is part of the SymfonyInsight package. | ||
* | ||
* (c) SensioLabs <[email protected]> | ||
* (c) Symfony <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
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,9 +1,9 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the SensioLabsInsight package. | ||
* This file is part of the SymfonyInsight package. | ||
* | ||
* (c) SensioLabs <[email protected]> | ||
* (c) Symfony <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
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,9 +1,9 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the SensioLabsInsight package. | ||
* This file is part of the SymfonyInsight package. | ||
* | ||
* (c) SensioLabs <[email protected]> | ||
* (c) Symfony <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
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,9 +1,9 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the SensioLabsInsight package. | ||
* This file is part of the SymfonyInsight package. | ||
* | ||
* (c) SensioLabs <[email protected]> | ||
* (c) Symfony <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
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,9 +1,9 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the SensioLabsInsight package. | ||
* This file is part of the SymfonyInsight package. | ||
* | ||
* (c) SensioLabs <[email protected]> | ||
* (c) Symfony <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
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,9 +1,9 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the SensioLabsInsight package. | ||
* This file is part of the SymfonyInsight package. | ||
* | ||
* (c) SensioLabs <[email protected]> | ||
* (c) Symfony <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
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,9 +1,9 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the SensioLabsInsight package. | ||
* This file is part of the SymfonyInsight package. | ||
* | ||
* (c) SensioLabs <[email protected]> | ||
* (c) Symfony <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
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,9 +1,9 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the SensioLabsInsight package. | ||
* This file is part of the SymfonyInsight package. | ||
* | ||
* (c) SensioLabs <[email protected]> | ||
* (c) Symfony <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
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,9 +1,9 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the SensioLabsInsight package. | ||
* This file is part of the SymfonyInsight package. | ||
* | ||
* (c) SensioLabs <[email protected]> | ||
* (c) Symfony <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
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,9 +1,9 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the SensioLabsInsight package. | ||
* This file is part of the SymfonyInsight package. | ||
* | ||
* (c) SensioLabs <[email protected]> | ||
* (c) Symfony <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
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
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
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
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
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
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
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
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,13 +1,7 @@ | ||
{ | ||
"name": "sensiolabs/insight", | ||
"description": "SensioLabs Insight SDK", | ||
"description": "SymfonyInsight SDK", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Grégoire Pineau", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"require": { | ||
"php": ">=7.1", | ||
"ext-json": "*", | ||
|