Completed
Push — master ( 3ab0ac...56b9ab )
by Alexandr
05:02
created
src/AdminAjax.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,13 +2,13 @@
 block discarded – undo
2 2
 
3 3
 namespace Larrock\Core;
4 4
 
5
+use Cache;
6
+use DB;
5 7
 use EMT\EMTypograph;
6 8
 use File;
7 9
 use Illuminate\Http\Request;
8 10
 use Illuminate\Routing\Controller;
9
-use DB;
10 11
 use Image;
11
-use Cache;
12 12
 
13 13
 class AdminAjax extends Controller
14 14
 {
Please login to merge, or discard this patch.
src/Component.php 2 patches
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         return new $this->model;
74 74
     }
75 75
 
76
-    /** @return string */
76
+    /** @return Model */
77 77
     public function getModelName()
78 78
     {
79 79
         return $this->model;
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
      * Метод объявления использования middleware для компонентов.
184 184
      * Вызывается из конструктора класса контроллера компонента через $this->middleware(Компонент::combineFrontMiddlewares());
185 185
      * @param null $user_middlewares
186
-     * @return array
186
+     * @return string[]
187 187
      */
188 188
     public function combineFrontMiddlewares($user_middlewares = NULL)
189 189
     {
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
      * Метод объявления использования middleware для компонентов.
211 211
      * Вызывается из конструктора класса контроллера компонента через $this->middleware(Компонент::combineAdminMiddlewares());
212 212
      * @param null $user_middlewares
213
-     * @return array
213
+     * @return string[]
214 214
      */
215 215
     public function combineAdminMiddlewares($user_middlewares = NULL)
216 216
     {
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
 
227 227
     /**
228 228
      * Используется через SaveAdminPluginsData Middleware (Core)
229
-     * @param $request
229
+     * @param Request $request
230 230
      * @throws \Exception
231 231
      */
232 232
     public function savePluginsData($request)
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
      * Вспомогательный метод построения правил валидации из конфига полей компонента
416 416
      * @param array|object $config
417 417
      * @param string $action create|update
418
-     * @param null|string|integer   $id
418
+     * @param integer   $id
419 419
      * @return array
420 420
      */
421 421
     public static function _valid_construct($config, $action = 'create', $id = NULL)
Please login to merge, or discard this patch.
Unused Use Statements   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,18 +2,17 @@
 block discarded – undo
2 2
 
3 3
 namespace Larrock\Core;
4 4
 
5
+use Illuminate\Database\Eloquent\Model;
5 6
 use Illuminate\Http\Request;
6
-use Larrock\ComponentAdminSeo\Facades\LarrockSeo;
7
+use JsValidator;
7 8
 use LarrockFeed;
9
+use Larrock\ComponentAdminSeo\Facades\LarrockSeo;
8 10
 use Larrock\Core\Helpers\FormBuilder\FormCheckbox;
9 11
 use Larrock\Core\Helpers\FormBuilder\FormInput;
10 12
 use Larrock\Core\Helpers\FormBuilder\FormTextarea;
11
-use Illuminate\Database\Eloquent\Model;
12
-use JsValidator;
13 13
 use Larrock\Core\Helpers\MessageLarrock;
14 14
 use Larrock\Core\Models\Link;
15 15
 use View;
16
-use Config;
17 16
 
18 17
 class Component
19 18
 {
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
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace Larrock\Core\Helpers\FormBuilder;
4 4
 
5
+use LarrockCategory;
5 6
 use Larrock\Core\Exceptions\LarrockFormBuilderRowException;
6 7
 use Larrock\Core\Helpers\Tree;
7
-use LarrockCategory;
8 8
 use View;
9 9
 
10 10
 class FormCategory extends FBElement {
Please login to merge, or discard this patch.
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/AdminMethodsStore.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@
 block discarded – undo
5 5
 use Illuminate\Http\Request;
6 6
 use Larrock\Core\Component;
7 7
 use Redirect;
8
-use Validator;
9 8
 use Session;
9
+use Validator;
10 10
 
11 11
 trait AdminMethodsStore
12 12
 {
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.