Conditions | 12 |
Paths | 2048 |
Total Lines | 81 |
Code Lines | 57 |
Lines | 0 |
Ratio | 0 % |
Changes | 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 namespace crocodicstudio\crudbooster\commands; |
||
99 | private function checkRequirements() |
||
100 | { |
||
101 | $this->info('System Requirements Checking:'); |
||
102 | $system_failed = 0; |
||
103 | $laravel = app(); |
||
104 | |||
105 | if ($laravel::VERSION >= 5.3) { |
||
106 | $this->info('Laravel Version (>= 5.3.*): [Good]'); |
||
107 | } else { |
||
108 | $this->info('Laravel Version (>= 5.3.*): [Bad]'); |
||
109 | $system_failed++; |
||
110 | } |
||
111 | |||
112 | if (version_compare(phpversion(), '5.6.0', '>=')) { |
||
113 | $this->info('PHP Version (>= 5.6.*): [Good]'); |
||
114 | } else { |
||
115 | $this->info('PHP Version (>= 5.6.*): [Bad] Yours: '.phpversion()); |
||
116 | $system_failed++; |
||
117 | } |
||
118 | |||
119 | if (extension_loaded('mbstring')) { |
||
120 | $this->info('Mbstring extension: [Good]'); |
||
121 | } else { |
||
122 | $this->info('Mbstring extension: [Bad]'); |
||
123 | $system_failed++; |
||
124 | } |
||
125 | |||
126 | if (extension_loaded('openssl')) { |
||
127 | $this->info('OpenSSL extension: [Good]'); |
||
128 | } else { |
||
129 | $this->info('OpenSSL extension: [Bad]'); |
||
130 | $system_failed++; |
||
131 | } |
||
132 | |||
133 | if (extension_loaded('pdo')) { |
||
134 | $this->info('PDO extension: [Good]'); |
||
135 | } else { |
||
136 | $this->info('PDO extension: [Bad]'); |
||
137 | $system_failed++; |
||
138 | } |
||
139 | |||
140 | if (extension_loaded('tokenizer')) { |
||
141 | $this->info('Tokenizer extension: [Good]'); |
||
142 | } else { |
||
143 | $this->info('Tokenizer extension: [Bad]'); |
||
144 | $system_failed++; |
||
145 | } |
||
146 | |||
147 | if (extension_loaded('xml')) { |
||
148 | $this->info('XML extension: [Good]'); |
||
149 | } else { |
||
150 | $this->info('XML extension: [Bad]'); |
||
151 | $system_failed++; |
||
152 | } |
||
153 | |||
154 | if (extension_loaded('gd')) { |
||
155 | $this->info('GD extension: [Good]'); |
||
156 | } else { |
||
157 | $this->info('GD extension: [Bad]'); |
||
158 | $system_failed++; |
||
159 | } |
||
160 | |||
161 | if (extension_loaded('fileinfo')) { |
||
162 | $this->info('PHP Fileinfo extension: [Good]'); |
||
163 | } else { |
||
164 | $this->info('PHP Fileinfo extension: [Bad]'); |
||
165 | $system_failed++; |
||
166 | } |
||
167 | |||
168 | if (is_writable(base_path('public'))) { |
||
169 | $this->info('public dir is writable: [Good]'); |
||
170 | } else { |
||
171 | $this->info('public dir is writable: [Bad]'); |
||
172 | $system_failed++; |
||
173 | } |
||
174 | |||
175 | if ($system_failed != 0) { |
||
176 | $this->info('Sorry unfortunately your system is not meet with our requirements !'); |
||
177 | $this->footer(false); |
||
178 | } |
||
179 | $this->info('--'); |
||
180 | } |
||
211 |
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