git.cweiske.de
/
phorkie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
do not try to delete if file does not exist
[phorkie.git]
/
src
/
phorkie
/
Repositories.php
diff --git
a/src/phorkie/Repositories.php
b/src/phorkie/Repositories.php
index dc26a171eebecafc575d0325bc8c78e353726f4c..a75f2c23a62d23ca93f6e57ee340592317ce9f2d 100644
(file)
--- a/
src/phorkie/Repositories.php
+++ b/
src/phorkie/Repositories.php
@@
-16,7
+16,12
@@
class Repositories
{
chdir($this->gitDir);
$dirs = glob('*.git', GLOB_ONLYDIR);
{
chdir($this->gitDir);
$dirs = glob('*.git', GLOB_ONLYDIR);
- array_walk($dirs, function ($dir) { return substr($dir, 0, -4); });
+ array_walk(
+ $dirs,
+ function ($dir) {
+ return substr($dir, 0, -4);
+ }
+ );
sort($dirs, SORT_NUMERIC);
$n = end($dirs) + 1;
sort($dirs, SORT_NUMERIC);
$n = end($dirs) + 1;