mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 11:11:31 +00:00
updated streamline-setup v2
This commit is contained in:
@@ -27,7 +27,7 @@ final class CodeExporter
|
||||
'if (!defined(\'%s\')) define(\'%s\', %s);' . "\n",
|
||||
$name,
|
||||
$name,
|
||||
$this->exportVariable($value)
|
||||
$this->exportVariable($value),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ EOT;
|
||||
$result .= sprintf(
|
||||
'$GLOBALS[%s] = %s;' . PHP_EOL,
|
||||
$this->exportVariable($name),
|
||||
$this->exportVariable($value)
|
||||
$this->exportVariable($value),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ EOT;
|
||||
$result .= sprintf(
|
||||
'@ini_set(%s, %s);' . "\n",
|
||||
$this->exportVariable($key),
|
||||
$this->exportVariable($value)
|
||||
$this->exportVariable($value),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
namespace SebastianBergmann\GlobalState;
|
||||
|
||||
use function in_array;
|
||||
use function strpos;
|
||||
use function str_starts_with;
|
||||
use ReflectionClass;
|
||||
|
||||
final class ExcludeList
|
||||
@@ -71,7 +71,7 @@ final class ExcludeList
|
||||
}
|
||||
|
||||
foreach ($this->classNamePrefixes as $prefix) {
|
||||
if (strpos($className, $prefix) === 0) {
|
||||
if (str_starts_with($className, $prefix)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,8 +90,8 @@ final class Restorer
|
||||
$keys = array_keys(
|
||||
array_merge(
|
||||
$GLOBALS[$superGlobalArray],
|
||||
$superGlobalVariables[$superGlobalArray]
|
||||
)
|
||||
$superGlobalVariables[$superGlobalArray],
|
||||
),
|
||||
);
|
||||
|
||||
foreach ($keys as $key) {
|
||||
|
||||
@@ -51,7 +51,7 @@ class Snapshot
|
||||
private array $classes = [];
|
||||
private array $traits = [];
|
||||
|
||||
public function __construct(ExcludeList $excludeList = null, bool $includeGlobalVariables = true, bool $includeStaticProperties = true, bool $includeConstants = true, bool $includeFunctions = true, bool $includeClasses = true, bool $includeInterfaces = true, bool $includeTraits = true, bool $includeIniSettings = true, bool $includeIncludedFiles = true)
|
||||
public function __construct(?ExcludeList $excludeList = null, bool $includeGlobalVariables = true, bool $includeStaticProperties = true, bool $includeConstants = true, bool $includeFunctions = true, bool $includeClasses = true, bool $includeInterfaces = true, bool $includeTraits = true, bool $includeIniSettings = true, bool $includeIncludedFiles = true)
|
||||
{
|
||||
$this->excludeList = $excludeList ?: new ExcludeList;
|
||||
|
||||
@@ -340,7 +340,7 @@ class Snapshot
|
||||
/** @noinspection SlowArrayOperationsInLoopInspection */
|
||||
$result = array_merge(
|
||||
$result,
|
||||
$this->enumerateObjectsAndResources($element, $processed)
|
||||
$this->enumerateObjectsAndResources($element, $processed),
|
||||
);
|
||||
} else {
|
||||
$result[] = $element;
|
||||
@@ -358,7 +358,7 @@ class Snapshot
|
||||
/** @noinspection SlowArrayOperationsInLoopInspection */
|
||||
$result = array_merge(
|
||||
$result,
|
||||
$this->enumerateObjectsAndResources($value, $processed)
|
||||
$this->enumerateObjectsAndResources($value, $processed),
|
||||
);
|
||||
} else {
|
||||
$result[] = $value;
|
||||
|
||||
Reference in New Issue
Block a user