Conditions | 2 |
Paths | 2 |
Total Lines | 72 |
Code Lines | 54 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.
For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.
Commonly applied refactorings include:
If many parameters/temporary variables are present:
1 | <?php |
||
37 | public function index($request) |
||
38 | { |
||
39 | if(class_exists(\Sunnysideup\WebpackRequirementsBackend\View\RequirementsBackendForWebpack::class, true)) { |
||
40 | Config::modify()->set( |
||
41 | \Sunnysideup\WebpackRequirementsBackend\View\RequirementsBackendForWebpack::class, |
||
42 | 'enabled', |
||
43 | false |
||
44 | ); |
||
45 | } |
||
46 | TableFilterSortAPI::include_requirements( |
||
47 | $tableSelector = '.tfs-holder', |
||
48 | $blockArray = [], |
||
49 | $jqueryLocation = 'https://code.jquery.com/jquery-3.4.1.min.js', |
||
50 | $includeInPage = true, |
||
51 | $jsSettings = [ |
||
52 | 'rowRawData' => $this->Data(), |
||
53 | 'scrollToTopAtPageOpening' => true, |
||
54 | 'sizeOfFixedHeader' => 0, |
||
55 | 'maximumNumberOfFilterOptions' => 20, |
||
56 | 'filtersParentPageID' => '', |
||
57 | 'favouritesParentPageID' => '', |
||
58 | 'visibleRowCount' => 20, |
||
59 | 'startWithOpenFilter' => true, |
||
60 | 'dataDictionary' => [ |
||
61 | 'Type' => [ |
||
62 | 'Label' => 'Type', |
||
63 | 'CanFilter' => true, |
||
64 | ], |
||
65 | 'Vendor' => [ |
||
66 | 'Label' => 'Vendor', |
||
67 | 'CanFilter' => true, |
||
68 | ], |
||
69 | 'Package' => [ |
||
70 | 'Label' => 'Package', |
||
71 | 'CanFilter' => true, |
||
72 | ], |
||
73 | 'ShorterClassName' => [ |
||
74 | 'Label' => 'Class', |
||
75 | 'CanFilter' => true, |
||
76 | ], |
||
77 | 'Property' => [ |
||
78 | 'Label' => 'Property', |
||
79 | 'CanFilter' => true, |
||
80 | ], |
||
81 | 'IsDefault' => [ |
||
82 | 'Label' => 'Is Default', |
||
83 | 'CanFilter' => true, |
||
84 | ], |
||
85 | 'HasDefault' => [ |
||
86 | 'Label' => 'Has Default', |
||
87 | 'CanFilter' => false, |
||
88 | ], |
||
89 | 'HasDefault' => [ |
||
90 | 'Label' => 'Has Default', |
||
91 | 'CanFilter' => false, |
||
92 | ], |
||
93 | 'HasValue' => [ |
||
94 | 'Label' => 'Has Value', |
||
95 | 'CanFilter' => true, |
||
96 | ], |
||
97 | 'Value' => [ |
||
98 | 'Label' => 'Value', |
||
99 | 'CanFilter' => false, |
||
100 | ], |
||
101 | 'Default' => [ |
||
102 | 'Label' => 'Default Value', |
||
103 | 'CanFilter' => false, |
||
104 | ], |
||
105 | ], |
||
106 | ] |
||
107 | ); |
||
108 | return $this->renderWith('Includes/CheckConfigsTable'); |
||
109 | } |
||
138 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths