Commit 9ef2796b authored by Kevin Yumang's avatar Kevin Yumang

SERV-2286 - test beautify on element config file. beautified and the author was replaced.

parent ab7444be
<?php
/*
|------------------------------------------------------------------------------------------------
| Information
......@@ -8,8 +9,8 @@
| This file is beautified by the command "sidekick:CodebeautifierCommand" of the ceetrox
| sidekick package.
|
| Author: Marco Schmiedel <marco.schmiedel@itmax.email>
| Update: 2022-06-15 10:07:09
| Author: Kevin Almond Roe Yumang <kevin.yumang@itmax.email>
| Update: 2022-06-30 02:04:35
|
*/
namespace Ceetrox\Sidekick\Views\Limitless\Element;
......@@ -20,10 +21,9 @@
| Dependencies
|------------------------------------------------------------------------------------------------
*/
use Ceetrox\Views\Limitless\Element\LoremIpsum\JoshtronicLoremIpsum;
use View;
/*
|------------------------------------------------------------------------------------------------
| Class "Config"
......@@ -37,22 +37,24 @@
|--------------------------------------------------------------------------------------------
*/
public $methodAllocation = [
'Limitless::Alert' => 'alert',
'Limitless::ElementCardStart' => 'cardStart',
'Limitless::ElementCardStop' => 'cardStop',
'Limitless::LoremIpsum' => 'loremIpsum',
'Limitless::RandomSelect' => 'randomSelect',
'Limitless::Divider' => 'divider',
'Limitless::Example' => 'example',
'Limitless::Alert' => 'alert',
'Limitless::ElementCardStart' => 'cardStart',
'Limitless::ElementCardStop' => 'cardStop',
'Limitless::LoremIpsum' => 'loremIpsum',
'Limitless::RandomSelect' => 'randomSelect',
'Limitless::Divider' => 'divider',
'Limitless::Example' => 'example',
];
public $assetAllocation = [
'Limitless::Example' => [
'Example/example.js',
'Example/example.css'
]
'Limitless::Example' => [
'Example/example.js',
'Example/example.css'
]
];
/*
|--------------------------------------------------------------------------------------------
| Method "alert"
......@@ -61,17 +63,18 @@
public function alert($parameters)
{
return View('Limitless::Element.Alert.Alert')
->withDefault($parameters['default'] ?? true)
->withType($parameters['type'] ?? 'primary')
->withBorder(isset($parameters['border']) ? (string)$parameters['border'] : null)
->withStyled($parameters['styled'] ?? null)
->withRounded($parameters['rounded'] ?? false)
->withDismissible($parameters['dismissible'] ?? false)
->withTitle($parameters['title'] ?? 'No title.')
->withMessage($parameters['message'] ?? 'No message.');
->withDefault($parameters['default'] ?? true)
->withType($parameters['type'] ?? 'primary')
->withBorder(isset($parameters['border']) ? (string)$parameters['border'] : null)
->withStyled($parameters['styled'] ?? null)
->withRounded($parameters['rounded'] ?? false)
->withDismissible($parameters['dismissible'] ?? false)
->withTitle($parameters['title'] ?? 'No title.')
->withMessage($parameters['message'] ?? 'No message.');
}
/*
|--------------------------------------------------------------------------------------------
| Method "cardStart"
......@@ -100,6 +103,7 @@
}
/*
|--------------------------------------------------------------------------------------------
| Method "loremIpsum"
......@@ -108,9 +112,11 @@
public function loremIpsum($parameters)
{
return View('Limitless::Element.LoremIpsum.LoremIpsum')
->withLength($parameters == [] ? 20 : $parameters);
->withLength($parameters == [] ? 20 : $parameters);
}
/*
|--------------------------------------------------------------------------------------------
| Method "divider"
......@@ -122,6 +128,7 @@
}
/*
|--------------------------------------------------------------------------------------------
| Method "randomSelect"
......@@ -130,7 +137,7 @@
public function randomSelect($items)
{
return View('Limitless::Element.RandomSelect.RandomSelect')
->withItems($items);
->withItems($items);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment