Conditions | 1 |
Paths | 1 |
Total Lines | 78 |
Code Lines | 75 |
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 |
||
98 | public function down() |
||
99 | { |
||
100 | DB::table('skills')->whereIn('name', |
||
101 | [ |
||
102 | 'front_end_dev', |
||
103 | 'web_programming', |
||
104 | 'server_admin', |
||
105 | 'linux', |
||
106 | 'css', |
||
107 | 'javascript', |
||
108 | 'c_plus_plus', |
||
109 | 'sass', |
||
110 | 'python', |
||
111 | 'php', |
||
112 | 'git', |
||
113 | 'docker', |
||
114 | 'html', |
||
115 | 'sql', |
||
116 | 'open_source', |
||
117 | 'verbal_communication', |
||
118 | 'written_communication', |
||
119 | 'ability_distributed_team', |
||
120 | 'ability_learn', |
||
121 | 'integrity', |
||
122 | 'ability_collaborate', |
||
123 | 'initiative', |
||
124 | 'humility', |
||
125 | 'passion', |
||
126 | 'flexibility', |
||
127 | 'judgement', |
||
128 | 'adaptability', |
||
129 | 'accountability', |
||
130 | 'attention_detail', |
||
131 | 'complex_problem_solving', |
||
132 | 'courage', |
||
133 | 'originality', |
||
134 | 'critical_thinking', |
||
135 | 'curiosity', |
||
136 | 'dependability', |
||
137 | 'ability_follow_instructions', |
||
138 | 'persistence', |
||
139 | 'resilience', |
||
140 | 'service_orientation', |
||
141 | 'social_perceptiveness', |
||
142 | 'stress_management', |
||
143 | 'stress_tolerance', |
||
144 | 'time_management', |
||
145 | 'willingness_learn', |
||
146 | 'management_ability', |
||
147 | 'experience_design', |
||
148 | 'project_management', |
||
149 | 'stakeholder_relations', |
||
150 | 'dot_net', |
||
151 | 'geospacial_programming', |
||
152 | 'microsoft_dynamics', |
||
153 | 'facilitation', |
||
154 | 'systems_thinking', |
||
155 | 'web_architecture', |
||
156 | 'storytelling', |
||
157 | 'user_design', |
||
158 | 'empathy', |
||
159 | 'analysis', |
||
160 | 'data_science', |
||
161 | 'results_oriented', |
||
162 | 'relationship_management', |
||
163 | 'data_analysis', |
||
164 | 'data_mining', |
||
165 | 'r_programming', |
||
166 | 'database_design_and_management', |
||
167 | 'scrum', |
||
168 | 'team_foundation_server', |
||
169 | 'n_unit_testing', |
||
170 | 'asp_net_mvc', |
||
171 | 'ef6', |
||
172 | 'cloud_architecture_for_mobile_and_applications', |
||
173 | 'cloud_computing_platform_configuration', |
||
174 | 'strategy_development', |
||
175 | ])->delete(); |
||
176 | } |
||
178 |