update 2023-05-01 13:00:44
This commit is contained in:
parent
677b8ace35
commit
f0d3000280
@ -543,7 +543,7 @@ namespace VDM\Joomla\Componentbuilder\Power #Olive {
|
||||
|
||||
|
||||
class Grep << (F,LightGreen) >> #Green {
|
||||
+ string $path
|
||||
+ ?string $path
|
||||
+ ?array $paths
|
||||
# Contents $contents
|
||||
# CMSApplication $app
|
||||
|
@ -11,7 +11,7 @@
|
||||
```uml
|
||||
@startuml
|
||||
class Grep << (F,LightGreen) >> #Green {
|
||||
+ string $path
|
||||
+ ?string $path
|
||||
+ ?array $paths
|
||||
# Contents $contents
|
||||
# CMSApplication $app
|
||||
|
@ -39,7 +39,7 @@ final class Grep
|
||||
* @var string
|
||||
* @since 3.2.0
|
||||
**/
|
||||
public string $path;
|
||||
public ?string $path;
|
||||
|
||||
/**
|
||||
* All approved paths
|
||||
@ -241,11 +241,6 @@ final class Grep
|
||||
*/
|
||||
private function init()
|
||||
{
|
||||
if (!Folder::exists($this->path))
|
||||
{
|
||||
$this->path = null;
|
||||
}
|
||||
|
||||
if (is_array($this->paths) && $this->paths !== [])
|
||||
{
|
||||
foreach ($this->paths as $n => &$path)
|
||||
@ -273,15 +268,7 @@ final class Grep
|
||||
unset($this->paths[$n]);
|
||||
}
|
||||
}
|
||||
|
||||
// if we still have paths
|
||||
if ($this->paths !== [])
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
$this->paths = null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -4,7 +4,7 @@
|
||||
* @var string
|
||||
* @since 3.2.0
|
||||
**/
|
||||
public string $path;
|
||||
public ?string $path;
|
||||
|
||||
/**
|
||||
* All approved paths
|
||||
@ -206,11 +206,6 @@
|
||||
*/
|
||||
private function init()
|
||||
{
|
||||
if (!Folder::exists($this->path))
|
||||
{
|
||||
$this->path = null;
|
||||
}
|
||||
|
||||
if (is_array($this->paths) && $this->paths !== [])
|
||||
{
|
||||
foreach ($this->paths as $n => &$path)
|
||||
@ -238,15 +233,7 @@
|
||||
unset($this->paths[$n]);
|
||||
}
|
||||
}
|
||||
|
||||
// if we still have paths
|
||||
if ($this->paths !== [])
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
$this->paths = null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user