Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/development'
Browse files Browse the repository at this point in the history
  • Loading branch information
Aios committed May 21, 2018
2 parents 5db8f63 + 41f2d52 commit 7289162
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion resources/views/default/form/element/wysiwyg.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
{!! Form::textarea($name, $value, $attributes) !!}

@include(app('sleeping_owl.template')->getViewPath('form.element.partials.errors'))
</div>
</div>
3 changes: 1 addition & 2 deletions src/Display/Extension/ColumnsTotal.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
use Illuminate\Support\Collection;
use SleepingOwl\Admin\Display\Element;
use KodiComponents\Support\HtmlAttributes;
use SleepingOwl\Admin\Traits\ElementViewTrait;
use SleepingOwl\Admin\Contracts\Display\Placable;
use SleepingOwl\Admin\Traits\ElementPlacementTrait;
use SleepingOwl\Admin\Traits\ElementViewTrait;

class ColumnsTotal extends Extension implements Placable
{
Expand All @@ -33,7 +33,6 @@ public function __construct()
$this->elements = new Collection();
}


public function set(array $elements, $columnsNumber = 0)
{
array_map(function ($element) {
Expand Down
2 changes: 1 addition & 1 deletion src/Form/FormPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function addBody($items)
}

$class = $this->getElements()->last();
if (is_object($class) and get_class($class) === Body::class) {
if (is_object($class) && get_class($class) === Body::class) {
$this->addElement(new Html('<hr />'));
}

Expand Down
2 changes: 1 addition & 1 deletion src/Navigation/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public function getAccessLogic()
*/
public function render($view = null)
{
if ($this->hasChild() and ! $this->hasClassProperty($class = config('navigation.class.has_child', 'treeview'))) {
if ($this->hasChild() && ! $this->hasClassProperty($class = config('navigation.class.has_child', 'treeview'))) {
$this->setHtmlAttribute('class', $class);
}

Expand Down
3 changes: 0 additions & 3 deletions src/Traits/ElementPlacementTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

trait ElementPlacementTrait
{

/**
* @return string
*/
Expand Down Expand Up @@ -44,6 +43,4 @@ public function setPosition($position)
{
return $this->setPlacement($position);
}


}
1 change: 0 additions & 1 deletion src/Traits/ElementViewTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

trait ElementViewTrait
{

/**
* @return string|\Illuminate\View\View
*/
Expand Down

0 comments on commit 7289162

Please sign in to comment.