Code style fixes
This commit is contained in:
parent
0868eb9c69
commit
6891b8a75f
87 changed files with 598 additions and 603 deletions
|
|
@ -40,7 +40,7 @@ class ProjectService
|
|||
* @param array $options
|
||||
* @return \PHPCI\Model\Project
|
||||
*/
|
||||
public function createProject($title, $type, $reference, $options = array())
|
||||
public function createProject($title, $type, $reference, $options = [])
|
||||
{
|
||||
// Create base project and use updateProject() to set its properties:
|
||||
$project = new Project();
|
||||
|
|
@ -56,7 +56,7 @@ class ProjectService
|
|||
* @param array $options
|
||||
* @return \PHPCI\Model\Project
|
||||
*/
|
||||
public function updateProject(Project $project, $title, $type, $reference, $options = array())
|
||||
public function updateProject(Project $project, $title, $type, $reference, $options = [])
|
||||
{
|
||||
// Set basic properties:
|
||||
$project->setTitle($title);
|
||||
|
|
@ -117,11 +117,11 @@ class ProjectService
|
|||
*/
|
||||
protected function processAccessInformation(Project &$project)
|
||||
{
|
||||
$matches = array();
|
||||
$matches = [];
|
||||
$reference = $project->getReference();
|
||||
|
||||
if ($project->getType() == 'gitlab') {
|
||||
$info = array();
|
||||
$info = [];
|
||||
|
||||
if (preg_match('`^(.+)@(.+):([0-9]*)\/?(.+)\.git`', $reference, $matches)) {
|
||||
$info['user'] = $matches[1];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue