restore includes files
This commit is contained in:
parent
eb8097d81c
commit
4b9449e2ef
@ -49,7 +49,7 @@ class ApiPrintConnector implements PrintConnector
|
||||
*/
|
||||
public function __destruct()
|
||||
{
|
||||
if (!empty($this->stream)) {
|
||||
if (! empty($this->stream)) {
|
||||
trigger_error("Print connector was not finalized. Did you forget to close the printer?", E_USER_NOTICE);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1270,20 +1270,20 @@ class soap_transport_http extends nusoap_base {
|
||||
continue;
|
||||
}
|
||||
$this->debug("check cookie for validity: ".$cookie['name'].'='.$cookie['value']);
|
||||
if ((isset($cookie['expires'])) && (!empty($cookie['expires']))) {
|
||||
if ((isset($cookie['expires'])) && (! empty($cookie['expires']))) {
|
||||
if (strtotime($cookie['expires']) <= time()) {
|
||||
$this->debug('cookie has expired');
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((isset($cookie['domain'])) && (!empty($cookie['domain']))) {
|
||||
if ((isset($cookie['domain'])) && (! empty($cookie['domain']))) {
|
||||
$domain = preg_quote($cookie['domain']);
|
||||
if (! preg_match("'.*$domain$'i", $this->host)) {
|
||||
$this->debug('cookie has different domain');
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((isset($cookie['path'])) && (!empty($cookie['path']))) {
|
||||
if ((isset($cookie['path'])) && (! empty($cookie['path']))) {
|
||||
$path = preg_quote($cookie['path']);
|
||||
if (! preg_match("'^$path.*'i", $this->path)) {
|
||||
$this->debug('cookie is for a different path');
|
||||
|
||||
@ -900,7 +900,7 @@ class nusoap_client extends nusoap_base {
|
||||
$this->debug('Remove cookie that is not an array');
|
||||
continue;
|
||||
}
|
||||
if ((isset($cookie['expires'])) && (!empty($cookie['expires']))) {
|
||||
if ((isset($cookie['expires'])) && (! empty($cookie['expires']))) {
|
||||
if (strtotime($cookie['expires']) > time()) {
|
||||
$this->cookies[] = $cookie;
|
||||
} else {
|
||||
|
||||
@ -3421,20 +3421,20 @@ class soap_transport_http extends nusoap_base {
|
||||
continue;
|
||||
}
|
||||
$this->debug("check cookie for validity: ".$cookie['name'].'='.$cookie['value']);
|
||||
if ((isset($cookie['expires'])) && (!empty($cookie['expires']))) {
|
||||
if ((isset($cookie['expires'])) && (! empty($cookie['expires']))) {
|
||||
if (strtotime($cookie['expires']) <= time()) {
|
||||
$this->debug('cookie has expired');
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((isset($cookie['domain'])) && (!empty($cookie['domain']))) {
|
||||
if ((isset($cookie['domain'])) && (! empty($cookie['domain']))) {
|
||||
$domain = preg_quote($cookie['domain']);
|
||||
if (! preg_match("'.*$domain$'i", $this->host)) {
|
||||
$this->debug('cookie has different domain');
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((isset($cookie['path'])) && (!empty($cookie['path']))) {
|
||||
if ((isset($cookie['path'])) && (! empty($cookie['path']))) {
|
||||
$path = preg_quote($cookie['path']);
|
||||
if (! preg_match("'^$path.*'i", $this->path)) {
|
||||
$this->debug('cookie is for a different path');
|
||||
@ -8057,7 +8057,7 @@ class nusoap_client extends nusoap_base {
|
||||
$this->debug('Remove cookie that is not an array');
|
||||
continue;
|
||||
}
|
||||
if ((isset($cookie['expires'])) && (!empty($cookie['expires']))) {
|
||||
if ((isset($cookie['expires'])) && (! empty($cookie['expires']))) {
|
||||
if (strtotime($cookie['expires']) > time()) {
|
||||
$this->cookies[] = $cookie;
|
||||
} else {
|
||||
|
||||
@ -101,7 +101,7 @@ class Segment implements IteratorAggregate, Countable
|
||||
preg_match_all($reg, $this->xml, $matches, PREG_SET_ORDER);
|
||||
//var_dump($tmpvars);exit;
|
||||
foreach ($matches as $match) { // For each match, if there is no entry into this->vars, we add it
|
||||
if (!empty($match[1]) && ! isset($tmpvars[$match[1]])) {
|
||||
if (! empty($match[1]) && ! isset($tmpvars[$match[1]])) {
|
||||
$tmpvars[$match[1]] = ''; // Not defined, so we set it to '', we just need entry into this->vars for next loop
|
||||
}
|
||||
}
|
||||
|
||||
@ -530,7 +530,7 @@ IMG;
|
||||
|
||||
//var_dump($this->vars);exit;
|
||||
foreach ($matches as $match) { // For each match, if there is no entry into this->vars, we add it
|
||||
if (!empty($match[1]) && ! isset($this->vars[$match[1]])) {
|
||||
if (! empty($match[1]) && ! isset($this->vars[$match[1]])) {
|
||||
$this->vars[$match[1]] = ''; // Not defined, so we set it to '', we just need entry into this->vars for next loop
|
||||
}
|
||||
}
|
||||
@ -877,7 +877,7 @@ IMG;
|
||||
pclose($handlein);
|
||||
fclose($handle);
|
||||
}
|
||||
if (!empty($conf->global->MAIN_UMASK)) @chmod($outputfile, octdec($conf->global->MAIN_UMASK));
|
||||
if (! empty($conf->global->MAIN_UMASK)) @chmod($outputfile, octdec($conf->global->MAIN_UMASK));
|
||||
}
|
||||
|
||||
if ($retval == 0) {
|
||||
|
||||
@ -111,7 +111,7 @@ class Arr
|
||||
$results = [];
|
||||
|
||||
foreach ($array as $key => $value) {
|
||||
if (is_array($value) && !empty($value)) {
|
||||
if (is_array($value) && ! empty($value)) {
|
||||
$results = array_merge($results, static::dot($value, $prepend.$key.'.'));
|
||||
} else {
|
||||
$results[$prepend.$key] = $value;
|
||||
|
||||
@ -482,7 +482,7 @@ class Collection implements ArrayAccess, CanBeEscapedWhenCastToString, Enumerabl
|
||||
|
||||
$result = new static($results);
|
||||
|
||||
if (!empty($nextGroups)) {
|
||||
if (! empty($nextGroups)) {
|
||||
return $result->map->groupBy($nextGroups, $preserveKeys);
|
||||
}
|
||||
|
||||
|
||||
@ -363,7 +363,7 @@ abstract class ServiceProvider
|
||||
*/
|
||||
protected static function pathsForProviderAndGroup($provider, $group)
|
||||
{
|
||||
if (!empty(static::$publishes[$provider]) && !empty(static::$publishGroups[$group])) {
|
||||
if (! empty(static::$publishes[$provider]) && ! empty(static::$publishGroups[$group])) {
|
||||
return array_intersect_key(static::$publishes[$provider], static::$publishGroups[$group]);
|
||||
}
|
||||
|
||||
|
||||
@ -223,7 +223,7 @@ class Stringable implements JsonSerializable
|
||||
|
||||
$segments = preg_split($pattern, $this->value, $limit, $flags);
|
||||
|
||||
return !empty($segments) ? collect($segments) : collect();
|
||||
return ! empty($segments) ? collect($segments) : collect();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -517,7 +517,7 @@ class BusFake implements QueueingDispatcher
|
||||
*/
|
||||
public function hasDispatched($command)
|
||||
{
|
||||
return isset($this->commands[$command]) && !empty($this->commands[$command]);
|
||||
return isset($this->commands[$command]) && ! empty($this->commands[$command]);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -528,7 +528,7 @@ class BusFake implements QueueingDispatcher
|
||||
*/
|
||||
public function hasDispatchedSync($command)
|
||||
{
|
||||
return isset($this->commandsSync[$command]) && !empty($this->commandsSync[$command]);
|
||||
return isset($this->commandsSync[$command]) && ! empty($this->commandsSync[$command]);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -539,7 +539,7 @@ class BusFake implements QueueingDispatcher
|
||||
*/
|
||||
public function hasDispatchedAfterResponse($command)
|
||||
{
|
||||
return isset($this->commandsAfterResponse[$command]) && !empty($this->commandsAfterResponse[$command]);
|
||||
return isset($this->commandsAfterResponse[$command]) && ! empty($this->commandsAfterResponse[$command]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -189,7 +189,7 @@ class EventFake implements Dispatcher
|
||||
*/
|
||||
public function hasDispatched($event)
|
||||
{
|
||||
return isset($this->events[$event]) && !empty($this->events[$event]);
|
||||
return isset($this->events[$event]) && ! empty($this->events[$event]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -227,7 +227,7 @@ class NotificationFake implements NotificationDispatcher, NotificationFactory
|
||||
*/
|
||||
public function hasSent($notifiable, $notification)
|
||||
{
|
||||
return !empty($this->notificationsFor($notifiable, $notification));
|
||||
return ! empty($this->notificationsFor($notifiable, $notification));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -242,7 +242,7 @@ class QueueFake extends QueueManager implements Queue
|
||||
*/
|
||||
public function hasPushed($job)
|
||||
{
|
||||
return isset($this->jobs[$job]) && !empty($this->jobs[$job]);
|
||||
return isset($this->jobs[$job]) && ! empty($this->jobs[$job]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user