-
Notifications
You must be signed in to change notification settings - Fork 18
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
23 changed files
with
1,709 additions
and
90 deletions.
There are no files selected for viewing
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,27 +1,25 @@ | ||
<?php | ||
use Symfony\CS\Config\Config; | ||
use Symfony\CS\Finder\DefaultFinder; | ||
use Symfony\CS\Fixer\Contrib\HeaderCommentFixer; | ||
use Symfony\CS\FixerInterface; | ||
|
||
$finder = DefaultFinder::create()->in('app'); | ||
$finder = DefaultFinder::create()->in(['app', 'tests/unit/Semver']); | ||
|
||
return Config::create() | ||
->level(FixerInterface::SYMFONY_LEVEL) | ||
->fixers([ | ||
'-yoda_conditions', | ||
'align_double_arrow', | ||
'align_equals', | ||
'ereg_to_preg', | ||
'header_comment', | ||
'multiline_spaces_before_semicolon', | ||
'no_blank_lines_before_namespace', | ||
'ordered_use', | ||
'phpdoc_order', | ||
'phpdoc_var_to_type', | ||
'short_array_syntax', | ||
'strict', | ||
'strict_param', | ||
]) | ||
->setUsingCache(true) | ||
->finder($finder); | ||
->level(FixerInterface::SYMFONY_LEVEL) | ||
->fixers([ | ||
'ereg_to_preg', | ||
'multiline_spaces_before_semicolon', | ||
'newline_after_open_tag', | ||
'no_blank_lines_before_namespace', | ||
'ordered_use', | ||
'php4_constructor', | ||
'phpdoc_order', | ||
'-phpdoc_params', | ||
'short_array_syntax', | ||
'short_echo_tag', | ||
'strict', | ||
'strict_param', | ||
]) | ||
->setUsingCache(true) | ||
->finder($finder); |
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
14 changes: 14 additions & 0 deletions
14
app/Semver/Contracts/Repositories/PackageVersionsRepository.php
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
namespace Semver\Contracts\Repositories; | ||
|
||
use Packagist\Api\Result\Package\Version; | ||
|
||
interface PackageVersionsRepository | ||
{ | ||
/** | ||
* @param string $package vendor/package | ||
* | ||
* @return Version[] | ||
*/ | ||
public function getVersions($package); | ||
} |
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
class HomeController | ||
{ | ||
/** | ||
* @type Engine | ||
* @var Engine | ||
*/ | ||
private $views; | ||
|
||
|
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
Oops, something went wrong.