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