Skip to content

Commit

Permalink
Merge pull request #1142 from LaravelRUS/analysis-q24dng
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
butschster authored Nov 11, 2019
2 parents 72c8eb8 + 6343c89 commit b1ccf35
Show file tree
Hide file tree
Showing 128 changed files with 394 additions and 394 deletions.
22 changes: 11 additions & 11 deletions src/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@
namespace SleepingOwl\Admin;

use Closure;
use Illuminate\Filesystem\Filesystem;
use Collective\Html\HtmlServiceProvider;
use Illuminate\Config\Repository as ConfigRepository;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Contracts\Support\Renderable;
use SleepingOwl\Admin\Model\ModelCollection;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Foundation\ProviderRepository;
use SleepingOwl\Admin\Contracts\Initializable;
use SleepingOwl\Admin\Configuration\ProvidesScriptVariables;
use SleepingOwl\Admin\Contracts\AdminInterface;
use SleepingOwl\Admin\Model\ModelConfiguration;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Config\Repository as ConfigRepository;
use SleepingOwl\Admin\Providers\AdminServiceProvider;
use SleepingOwl\Admin\Contracts\Initializable;
use SleepingOwl\Admin\Contracts\ModelConfigurationInterface;
use SleepingOwl\Admin\Contracts\Navigation\NavigationInterface;
use SleepingOwl\Admin\Contracts\Template\MetaInterface;
use SleepingOwl\Admin\Contracts\Template\TemplateInterface;
use SleepingOwl\Admin\Http\Controllers\AdminController;
use SleepingOwl\Admin\Model\ModelCollection;
use SleepingOwl\Admin\Model\ModelConfiguration;
use SleepingOwl\Admin\Providers\AdminServiceProvider;
use SleepingOwl\Admin\Providers\AliasesServiceProvider;
use SleepingOwl\Admin\Contracts\Template\TemplateInterface;
use SleepingOwl\Admin\Providers\BreadcrumbsServiceProvider;
use SleepingOwl\Admin\Configuration\ProvidesScriptVariables;
use SleepingOwl\Admin\Contracts\ModelConfigurationInterface;
use SleepingOwl\Admin\Contracts\Navigation\NavigationInterface;

/**
* Class Admin.
Expand Down
4 changes: 2 additions & 2 deletions src/AliasBinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace SleepingOwl\Admin;

use ReflectionClass;
use BadMethodCallException;
use Illuminate\Contracts\Routing\Registrar;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Contracts\Routing\Registrar;
use ReflectionClass;
use SleepingOwl\Admin\Contracts\AliasBinderInterface;

class AliasBinder implements AliasBinderInterface
Expand Down
2 changes: 1 addition & 1 deletion src/Console/Commands/GeneratorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace SleepingOwl\Admin\Console\Commands;

use SleepingOwl\Admin\Console\Generator;
use Barryvdh\LaravelIdeHelper\Console\GeneratorCommand as IdeHelperGeneratorCommand;
use SleepingOwl\Admin\Console\Generator;

/**
* A command to generate autocomplete information for your IDE.
Expand Down
2 changes: 1 addition & 1 deletion src/Console/Commands/SectionMake.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace SleepingOwl\Admin\Console\Commands;

use Symfony\Component\Console\Input\InputArgument;
use Illuminate\Console\GeneratorCommand as SectionGeneratorCommand;
use Symfony\Component\Console\Input\InputArgument;

class SectionMake extends SectionGeneratorCommand
{
Expand Down
2 changes: 1 addition & 1 deletion src/Console/Commands/SectionProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace SleepingOwl\Admin\Console\Commands;

use Illuminate\Console\Command;
use Illuminate\Config\Repository;
use Illuminate\Console\Command;
use SleepingOwl\Admin\Console\Installation\CreateSectionServiceProvider;

class SectionProvider extends Command
Expand Down
2 changes: 1 addition & 1 deletion src/Console/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace SleepingOwl\Admin\Console;

use Illuminate\Support\Collection;
use Barryvdh\LaravelIdeHelper\Alias;
use Barryvdh\LaravelIdeHelper\Generator as IdeHelperGenerator;
use Illuminate\Support\Collection;

class Generator extends IdeHelperGenerator
{
Expand Down
4 changes: 2 additions & 2 deletions src/Console/Installation/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace SleepingOwl\Admin\Console\Installation;

use Illuminate\Config\Repository;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Console\ConfirmableTrait;
use Illuminate\Console\Command as ConsoleCommand;
use Illuminate\Console\ConfirmableTrait;
use Illuminate\Filesystem\Filesystem;
use SleepingOwl\Admin\Providers\SleepingOwlServiceProvider;

abstract class Command extends ConsoleCommand
Expand Down
2 changes: 1 addition & 1 deletion src/Contracts/AdminInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

use Closure;
use Illuminate\Support\Collection;
use SleepingOwl\Admin\Contracts\Navigation\NavigationInterface;
use SleepingOwl\Admin\Contracts\Template\MetaInterface;
use SleepingOwl\Admin\Contracts\Template\TemplateInterface;
use SleepingOwl\Admin\Contracts\Navigation\NavigationInterface;

interface AdminInterface extends Initializable
{
Expand Down
4 changes: 2 additions & 2 deletions src/Contracts/Display/ControlButtonInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace SleepingOwl\Admin\Contracts\Display;

use Illuminate\Contracts\View\View;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Contracts\Support\Renderable;
use Illuminate\Contracts\View\View;
use Illuminate\Database\Eloquent\Model;
use SleepingOwl\Admin\Contracts\WithModelInterface;

interface ControlButtonInterface extends Renderable, Arrayable, WithModelInterface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace SleepingOwl\Admin\Contracts\Display;

use SleepingOwl\Admin\Display\Column\Filter\Date;
use SleepingOwl\Admin\Display\Column\Filter\Text;
use SleepingOwl\Admin\Display\Column\Filter\Range;
use SleepingOwl\Admin\Display\Column\Filter\Select;
use SleepingOwl\Admin\Display\Column\Filter\Text;

/**
* @method Text text()
Expand Down
2 changes: 1 addition & 1 deletion src/Contracts/Display/DisplayExtensionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace SleepingOwl\Admin\Contracts\Display;

use Illuminate\Database\Eloquent\Builder;
use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Database\Eloquent\Builder;

interface DisplayExtensionInterface extends Arrayable
{
Expand Down
8 changes: 4 additions & 4 deletions src/Contracts/Display/DisplayFactoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

namespace SleepingOwl\Admin\Contracts\Display;

use SleepingOwl\Admin\Display\DisplayTab;
use SleepingOwl\Admin\Display\DisplayTree;
use SleepingOwl\Admin\Display\DisplayTable;
use Illuminate\Contracts\Support\Renderable;
use SleepingOwl\Admin\Display\DisplayTabbed;
use SleepingOwl\Admin\Display\DisplayDatatablesAsync;
use SleepingOwl\Admin\Display\DisplayTab;
use SleepingOwl\Admin\Display\DisplayTabbed;
use SleepingOwl\Admin\Display\DisplayTable;
use SleepingOwl\Admin\Display\DisplayTree;

/**
* @method DisplayDatatablesAsync datatables()
Expand Down
2 changes: 1 addition & 1 deletion src/Contracts/Display/Extension/ColumnFilterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace SleepingOwl\Admin\Contracts\Display\Extension;

use Illuminate\Database\Eloquent\Builder;
use SleepingOwl\Admin\Contracts\Initializable;
use SleepingOwl\Admin\Contracts\Display\ColumnInterface;
use SleepingOwl\Admin\Contracts\Initializable;

interface ColumnFilterInterface extends Initializable
{
Expand Down
2 changes: 1 addition & 1 deletion src/Contracts/Form/FormButtonsInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Contracts\Support\Renderable;
use SleepingOwl\Admin\Contracts\WithModelInterface;
use SleepingOwl\Admin\Contracts\ModelConfigurationInterface;
use SleepingOwl\Admin\Contracts\WithModelInterface;

interface FormButtonsInterface extends Renderable, Arrayable, WithModelInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Contracts/Form/FormElementFactoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace SleepingOwl\Admin\Contracts\Form;

use Illuminate\Database\Eloquent\Model;
use SleepingOwl\Admin\Form\Columns;
use SleepingOwl\Admin\Form\Element;
use Illuminate\Database\Eloquent\Model;
use SleepingOwl\Admin\Form\Related\Forms;

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Contracts/Form/FormElementInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace SleepingOwl\Admin\Contracts\Form;

use Illuminate\Http\Request;
use SleepingOwl\Admin\Contracts\Validable;
use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Contracts\Support\Renderable;
use Illuminate\Http\Request;
use SleepingOwl\Admin\Contracts\Initializable;
use SleepingOwl\Admin\Contracts\Validable;
use SleepingOwl\Admin\Contracts\WithModelInterface;

interface FormElementInterface extends Renderable, Arrayable, Initializable, WithModelInterface, Validable
Expand Down
2 changes: 1 addition & 1 deletion src/Contracts/Form/FormInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

use Illuminate\Http\Request;
use Illuminate\Validation\ValidationException;
use SleepingOwl\Admin\Exceptions\Form\FormException;
use SleepingOwl\Admin\Contracts\ModelConfigurationInterface;
use SleepingOwl\Admin\Exceptions\Form\FormException;

interface FormInterface extends FormElementInterface, ElementsInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Contracts/ModelConfigurationInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace SleepingOwl\Admin\Contracts;

use Illuminate\Support\Collection;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Collection;
use SleepingOwl\Admin\Contracts\Display\DisplayInterface;
use SleepingOwl\Admin\Contracts\Repositories\RepositoryInterface;

Expand Down
4 changes: 2 additions & 2 deletions src/Contracts/Widgets/WidgetInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace SleepingOwl\Admin\Contracts\Widgets;

use Illuminate\Contracts\View\View;
use Illuminate\Contracts\Support\Htmlable;
use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Contracts\Support\Htmlable;
use Illuminate\Contracts\View\View;

interface WidgetInterface extends Arrayable, Htmlable
{
Expand Down
6 changes: 3 additions & 3 deletions src/Display/Column/Control.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

namespace SleepingOwl\Admin\Display\Column;

use Illuminate\Support\Collection;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Collection;
use SleepingOwl\Admin\Contracts\Display\ControlButtonInterface;
use SleepingOwl\Admin\Display\ControlButton;
use SleepingOwl\Admin\Display\ControlLink;
use SleepingOwl\Admin\Display\TableColumn;
use SleepingOwl\Admin\Display\ControlButton;
use SleepingOwl\Admin\Contracts\Display\ControlButtonInterface;

class Control extends TableColumn
{
Expand Down
2 changes: 1 addition & 1 deletion src/Display/Column/Editable/Checkbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace SleepingOwl\Admin\Display\Column\Editable;

use Illuminate\Http\Request;
use SleepingOwl\Admin\Form\FormDefault;
use SleepingOwl\Admin\Contracts\Display\ColumnEditableInterface;
use SleepingOwl\Admin\Form\FormDefault;

class Checkbox extends EditableColumn implements ColumnEditableInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Display/Column/Editable/DateTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

use Carbon\Carbon;
use Illuminate\Http\Request;
use SleepingOwl\Admin\Contracts\Display\ColumnEditableInterface;
use SleepingOwl\Admin\Form\FormDefault;
use SleepingOwl\Admin\Traits\DateFormat;
use SleepingOwl\Admin\Traits\DatePicker;
use SleepingOwl\Admin\Contracts\Display\ColumnEditableInterface;

class DateTime extends EditableColumn implements ColumnEditableInterface
{
Expand Down
6 changes: 3 additions & 3 deletions src/Display/Column/Editable/Select.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

namespace SleepingOwl\Admin\Display\Column\Editable;

use Illuminate\Support\Arr;
use Illuminate\Http\Request;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Http\Request;
use Illuminate\Support\Arr;
use SleepingOwl\Admin\Contracts\Display\ColumnEditableInterface;
use SleepingOwl\Admin\Form\FormDefault;
use SleepingOwl\Admin\Traits\SelectOptionsFromModel;
use SleepingOwl\Admin\Contracts\Display\ColumnEditableInterface;

class Select extends EditableColumn implements ColumnEditableInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Display/Column/Editable/Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace SleepingOwl\Admin\Display\Column\Editable;

use Illuminate\Http\Request;
use SleepingOwl\Admin\Form\FormDefault;
use SleepingOwl\Admin\Contracts\Display\ColumnEditableInterface;
use SleepingOwl\Admin\Form\FormDefault;

class Text extends EditableColumn implements ColumnEditableInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Display/Column/Editable/Textarea.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace SleepingOwl\Admin\Display\Column\Editable;

use Illuminate\Http\Request;
use SleepingOwl\Admin\Form\FormDefault;
use SleepingOwl\Admin\Contracts\Display\ColumnEditableInterface;
use SleepingOwl\Admin\Form\FormDefault;

class Textarea extends EditableColumn implements ColumnEditableInterface
{
Expand Down
8 changes: 4 additions & 4 deletions src/Display/Column/Filter/BaseColumnFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
namespace SleepingOwl\Admin\Display\Column\Filter;

use Closure;
use SleepingOwl\Admin\Traits\Assets;
use Illuminate\Database\Eloquent\Builder;
use KodiComponents\Support\HtmlAttributes;
use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Contracts\Support\Renderable;
use SleepingOwl\Admin\Traits\SqlQueryOperators;
use Illuminate\Database\Eloquent\Builder;
use KodiComponents\Support\HtmlAttributes;
use SleepingOwl\Admin\Contracts\Display\ColumnInterface;
use SleepingOwl\Admin\Contracts\Display\ColumnMetaInterface;
use SleepingOwl\Admin\Contracts\Display\Extension\ColumnFilterInterface;
use SleepingOwl\Admin\Traits\Assets;
use SleepingOwl\Admin\Traits\SqlQueryOperators;

abstract class BaseColumnFilter implements Renderable, ColumnFilterInterface, Arrayable
{
Expand Down
2 changes: 1 addition & 1 deletion src/Display/Column/Filter/Date.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace SleepingOwl\Admin\Display\Column\Filter;

use Exception;
use Carbon\Carbon;
use Exception;
use Illuminate\Support\Facades\Log;
use SleepingOwl\Admin\Traits\DatePicker;

Expand Down
6 changes: 3 additions & 3 deletions src/Display/Column/NamedColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
namespace SleepingOwl\Admin\Display\Column;

use Closure;
use Illuminate\Support\Arr;
use Illuminate\Database\Eloquent\Model;
use SleepingOwl\Admin\Display\TableColumn;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Arr;
use Illuminate\Support\Collection as SuportCollection;
use SleepingOwl\Admin\Contracts\Display\NamedColumnInterface;
use SleepingOwl\Admin\Contracts\Display\OrderByClauseInterface;
use SleepingOwl\Admin\Display\TableColumn;

abstract class NamedColumn extends TableColumn implements NamedColumnInterface
{
Expand Down
8 changes: 4 additions & 4 deletions src/Display/Column/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

namespace SleepingOwl\Admin\Display\Column;

use Illuminate\Routing\Router;
use SleepingOwl\Admin\Section;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Routing\Router;
use SleepingOwl\Admin\Contracts\WithRoutesInterface;
use SleepingOwl\Admin\Display\TableColumn;
use SleepingOwl\Admin\Traits\OrderableModel;
use SleepingOwl\Admin\Model\ModelConfiguration;
use SleepingOwl\Admin\Contracts\WithRoutesInterface;
use SleepingOwl\Admin\Section;
use SleepingOwl\Admin\Traits\OrderableModel;

class Order extends TableColumn implements WithRoutesInterface
{
Expand Down
Loading

0 comments on commit b1ccf35

Please sign in to comment.