v1.0.0 initial release
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\View\Compilers\Concerns;
|
||||
|
||||
trait CompilesStyles
|
||||
{
|
||||
/**
|
||||
* Compile the conditional style statement into valid PHP.
|
||||
*
|
||||
* @param string $expression
|
||||
* @return string
|
||||
*/
|
||||
protected function compileStyle($expression)
|
||||
{
|
||||
$expression = is_null($expression) ? '([])' : $expression;
|
||||
|
||||
return "style=\"<?php echo \Illuminate\Support\Arr::toCssStyles{$expression} ?>\"";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user