Completed
Push — master ( 0d4856...a5727b )
by Alexandr
02:34
created
src/Traits/AdminMethodsIndex.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\Traits;
4 4
 
5
-use Larrock\Core\Component;
6 5
 use LarrockCategory;
6
+use Larrock\Core\Component;
7 7
 
8 8
 trait AdminMethodsIndex
9 9
 {
Please login to merge, or discard this patch.
src/Traits/AdminMethodsShow.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\Traits;
4 4
 
5
-use Larrock\Core\Component;
6
-use LarrockCategory;
7 5
 use Cache;
6
+use LarrockCategory;
7
+use Larrock\Core\Component;
8 8
 
9 9
 trait AdminMethodsShow
10 10
 {
Please login to merge, or discard this patch.
src/Traits/GetLink.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Larrock\Core\Traits;
3 3
 
4
-use Larrock\Core\Models\Link;
5 4
 use Cache;
5
+use Larrock\Core\Models\Link;
6 6
 
7 7
 trait GetLink{
8 8
 
Please login to merge, or discard this patch.
src/Traits/GetSeo.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Larrock\Core\Traits;
3 3
 
4
-use Larrock\Core\Models\Seo;
5 4
 use Cache;
5
+use Larrock\Core\Models\Seo;
6 6
 
7 7
 trait GetSeo{
8 8
 
Please login to merge, or discard this patch.
src/Component.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         return new $this->model;
75 75
     }
76 76
 
77
-    /** @return string */
77
+    /** @return Model */
78 78
     public function getModelName()
79 79
     {
80 80
         return $this->model;
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
      * Метод объявления использования middleware для компонентов.
185 185
      * Вызывается из конструктора класса контроллера компонента через $this->middleware(Компонент::combineFrontMiddlewares());
186 186
      * @param null $user_middlewares
187
-     * @return array
187
+     * @return string[]
188 188
      */
189 189
     public function combineFrontMiddlewares($user_middlewares = NULL)
190 190
     {
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
      * Метод объявления использования middleware для компонентов.
212 212
      * Вызывается из конструктора класса контроллера компонента через $this->middleware(Компонент::combineAdminMiddlewares());
213 213
      * @param null $user_middlewares
214
-     * @return array
214
+     * @return string[]
215 215
      */
216 216
     public function combineAdminMiddlewares($user_middlewares = NULL)
217 217
     {
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
      * Вспомогательный метод построения правил валидации из конфига полей компонента
303 303
      * @param array|object $config
304 304
      * @param string $action create|update
305
-     * @param null|string|integer   $id
305
+     * @param integer   $id
306 306
      * @return array
307 307
      */
308 308
     public static function _valid_construct($config, $action = 'create', $id = NULL)
Please login to merge, or discard this patch.
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,14 +2,14 @@
 block discarded – undo
2 2
 
3 3
 namespace Larrock\Core;
4 4
 
5
+use Illuminate\Database\Eloquent\Model;
5 6
 use Illuminate\Support\Collection;
7
+use JsValidator;
6 8
 use Larrock\Core\Helpers\FormBuilder\FBElement;
7
-use Larrock\Core\Plugins\PluginAnonsTrait;
8
-use Larrock\Core\Plugins\PluginSeoTrait;
9 9
 use Larrock\Core\Helpers\FormBuilder\FormCheckbox;
10 10
 use Larrock\Core\Helpers\FormBuilder\FormInput;
11
-use Illuminate\Database\Eloquent\Model;
12
-use JsValidator;
11
+use Larrock\Core\Plugins\PluginAnonsTrait;
12
+use Larrock\Core\Plugins\PluginSeoTrait;
13 13
 use View;
14 14
 
15 15
 class Component
Please login to merge, or discard this patch.
src/Plugins/ComponentPlugin.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@
 block discarded – undo
2 2
 
3 3
 namespace Larrock\Core\Plugins;
4 4
 
5
-use Larrock\ComponentFeed\Models\Feed;
6
-use Larrock\Core\Models\Link;
7 5
 use LarrockAdminSeo;
8 6
 use LarrockFeed;
7
+use Larrock\ComponentFeed\Models\Feed;
9 8
 use Larrock\Core\Helpers\MessageLarrock;
9
+use Larrock\Core\Models\Link;
10 10
 use Larrock\Core\Models\Seo;
11 11
 
12 12
 /**
Please login to merge, or discard this patch.
src/Plugins/PluginAnonsTrait.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\Plugins;
4 4
 
5
-use Larrock\Core\Helpers\FormBuilder\FormTextarea;
6 5
 use Larrock\Core\Helpers\FormBuilder\FormCheckbox;
6
+use Larrock\Core\Helpers\FormBuilder\FormTextarea;
7 7
 
8 8
 trait PluginAnonsTrait
9 9
 {
Please login to merge, or discard this patch.
src/Helpers/FormBuilder/FormCategory.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
3 3
 namespace Larrock\Core\Helpers\FormBuilder;
4 4
 
5 5
 use Illuminate\Database\Eloquent\Model;
6
+use LarrockCategory;
6 7
 use Larrock\Core\Exceptions\LarrockFormBuilderRowException;
7 8
 use Larrock\Core\Helpers\Tree;
8
-use LarrockCategory;
9 9
 use View;
10 10
 
11 11
 class FormCategory extends FBElement
Please login to merge, or discard this patch.
src/Helpers/FormBuilder/FormTags.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Larrock\Core\Helpers\FormBuilder;
4 4
 
5 5
 use Illuminate\Database\Eloquent\Model;
6
-use Larrock\Core\Exceptions\LarrockFormBuilderRowException;
7 6
 use Larrock\Core\Models\Link;
8 7
 use View;
9 8
 
Please login to merge, or discard this patch.