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 {
|
class Grep << (F,LightGreen) >> #Green {
|
||||||
+ string $path
|
+ ?string $path
|
||||||
+ ?array $paths
|
+ ?array $paths
|
||||||
# Contents $contents
|
# Contents $contents
|
||||||
# CMSApplication $app
|
# CMSApplication $app
|
||||||
|
@ -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
|
||||||
|
@ -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,17 +268,9 @@ final class Grep
|
|||||||
unset($this->paths[$n]);
|
unset($this->paths[$n]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// if we still have paths
|
|
||||||
if ($this->paths !== [])
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->paths = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load the local repository index of powers
|
* Load the local repository index of powers
|
||||||
*
|
*
|
||||||
|
@ -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,17 +233,9 @@
|
|||||||
unset($this->paths[$n]);
|
unset($this->paths[$n]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// if we still have paths
|
|
||||||
if ($this->paths !== [])
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->paths = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load the local repository index of powers
|
* Load the local repository index of powers
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user