mirror of
https://github.com/klaussilveira/gitlist.git
synced 2026-07-10 12:12:40 +02:00
Initializing the repositories vas as empty array instead of null
This commit is contained in:
@@ -65,8 +65,7 @@ class Client
|
||||
{
|
||||
$dir = new \DirectoryIterator($path);
|
||||
|
||||
// Good practice defined a variable before using it
|
||||
$repositories = null;
|
||||
$repositories = array();
|
||||
|
||||
foreach ($dir as $file) {
|
||||
if ($file->isDot()) {
|
||||
|
||||
Reference in New Issue
Block a user