update 2023-05-01 13:00:44

This commit is contained in:
Robot 2023-05-01 13:00:44 +02:00
parent 677b8ace35
commit f0d3000280
Signed by: Robot
GPG Key ID: 14DECD44E7E1BB95
4 changed files with 4 additions and 30 deletions

View File

@ -543,7 +543,7 @@ namespace VDM\Joomla\Componentbuilder\Power #Olive {
class Grep << (F,LightGreen) >> #Green { class Grep << (F,LightGreen) >> #Green {
+ string $path + ?string $path
+ ?array $paths + ?array $paths
# Contents $contents # Contents $contents
# CMSApplication $app # CMSApplication $app

View File

@ -11,7 +11,7 @@
```uml ```uml
@startuml @startuml
class Grep << (F,LightGreen) >> #Green { class Grep << (F,LightGreen) >> #Green {
+ string $path + ?string $path
+ ?array $paths + ?array $paths
# Contents $contents # Contents $contents
# CMSApplication $app # CMSApplication $app

View File

@ -39,7 +39,7 @@ final class Grep
* @var string * @var string
* @since 3.2.0 * @since 3.2.0
**/ **/
public string $path; public ?string $path;
/** /**
* All approved paths * All approved paths
@ -241,11 +241,6 @@ final class Grep
*/ */
private function init() private function init()
{ {
if (!Folder::exists($this->path))
{
$this->path = null;
}
if (is_array($this->paths) && $this->paths !== []) if (is_array($this->paths) && $this->paths !== [])
{ {
foreach ($this->paths as $n => &$path) foreach ($this->paths as $n => &$path)
@ -273,15 +268,7 @@ final class Grep
unset($this->paths[$n]); unset($this->paths[$n]);
} }
} }
// if we still have paths
if ($this->paths !== [])
{
return;
}
} }
$this->paths = null;
} }
/** /**

View File

@ -4,7 +4,7 @@
* @var string * @var string
* @since 3.2.0 * @since 3.2.0
**/ **/
public string $path; public ?string $path;
/** /**
* All approved paths * All approved paths
@ -206,11 +206,6 @@
*/ */
private function init() private function init()
{ {
if (!Folder::exists($this->path))
{
$this->path = null;
}
if (is_array($this->paths) && $this->paths !== []) if (is_array($this->paths) && $this->paths !== [])
{ {
foreach ($this->paths as $n => &$path) foreach ($this->paths as $n => &$path)
@ -238,15 +233,7 @@
unset($this->paths[$n]); unset($this->paths[$n]);
} }
} }
// if we still have paths
if ($this->paths !== [])
{
return;
}
} }
$this->paths = null;
} }
/** /**