Completed
Push — master ( 8c09a2...fb738c )
by Alexandr
07:39
created
src/Traits/GetFilesAndImages.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
3 3
 namespace Larrock\Core\Traits;
4 4
 
5 5
 use Cache;
6
-use Spatie\MediaLibrary\Models\Media;
7 6
 use Spatie\MediaLibrary\HasMedia\HasMediaTrait;
7
+use Spatie\MediaLibrary\Models\Media;
8 8
 
9 9
 trait GetFilesAndImages
10 10
 {
Please login to merge, or discard this patch.
src/Component.php 2 patches
Unused Use Statements   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,15 +2,15 @@
 block discarded – undo
2 2
 
3 3
 namespace Larrock\Core;
4 4
 
5
-use View;
6
-use JsValidator;
7
-use Illuminate\Support\Collection;
8 5
 use Illuminate\Database\Eloquent\Model;
9
-use Larrock\Core\Plugins\PluginSeoTrait;
10
-use Larrock\Core\Plugins\PluginAnonsTrait;
6
+use Illuminate\Support\Collection;
7
+use JsValidator;
11 8
 use Larrock\Core\Helpers\FormBuilder\FBElement;
12
-use Larrock\Core\Helpers\FormBuilder\FormInput;
13 9
 use Larrock\Core\Helpers\FormBuilder\FormCheckbox;
10
+use Larrock\Core\Helpers\FormBuilder\FormInput;
11
+use Larrock\Core\Plugins\PluginAnonsTrait;
12
+use Larrock\Core\Plugins\PluginSeoTrait;
13
+use View;
14 14
 
15 15
 class Component
16 16
 {
Please login to merge, or discard this patch.
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
         return new $this->model;
86 86
     }
87 87
 
88
-    /** @return string */
88
+    /** @return Model */
89 89
     public function getModelName()
90 90
     {
91 91
         return $this->model;
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
      * Метод объявления использования middleware для компонентов.
233 233
      * Вызывается из конструктора класса контроллера компонента через $this->middleware(Компонент::combineFrontMiddlewares());.
234 234
      * @param null $user_middlewares
235
-     * @return array
235
+     * @return string[]
236 236
      */
237 237
     public function combineFrontMiddlewares($user_middlewares = null)
238 238
     {
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
      * Метод объявления использования middleware для компонентов.
255 255
      * Вызывается из конструктора класса контроллера компонента через $this->middleware(Компонент::combineAdminMiddlewares());.
256 256
      * @param null $user_middlewares
257
-     * @return array
257
+     * @return string[]
258 258
      */
259 259
     public function combineAdminMiddlewares($user_middlewares = null)
260 260
     {
Please login to merge, or discard this patch.
src/Events/ComponentItemDestroyed.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace Larrock\Core\Events;
4 4
 
5
-use Larrock\Core\Component;
5
+use Illuminate\Database\Eloquent\Model;
6 6
 use Illuminate\Http\Request;
7 7
 use Illuminate\Queue\SerializesModels;
8
-use Illuminate\Database\Eloquent\Model;
8
+use Larrock\Core\Component;
9 9
 
10 10
 /**
11 11
  * Выбрасываемое событие на удаление материала из компонента
Please login to merge, or discard this patch.
src/Events/ComponentItemStored.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace Larrock\Core\Events;
4 4
 
5
-use Larrock\Core\Component;
5
+use Illuminate\Database\Eloquent\Model;
6 6
 use Illuminate\Http\Request;
7 7
 use Illuminate\Queue\SerializesModels;
8
-use Illuminate\Database\Eloquent\Model;
8
+use Larrock\Core\Component;
9 9
 
10 10
 /**
11 11
  * Выбрасываемое событие на создание материала из компонента
Please login to merge, or discard this patch.
src/Events/ComponentItemUpdated.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace Larrock\Core\Events;
4 4
 
5
-use Larrock\Core\Component;
5
+use Illuminate\Database\Eloquent\Model;
6 6
 use Illuminate\Http\Request;
7 7
 use Illuminate\Queue\SerializesModels;
8
-use Illuminate\Database\Eloquent\Model;
8
+use Larrock\Core\Component;
9 9
 
10 10
 /**
11 11
  * Выбрасываемое событие на изменение материала из компонента
Please login to merge, or discard this patch.
src/Helpers/FormBuilder/FormCategory.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@
 block discarded – undo
2 2
 
3 3
 namespace Larrock\Core\Helpers\FormBuilder;
4 4
 
5
-use View;
6
-use LarrockCategory;
7
-use Larrock\Core\Helpers\Tree;
8 5
 use Illuminate\Database\Eloquent\Model;
6
+use LarrockCategory;
9 7
 use Larrock\Core\Exceptions\LarrockFormBuilderRowException;
8
+use Larrock\Core\Helpers\Tree;
9
+use View;
10 10
 
11 11
 class FormCategory extends FBElement
12 12
 {
Please login to merge, or discard this patch.
src/Helpers/FormBuilder/FormTags.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace Larrock\Core\Helpers\FormBuilder;
4 4
 
5
-use View;
6
-use Larrock\Core\Models\Link;
7 5
 use Illuminate\Database\Eloquent\Model;
6
+use Larrock\Core\Models\Link;
7
+use View;
8 8
 
9 9
 class FormTags extends FBElement
10 10
 {
Please login to merge, or discard this patch.
src/Helpers/Plugins/RenderPlugins.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Larrock\Core\Helpers\Plugins;
4 4
 
5
-use LarrockBlocks;
6 5
 use Illuminate\Database\Eloquent\Model;
6
+use LarrockBlocks;
7 7
 
8 8
 /**
9 9
  * Плагин замены шорткатов плагинов на их данные внутри полей компонентов
Please login to merge, or discard this patch.
src/Plugins/ComponentPlugin.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,12 +2,12 @@
 block discarded – undo
2 2
 
3 3
 namespace Larrock\Core\Plugins;
4 4
 
5
-use LarrockFeed;
6 5
 use LarrockAdminSeo;
7
-use Larrock\Core\Models\Seo;
8
-use Larrock\Core\Models\Link;
6
+use LarrockFeed;
9 7
 use Larrock\ComponentFeed\Models\Feed;
10 8
 use Larrock\Core\Helpers\MessageLarrock;
9
+use Larrock\Core\Models\Link;
10
+use Larrock\Core\Models\Seo;
11 11
 
12 12
 /**
13 13
  * Аттач/детач данных плагинов и связанных полей
Please login to merge, or discard this patch.