Conditions | 1 |
Paths | 1 |
Total Lines | 66 |
Code Lines | 64 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | 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 |
||
39 | public function handle() |
||
40 | { |
||
41 | Artisan::call('make:permission Category --all'); |
||
42 | $this->info('Category Module Permission Created ... ✅'); |
||
43 | Artisan::call('make:permission Client --all'); |
||
44 | $this->info('Client Module Permission Created ... ✅'); |
||
45 | Artisan::call('make:permission Counter --all'); |
||
46 | $this->info('Counter Module Permission Created ... ✅'); |
||
47 | Artisan::call('make:permission Coupon --all'); |
||
48 | $this->info('Coupon Module Permission Created ... ✅'); |
||
49 | Artisan::call('make:permission Download --all'); |
||
50 | $this->info('Download Module Permission Created ... ✅'); |
||
51 | Artisan::call('make:permission Event --all'); |
||
52 | $this->info('Event Module Permission Created ... ✅'); |
||
53 | Artisan::call('make:permission Facility --all'); |
||
54 | $this->info('Facility Module Permission Created ... ✅'); |
||
55 | Artisan::call('make:permission Faq --all'); |
||
56 | $this->info('Faq Module Permission Created ... ✅'); |
||
57 | Artisan::call('make:permission Feature --all'); |
||
58 | $this->info('Feature Module Permission Created ... ✅'); |
||
59 | Artisan::call('make:permission Gallery --all'); |
||
60 | $this->info('Gallery Module Permission Created ... ✅'); |
||
61 | Artisan::call('make:permission Guest --all'); |
||
62 | $this->info('Guest Module Permission Created ... ✅'); |
||
63 | Artisan::call('make:permission Notice --all'); |
||
64 | $this->info('Notice Module Permission Created ... ✅'); |
||
65 | Artisan::call('make:permission Package --all'); |
||
66 | $this->info('Package Module Permission Created ... ✅'); |
||
67 | Artisan::call('make:permission Page --all'); |
||
68 | $this->info('Page Module Permission Created ... ✅'); |
||
69 | Artisan::call('make:permission Pass --all'); |
||
70 | $this->info('Pass Module Permission Created ... ✅'); |
||
71 | Artisan::call('make:permission Popup --all'); |
||
72 | $this->info('Popup Module Permission Created ... ✅'); |
||
73 | Artisan::call('make:permission Project --all'); |
||
74 | $this->info('Project Module Permission Created ... ✅'); |
||
75 | Artisan::call('make:permission Service --all'); |
||
76 | $this->info('Service Module Permission Created ... ✅'); |
||
77 | Artisan::call('make:permission Team --all'); |
||
78 | $this->info('Team Module Permission Created ... ✅'); |
||
79 | Artisan::call('make:permission Testimonial --all'); |
||
80 | $this->info('Testimonial Module Permission Created ... ✅'); |
||
81 | Artisan::call('make:permission Ticket --all'); |
||
82 | $this->info('Ticket Module Permission Created ... ✅'); |
||
83 | Artisan::call('make:permission Payment --all'); |
||
84 | $this->info('Payment Module Permission Created ... ✅'); |
||
85 | Artisan::call('make:permission Post --all'); |
||
86 | $this->info('Post Module Permission Created ... ✅'); |
||
87 | Artisan::call('make:permission Application --all'); |
||
88 | $this->info('Application Module Permission Created ... ✅'); |
||
89 | Artisan::call('make:permission Career --all'); |
||
90 | $this->info('Career Module Permission Created ... ✅'); |
||
91 | Artisan::call('make:permission Attribute --all'); |
||
92 | $this->info('Attribute Module Permission Created ... ✅'); |
||
93 | Artisan::call('make:permission Product --all'); |
||
94 | $this->info('Product Module Permission Created ... ✅'); |
||
95 | Artisan::call('make:permission Process --all'); |
||
96 | $this->info('Process Module Permission Created ... ✅'); |
||
97 | Artisan::call('make:permission Software --all'); |
||
98 | $this->info('Software Module Permission Created ... ✅'); |
||
99 | Artisan::call('make:permission Slider --all'); |
||
100 | $this->info('Slider Module Permission Created ... ✅'); |
||
101 | Artisan::call('make:permission About --all'); |
||
102 | $this->info('About Module Permission Created ... ✅'); |
||
103 | Artisan::call('make:permission History --all'); |
||
104 | $this->info('History Module Permission Created ... ✅'); |
||
105 | } |
||
107 |