Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
Helpers
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Modulus
Helpers
Commits
5aa9938d
Commit
5aa9938d
authored
Apr 17, 2020
by
Sylvain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mise à jour de Dynamik
parent
60ef4fb5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
src/Helpers/Dynamik.php
src/Helpers/Dynamik.php
+3
-11
No files found.
src/Helpers/Dynamik.php
View file @
5aa9938d
...
...
@@ -80,11 +80,6 @@ class Dynamik
// Traitement des % seuls pour éviter les conflits
$format
=
preg_replace
(
'/(%)[^0-9sd.\']/i'
,
'%%"'
,
$format
);
// Convertion en tableau si besoin
// if (!is_array($args)) {
// $args = [$args];
// }
// Préparation des arguments pour le template
$arguments
=
$this
->
getValue
(
$args
);
...
...
@@ -117,18 +112,15 @@ class Dynamik
$function
=
preg_replace
(
'/(\(.*)/'
,
''
,
$function
);
// Préparation des arguments pour la fonction
$arguments
=
(
array
)
$this
->
getValue
(
$args
);
//dd($function, $arguments);
$arguments
=
$this
->
getValue
(
$args
);
if
(
!
is_array
(
$arguments
))
{
$arguments
=
[
$arguments
];
}
// if ($function == 'str_limit') {
// dd('ok');
// }
$value
=
call_user_func_array
(
$function
,
$arguments
);
return
$
this
->
getValue
(
$value
)
;
return
$
value
;
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment