mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-19 02:52:44 +00:00
Remove unnecessary slash from in_array()
This commit is contained in:
@@ -68,7 +68,7 @@ trait GetConfigurationData
|
||||
$routeKey = str_replace('.', '_', $route);
|
||||
$elements = config(sprintf('intro.%s', $routeKey));
|
||||
$steps = [];
|
||||
if (\is_array($elements) && count($elements) > 0) {
|
||||
if (is_array($elements) && count($elements) > 0) {
|
||||
foreach ($elements as $key => $options) {
|
||||
$currentStep = $options;
|
||||
|
||||
@@ -188,7 +188,7 @@ trait GetConfigurationData
|
||||
if ('' !== $specificPage) {
|
||||
$routeKey = str_replace('.', '_', $route);
|
||||
$elements = config(sprintf('intro.%s', $routeKey . '_' . $specificPage));
|
||||
if (\is_array($elements) && count($elements) > 0) {
|
||||
if (is_array($elements) && count($elements) > 0) {
|
||||
foreach ($elements as $key => $options) {
|
||||
$currentStep = $options;
|
||||
|
||||
|
@@ -144,7 +144,7 @@ trait RequestInformation
|
||||
{
|
||||
$triggers = [];
|
||||
$data = $request->get('triggers');
|
||||
if (\is_array($data)) {
|
||||
if (is_array($data)) {
|
||||
foreach ($data as $index => $triggerInfo) {
|
||||
$triggers[] = [
|
||||
'type' => $triggerInfo['type'] ?? '',
|
||||
|
@@ -96,7 +96,7 @@ trait RuleManagement
|
||||
$index = 0;
|
||||
$triggers = [];
|
||||
$oldInput = $request->old('actions');
|
||||
if (\is_array($oldInput)) {
|
||||
if (is_array($oldInput)) {
|
||||
foreach ($oldInput as $oldAction) {
|
||||
try {
|
||||
$triggers[] = view(
|
||||
@@ -129,7 +129,7 @@ trait RuleManagement
|
||||
$index = 0;
|
||||
$triggers = [];
|
||||
$oldInput = $request->old('triggers');
|
||||
if (\is_array($oldInput)) {
|
||||
if (is_array($oldInput)) {
|
||||
foreach ($oldInput as $oldTrigger) {
|
||||
try {
|
||||
$triggers[] = view(
|
||||
|
Reference in New Issue
Block a user