mirror of
https://github.com/klaussilveira/gitlist.git
synced 2026-01-28 10:19:39 +01:00
Merge pull request #804 from siburny/patch-strict-warning-getstatistics
Fix #801
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
"require": {
|
||||
"php": ">=5.3",
|
||||
"doctrine/instantiator": "1.0.*",
|
||||
"klaussilveira/gitter": "0.2.*",
|
||||
"klaussilveira/gitter": "^0.4.0",
|
||||
"phpdocumentor/reflection-docblock": "2.0.*",
|
||||
"sebastian/comparator": "1.2.*",
|
||||
"sebastian/recursion-context": "1.0.*",
|
||||
|
||||
25
composer.lock
generated
25
composer.lock
generated
@@ -4,7 +4,7 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "794e85ba2c352cffcb450590bd7d956c",
|
||||
"content-hash": "597ad6c4e1c4d5c78197a53be433c015",
|
||||
"packages": [
|
||||
{
|
||||
"name": "doctrine/instantiator",
|
||||
@@ -62,25 +62,30 @@
|
||||
},
|
||||
{
|
||||
"name": "klaussilveira/gitter",
|
||||
"version": "0.2.0",
|
||||
"version": "0.4",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/klaussilveira/gitter.git",
|
||||
"reference": "910a3d324caf53d8d21b55fb80a9a6735974a80c"
|
||||
"reference": "649f8423323c844bf7e516dec2e39711206b2a02"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/klaussilveira/gitter/zipball/910a3d324caf53d8d21b55fb80a9a6735974a80c",
|
||||
"reference": "910a3d324caf53d8d21b55fb80a9a6735974a80c",
|
||||
"url": "https://api.github.com/repos/klaussilveira/gitter/zipball/649f8423323c844bf7e516dec2e39711206b2a02",
|
||||
"reference": "649f8423323c844bf7e516dec2e39711206b2a02",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.3.0",
|
||||
"symfony/process": ">=2.2"
|
||||
"doctrine/instantiator": "1.0.*",
|
||||
"php": ">=5.3",
|
||||
"phpdocumentor/reflection-docblock": "2.0.*",
|
||||
"sebastian/comparator": "1.2.*",
|
||||
"sebastian/recursion-context": "1.0.*",
|
||||
"symfony/process": "2.8.*"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": ">=3.7.1",
|
||||
"symfony/filesystem": ">=2.2"
|
||||
"mockery/mockery": "0.9.1",
|
||||
"phpunit/phpunit": "~4.8",
|
||||
"symfony/filesystem": "2.8.*"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
@@ -106,7 +111,7 @@
|
||||
"git",
|
||||
"vcs"
|
||||
],
|
||||
"time": "2013-06-01T13:32:37+00:00"
|
||||
"time": "2018-06-01T03:23:15+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phpdocumentor/reflection-docblock",
|
||||
|
||||
@@ -33,7 +33,7 @@ class MainController implements ControllerProviderInterface
|
||||
$branch = $repository->getHead();
|
||||
}
|
||||
|
||||
$stats = $repository->getStatistics($branch);
|
||||
$stats = $repository->getBranchStatistics($branch);
|
||||
$authors = $repository->getAuthorStatistics($branch);
|
||||
|
||||
return $app['twig']->render('stats.twig', array(
|
||||
|
||||
@@ -372,7 +372,7 @@ class Repository extends BaseRepository
|
||||
return $data;
|
||||
}
|
||||
|
||||
public function getStatistics($branch)
|
||||
public function getBranchStatistics($branch)
|
||||
{
|
||||
// Calculate amount of files, extensions and file size
|
||||
$logs = $this->getClient()->run($this, 'ls-tree -r -l ' . $branch);
|
||||
|
||||
Reference in New Issue
Block a user