@@ -12,14 +12,14 @@ discard block |
||
12 | 12 | |
13 | 13 | protected function handleAppActionPath() |
14 | 14 | { |
15 | - if (! is_dir($directory = app_path('Actions'))) { |
|
15 | + if (!is_dir($directory = app_path('Actions'))) { |
|
16 | 16 | mkdir($directory, 0755, true); |
17 | 17 | } |
18 | 18 | |
19 | 19 | $filesystem = new Filesystem; |
20 | 20 | |
21 | 21 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/Actions')) |
22 | - ->each(function (SplFileInfo $file) use ($filesystem) { |
|
22 | + ->each(function(SplFileInfo $file) use ($filesystem) { |
|
23 | 23 | $filesystem->copy( |
24 | 24 | $file->getPathname(), |
25 | 25 | app_path('Actions/'.Str::replaceLast('.stub', '.php', $file->getFilename())) |
@@ -31,14 +31,14 @@ discard block |
||
31 | 31 | |
32 | 32 | protected function handleAppContractsPath() |
33 | 33 | { |
34 | - if (! is_dir($directory = app_path('Contracts'))) { |
|
34 | + if (!is_dir($directory = app_path('Contracts'))) { |
|
35 | 35 | mkdir($directory, 0755, true); |
36 | 36 | } |
37 | 37 | |
38 | 38 | $filesystem = new Filesystem; |
39 | 39 | |
40 | 40 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/Contracts')) |
41 | - ->each(function (SplFileInfo $file) use ($filesystem) { |
|
41 | + ->each(function(SplFileInfo $file) use ($filesystem) { |
|
42 | 42 | $filesystem->copy( |
43 | 43 | $file->getPathname(), |
44 | 44 | app_path('Contracts/'.Str::replaceLast('.stub', '.php', $file->getFilename())) |
@@ -50,14 +50,14 @@ discard block |
||
50 | 50 | |
51 | 51 | protected function handleAppEnumsPath() |
52 | 52 | { |
53 | - if (! is_dir($directory = app_path('Enums'))) { |
|
53 | + if (!is_dir($directory = app_path('Enums'))) { |
|
54 | 54 | mkdir($directory, 0755, true); |
55 | 55 | } |
56 | 56 | |
57 | 57 | $filesystem = new Filesystem; |
58 | 58 | |
59 | 59 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/Enums')) |
60 | - ->each(function (SplFileInfo $file) use ($filesystem) { |
|
60 | + ->each(function(SplFileInfo $file) use ($filesystem) { |
|
61 | 61 | $filesystem->copy( |
62 | 62 | $file->getPathname(), |
63 | 63 | app_path('Enums/'.Str::replaceLast('.stub', '.php', $file->getFilename())) |
@@ -69,14 +69,14 @@ discard block |
||
69 | 69 | |
70 | 70 | protected function handleAppEventsPath() |
71 | 71 | { |
72 | - if (! is_dir($directory = app_path('Events'))) { |
|
72 | + if (!is_dir($directory = app_path('Events'))) { |
|
73 | 73 | mkdir($directory, 0755, true); |
74 | 74 | } |
75 | 75 | |
76 | 76 | $filesystem = new Filesystem; |
77 | 77 | |
78 | 78 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/Events')) |
79 | - ->each(function (SplFileInfo $file) use ($filesystem) { |
|
79 | + ->each(function(SplFileInfo $file) use ($filesystem) { |
|
80 | 80 | $filesystem->copy( |
81 | 81 | $file->getPathname(), |
82 | 82 | app_path('Events/'.Str::replaceLast('.stub', '.php', $file->getFilename())) |
@@ -88,14 +88,14 @@ discard block |
||
88 | 88 | |
89 | 89 | protected function handleAppExceptionsPath() |
90 | 90 | { |
91 | - if (! is_dir($directory = app_path('Exceptions'))) { |
|
91 | + if (!is_dir($directory = app_path('Exceptions'))) { |
|
92 | 92 | mkdir($directory, 0755, true); |
93 | 93 | } |
94 | 94 | |
95 | 95 | $filesystem = new Filesystem; |
96 | 96 | |
97 | 97 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/Exceptions')) |
98 | - ->each(function (SplFileInfo $file) use ($filesystem) { |
|
98 | + ->each(function(SplFileInfo $file) use ($filesystem) { |
|
99 | 99 | $filesystem->copy( |
100 | 100 | $file->getPathname(), |
101 | 101 | app_path('Exceptions/'.Str::replaceLast('.stub', '.php', $file->getFilename())) |
@@ -107,14 +107,14 @@ discard block |
||
107 | 107 | |
108 | 108 | protected function handleAppFacadesPath() |
109 | 109 | { |
110 | - if (! is_dir($directory = app_path('Facades'))) { |
|
110 | + if (!is_dir($directory = app_path('Facades'))) { |
|
111 | 111 | mkdir($directory, 0755, true); |
112 | 112 | } |
113 | 113 | |
114 | 114 | $filesystem = new Filesystem; |
115 | 115 | |
116 | 116 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/Facades')) |
117 | - ->each(function (SplFileInfo $file) use ($filesystem) { |
|
117 | + ->each(function(SplFileInfo $file) use ($filesystem) { |
|
118 | 118 | $filesystem->copy( |
119 | 119 | $file->getPathname(), |
120 | 120 | app_path('Facades/'.Str::replaceLast('.stub', '.php', $file->getFilename())) |
@@ -126,14 +126,14 @@ discard block |
||
126 | 126 | |
127 | 127 | protected function handleAppHttpPath() |
128 | 128 | { |
129 | - if (! is_dir($directory = app_path('Http'))) { |
|
129 | + if (!is_dir($directory = app_path('Http'))) { |
|
130 | 130 | mkdir($directory, 0755, true); |
131 | 131 | } |
132 | 132 | |
133 | 133 | $filesystem = new Filesystem; |
134 | 134 | |
135 | 135 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/Http')) |
136 | - ->each(function (SplFileInfo $file) use ($filesystem) { |
|
136 | + ->each(function(SplFileInfo $file) use ($filesystem) { |
|
137 | 137 | $filesystem->copy( |
138 | 138 | $file->getPathname(), |
139 | 139 | app_path('Http/'.Str::replaceLast('.stub', '.php', $file->getFilename())) |
@@ -145,14 +145,14 @@ discard block |
||
145 | 145 | |
146 | 146 | protected function handleAppHttpControllersPath() |
147 | 147 | { |
148 | - if (! is_dir($directory = app_path('Http/Controllers'))) { |
|
148 | + if (!is_dir($directory = app_path('Http/Controllers'))) { |
|
149 | 149 | mkdir($directory, 0755, true); |
150 | 150 | } |
151 | 151 | |
152 | 152 | $filesystem = new Filesystem; |
153 | 153 | |
154 | 154 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/Controllers')) |
155 | - ->each(function (SplFileInfo $file) use ($filesystem) { |
|
155 | + ->each(function(SplFileInfo $file) use ($filesystem) { |
|
156 | 156 | $filesystem->copy( |
157 | 157 | $file->getPathname(), |
158 | 158 | app_path('Http/Controllers/'.Str::replaceLast('.stub', '.php', $file->getFilename())) |
@@ -164,14 +164,14 @@ discard block |
||
164 | 164 | |
165 | 165 | protected function handleAppHttpControllersAuthPath() |
166 | 166 | { |
167 | - if (! is_dir($directory = app_path('Http/Controllers/Auth'))) { |
|
167 | + if (!is_dir($directory = app_path('Http/Controllers/Auth'))) { |
|
168 | 168 | mkdir($directory, 0755, true); |
169 | 169 | } |
170 | 170 | |
171 | 171 | $filesystem = new Filesystem; |
172 | 172 | |
173 | 173 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/AuthControllers')) |
174 | - ->each(function (SplFileInfo $file) use ($filesystem) { |
|
174 | + ->each(function(SplFileInfo $file) use ($filesystem) { |
|
175 | 175 | $filesystem->copy( |
176 | 176 | $file->getPathname(), |
177 | 177 | app_path('Http/Controllers/Auth/'.Str::replaceLast('.stub', '.php', $file->getFilename())) |
@@ -183,14 +183,14 @@ discard block |
||
183 | 183 | |
184 | 184 | protected function handleAppHttpMiddlewarePath() |
185 | 185 | { |
186 | - if (! is_dir($directory = app_path('Http/Middleware'))) { |
|
186 | + if (!is_dir($directory = app_path('Http/Middleware'))) { |
|
187 | 187 | mkdir($directory, 0755, true); |
188 | 188 | } |
189 | 189 | |
190 | 190 | $filesystem = new Filesystem; |
191 | 191 | |
192 | 192 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/Middleware')) |
193 | - ->each(function (SplFileInfo $file) use ($filesystem) { |
|
193 | + ->each(function(SplFileInfo $file) use ($filesystem) { |
|
194 | 194 | $filesystem->copy( |
195 | 195 | $file->getPathname(), |
196 | 196 | app_path('Http/Middleware/'.Str::replaceLast('.stub', '.php', $file->getFilename())) |
@@ -202,14 +202,14 @@ discard block |
||
202 | 202 | |
203 | 203 | protected function handleAppHttpRequestsPath() |
204 | 204 | { |
205 | - if (! is_dir($directory = app_path('Http/Requests'))) { |
|
205 | + if (!is_dir($directory = app_path('Http/Requests'))) { |
|
206 | 206 | mkdir($directory, 0755, true); |
207 | 207 | } |
208 | 208 | |
209 | 209 | $filesystem = new Filesystem; |
210 | 210 | |
211 | 211 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/Requests')) |
212 | - ->each(function (SplFileInfo $file) use ($filesystem) { |
|
212 | + ->each(function(SplFileInfo $file) use ($filesystem) { |
|
213 | 213 | $filesystem->copy( |
214 | 214 | $file->getPathname(), |
215 | 215 | app_path('Http/Requests/'.Str::replaceLast('.stub', '.php', $file->getFilename())) |
@@ -221,14 +221,14 @@ discard block |
||
221 | 221 | |
222 | 222 | protected function handleAppHttpRequestsAuthPath() |
223 | 223 | { |
224 | - if (! is_dir($directory = app_path('Http/Requests/Auth'))) { |
|
224 | + if (!is_dir($directory = app_path('Http/Requests/Auth'))) { |
|
225 | 225 | mkdir($directory, 0755, true); |
226 | 226 | } |
227 | 227 | |
228 | 228 | $filesystem = new Filesystem; |
229 | 229 | |
230 | 230 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/AuthRequests')) |
231 | - ->each(function (SplFileInfo $file) use ($filesystem) { |
|
231 | + ->each(function(SplFileInfo $file) use ($filesystem) { |
|
232 | 232 | $filesystem->copy( |
233 | 233 | $file->getPathname(), |
234 | 234 | app_path('Http/Requests/Auth/'.Str::replaceLast('.stub', '.php', $file->getFilename())) |
@@ -240,14 +240,14 @@ discard block |
||
240 | 240 | |
241 | 241 | protected function handleAppListenersPath() |
242 | 242 | { |
243 | - if (! is_dir($directory = app_path('Listeners'))) { |
|
243 | + if (!is_dir($directory = app_path('Listeners'))) { |
|
244 | 244 | mkdir($directory, 0755, true); |
245 | 245 | } |
246 | 246 | |
247 | 247 | $filesystem = new Filesystem; |
248 | 248 | |
249 | 249 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/Listeners')) |
250 | - ->each(function (SplFileInfo $file) use ($filesystem) { |
|
250 | + ->each(function(SplFileInfo $file) use ($filesystem) { |
|
251 | 251 | $filesystem->copy( |
252 | 252 | $file->getPathname(), |
253 | 253 | app_path('Listeners/'.Str::replaceLast('.stub', '.php', $file->getFilename())) |
@@ -259,14 +259,14 @@ discard block |
||
259 | 259 | |
260 | 260 | protected function handleAppModelsPath() |
261 | 261 | { |
262 | - if (! is_dir($directory = app_path('Models'))) { |
|
262 | + if (!is_dir($directory = app_path('Models'))) { |
|
263 | 263 | mkdir($directory, 0755, true); |
264 | 264 | } |
265 | 265 | |
266 | 266 | $filesystem = new Filesystem; |
267 | 267 | |
268 | 268 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/Models')) |
269 | - ->each(function (SplFileInfo $file) use ($filesystem) { |
|
269 | + ->each(function(SplFileInfo $file) use ($filesystem) { |
|
270 | 270 | $filesystem->copy( |
271 | 271 | $file->getPathname(), |
272 | 272 | app_path('Models/'.Str::replaceLast('.stub', '.php', $file->getFilename())) |
@@ -278,14 +278,14 @@ discard block |
||
278 | 278 | |
279 | 279 | protected function handleAppModelsScopesPath() |
280 | 280 | { |
281 | - if (! is_dir($directory = app_path('Models/Scopes'))) { |
|
281 | + if (!is_dir($directory = app_path('Models/Scopes'))) { |
|
282 | 282 | mkdir($directory, 0755, true); |
283 | 283 | } |
284 | 284 | |
285 | 285 | $filesystem = new Filesystem; |
286 | 286 | |
287 | 287 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/ModelsScopes')) |
288 | - ->each(function (SplFileInfo $file) use ($filesystem) { |
|
288 | + ->each(function(SplFileInfo $file) use ($filesystem) { |
|
289 | 289 | $filesystem->copy( |
290 | 290 | $file->getPathname(), |
291 | 291 | app_path('Models/Scopes/'.Str::replaceLast('.stub', '.php', $file->getFilename())) |
@@ -297,14 +297,14 @@ discard block |
||
297 | 297 | |
298 | 298 | protected function handleAppNotificationsPath() |
299 | 299 | { |
300 | - if (! is_dir($directory = app_path('Notifications'))) { |
|
300 | + if (!is_dir($directory = app_path('Notifications'))) { |
|
301 | 301 | mkdir($directory, 0755, true); |
302 | 302 | } |
303 | 303 | |
304 | 304 | $filesystem = new Filesystem; |
305 | 305 | |
306 | 306 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/Notifications')) |
307 | - ->each(function (SplFileInfo $file) use ($filesystem) { |
|
307 | + ->each(function(SplFileInfo $file) use ($filesystem) { |
|
308 | 308 | $filesystem->copy( |
309 | 309 | $file->getPathname(), |
310 | 310 | app_path('Notifications/'.Str::replaceLast('.stub', '.php', $file->getFilename())) |
@@ -316,14 +316,14 @@ discard block |
||
316 | 316 | |
317 | 317 | protected function handleAppProvidersPath() |
318 | 318 | { |
319 | - if (! is_dir($directory = app_path('Providers'))) { |
|
319 | + if (!is_dir($directory = app_path('Providers'))) { |
|
320 | 320 | mkdir($directory, 0755, true); |
321 | 321 | } |
322 | 322 | |
323 | 323 | $filesystem = new Filesystem; |
324 | 324 | |
325 | 325 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/Providers')) |
326 | - ->each(function (SplFileInfo $file) use ($filesystem) { |
|
326 | + ->each(function(SplFileInfo $file) use ($filesystem) { |
|
327 | 327 | $filesystem->copy( |
328 | 328 | $file->getPathname(), |
329 | 329 | app_path('Providers/'.Str::replaceLast('.stub', '.php', $file->getFilename())) |
@@ -335,14 +335,14 @@ discard block |
||
335 | 335 | |
336 | 336 | protected function handleAppRepositoriesPath() |
337 | 337 | { |
338 | - if (! is_dir($directory = app_path('Repositories'))) { |
|
338 | + if (!is_dir($directory = app_path('Repositories'))) { |
|
339 | 339 | mkdir($directory, 0755, true); |
340 | 340 | } |
341 | 341 | |
342 | 342 | $filesystem = new Filesystem; |
343 | 343 | |
344 | 344 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/Repositories')) |
345 | - ->each(function (SplFileInfo $file) use ($filesystem) { |
|
345 | + ->each(function(SplFileInfo $file) use ($filesystem) { |
|
346 | 346 | $filesystem->copy( |
347 | 347 | $file->getPathname(), |
348 | 348 | app_path('Repositories/'.Str::replaceLast('.stub', '.php', $file->getFilename())) |
@@ -354,14 +354,14 @@ discard block |
||
354 | 354 | |
355 | 355 | protected function handleAppRulesPath() |
356 | 356 | { |
357 | - if (! is_dir($directory = app_path('Rules'))) { |
|
357 | + if (!is_dir($directory = app_path('Rules'))) { |
|
358 | 358 | mkdir($directory, 0755, true); |
359 | 359 | } |
360 | 360 | |
361 | 361 | $filesystem = new Filesystem; |
362 | 362 | |
363 | 363 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/Rules')) |
364 | - ->each(function (SplFileInfo $file) use ($filesystem) { |
|
364 | + ->each(function(SplFileInfo $file) use ($filesystem) { |
|
365 | 365 | $filesystem->copy( |
366 | 366 | $file->getPathname(), |
367 | 367 | app_path('Rules/'.Str::replaceLast('.stub', '.php', $file->getFilename())) |
@@ -373,14 +373,14 @@ discard block |
||
373 | 373 | |
374 | 374 | protected function handleAppServicesPath() |
375 | 375 | { |
376 | - if (! is_dir($directory = app_path('Services'))) { |
|
376 | + if (!is_dir($directory = app_path('Services'))) { |
|
377 | 377 | mkdir($directory, 0755, true); |
378 | 378 | } |
379 | 379 | |
380 | 380 | $filesystem = new Filesystem; |
381 | 381 | |
382 | 382 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/Services')) |
383 | - ->each(function (SplFileInfo $file) use ($filesystem) { |
|
383 | + ->each(function(SplFileInfo $file) use ($filesystem) { |
|
384 | 384 | $filesystem->copy( |
385 | 385 | $file->getPathname(), |
386 | 386 | app_path('Services/'.Str::replaceLast('.stub', '.php', $file->getFilename())) |
@@ -392,14 +392,14 @@ discard block |
||
392 | 392 | |
393 | 393 | protected function handleAppServicesAuthPath() |
394 | 394 | { |
395 | - if (! is_dir($directory = app_path('Services/Auth'))) { |
|
395 | + if (!is_dir($directory = app_path('Services/Auth'))) { |
|
396 | 396 | mkdir($directory, 0755, true); |
397 | 397 | } |
398 | 398 | |
399 | 399 | $filesystem = new Filesystem; |
400 | 400 | |
401 | 401 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/AuthServices')) |
402 | - ->each(function (SplFileInfo $file) use ($filesystem) { |
|
402 | + ->each(function(SplFileInfo $file) use ($filesystem) { |
|
403 | 403 | $filesystem->copy( |
404 | 404 | $file->getPathname(), |
405 | 405 | app_path('Services/Auth/'.Str::replaceLast('.stub', '.php', $file->getFilename())) |
@@ -411,14 +411,14 @@ discard block |
||
411 | 411 | |
412 | 412 | protected function handleAppTraitsPath() |
413 | 413 | { |
414 | - if (! is_dir($directory = app_path('Traits'))) { |
|
414 | + if (!is_dir($directory = app_path('Traits'))) { |
|
415 | 415 | mkdir($directory, 0755, true); |
416 | 416 | } |
417 | 417 | |
418 | 418 | $filesystem = new Filesystem; |
419 | 419 | |
420 | 420 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/Traits')) |
421 | - ->each(function (SplFileInfo $file) use ($filesystem) { |
|
421 | + ->each(function(SplFileInfo $file) use ($filesystem) { |
|
422 | 422 | $filesystem->copy( |
423 | 423 | $file->getPathname(), |
424 | 424 | app_path('Traits/'.Str::replaceLast('.stub', '.php', $file->getFilename())) |
@@ -430,14 +430,14 @@ discard block |
||
430 | 430 | |
431 | 431 | protected function handleConfigPath() |
432 | 432 | { |
433 | - if (! is_dir($directory = base_path('config'))) { |
|
433 | + if (!is_dir($directory = base_path('config'))) { |
|
434 | 434 | mkdir($directory, 0755, true); |
435 | 435 | } |
436 | 436 | |
437 | 437 | $filesystem = new Filesystem; |
438 | 438 | |
439 | 439 | collect($filesystem->allFiles(__DIR__.'/stubs/init/config')) |
440 | - ->each(function (SplFileInfo $file) use ($filesystem) { |
|
440 | + ->each(function(SplFileInfo $file) use ($filesystem) { |
|
441 | 441 | $filesystem->copy( |
442 | 442 | $file->getPathname(), |
443 | 443 | base_path('config/'.Str::replaceLast('.stub', '.php', $file->getFilename())) |
@@ -449,18 +449,18 @@ discard block |
||
449 | 449 | |
450 | 450 | protected function handleDatabasePath() |
451 | 451 | { |
452 | - if (! is_dir($directory = base_path('database/factories'))) { |
|
452 | + if (!is_dir($directory = base_path('database/factories'))) { |
|
453 | 453 | mkdir($directory, 0755, true); |
454 | 454 | } |
455 | 455 | |
456 | - if (! is_dir($directory = base_path('database/migrations'))) { |
|
456 | + if (!is_dir($directory = base_path('database/migrations'))) { |
|
457 | 457 | mkdir($directory, 0755, true); |
458 | 458 | } |
459 | 459 | |
460 | 460 | $filesystem = new Filesystem; |
461 | 461 | |
462 | 462 | collect($filesystem->allFiles(__DIR__.'/stubs/init/database/factories')) |
463 | - ->each(function (SplFileInfo $file) use ($filesystem) { |
|
463 | + ->each(function(SplFileInfo $file) use ($filesystem) { |
|
464 | 464 | $filesystem->copy( |
465 | 465 | $file->getPathname(), |
466 | 466 | base_path('database/factories/'.Str::replaceLast('.stub', '.php', $file->getFilename())) |
@@ -470,7 +470,7 @@ discard block |
||
470 | 470 | $this->components->info('database/factories files scaffolding generated successfully.'); |
471 | 471 | |
472 | 472 | collect($filesystem->allFiles(__DIR__.'/stubs/init/database/migrations')) |
473 | - ->each(function (SplFileInfo $file) use ($filesystem) { |
|
473 | + ->each(function(SplFileInfo $file) use ($filesystem) { |
|
474 | 474 | $filesystem->copy( |
475 | 475 | $file->getPathname(), |
476 | 476 | base_path('database/migrations/'.Str::replaceLast('.stub', '.php', $file->getFilename())) |
@@ -482,14 +482,14 @@ discard block |
||
482 | 482 | |
483 | 483 | protected function handleLangPath() |
484 | 484 | { |
485 | - if (! is_dir($directory = base_path('lang/en'))) { |
|
485 | + if (!is_dir($directory = base_path('lang/en'))) { |
|
486 | 486 | mkdir($directory, 0755, true); |
487 | 487 | } |
488 | 488 | |
489 | 489 | $filesystem = new Filesystem; |
490 | 490 | |
491 | 491 | collect($filesystem->allFiles(__DIR__.'/stubs/init/lang/en')) |
492 | - ->each(function (SplFileInfo $file) use ($filesystem) { |
|
492 | + ->each(function(SplFileInfo $file) use ($filesystem) { |
|
493 | 493 | $filesystem->copy( |
494 | 494 | $file->getPathname(), |
495 | 495 | base_path('lang/en/'.Str::replaceLast('.stub', '.php', $file->getFilename())) |
@@ -502,14 +502,14 @@ discard block |
||
502 | 502 | protected function handleRoutesPath() |
503 | 503 | { |
504 | 504 | |
505 | - if (! is_dir($directory = base_path('routes/app'))) { |
|
505 | + if (!is_dir($directory = base_path('routes/app'))) { |
|
506 | 506 | mkdir($directory, 0755, true); |
507 | 507 | } |
508 | 508 | |
509 | 509 | $filesystem = new Filesystem; |
510 | 510 | |
511 | 511 | collect($filesystem->allFiles(__DIR__.'/stubs/init/routes/app')) |
512 | - ->each(function (SplFileInfo $file) use ($filesystem) { |
|
512 | + ->each(function(SplFileInfo $file) use ($filesystem) { |
|
513 | 513 | $filesystem->copy( |
514 | 514 | $file->getPathname(), |
515 | 515 | base_path('routes/app/'.Str::replaceLast('.stub', '.php', $file->getFilename())) |
@@ -535,14 +535,14 @@ discard block |
||
535 | 535 | |
536 | 536 | protected function handleTestsPath() |
537 | 537 | { |
538 | - if (! is_dir($directory = base_path('tests/Feature'))) { |
|
538 | + if (!is_dir($directory = base_path('tests/Feature'))) { |
|
539 | 539 | mkdir($directory, 0755, true); |
540 | 540 | } |
541 | 541 | |
542 | 542 | $filesystem = new Filesystem; |
543 | 543 | |
544 | 544 | collect($filesystem->allFiles(__DIR__.'/stubs/init/tests/Feature')) |
545 | - ->each(function (SplFileInfo $file) use ($filesystem) { |
|
545 | + ->each(function(SplFileInfo $file) use ($filesystem) { |
|
546 | 546 | $filesystem->copy( |
547 | 547 | $file->getPathname(), |
548 | 548 | base_path('tests/Feature/'.Str::replaceLast('.stub', '.php', $file->getFilename())) |
@@ -554,26 +554,26 @@ discard block |
||
554 | 554 | |
555 | 555 | protected function handleResourcesPath() |
556 | 556 | { |
557 | - if (! is_dir($directory = base_path('resources/views/layouts'))) { |
|
557 | + if (!is_dir($directory = base_path('resources/views/layouts'))) { |
|
558 | 558 | mkdir($directory, 0755, true); |
559 | 559 | } |
560 | 560 | |
561 | - if (! is_dir($directory = base_path('resources/views/passwords'))) { |
|
561 | + if (!is_dir($directory = base_path('resources/views/passwords'))) { |
|
562 | 562 | mkdir($directory, 0755, true); |
563 | 563 | } |
564 | 564 | |
565 | - if (! is_dir($directory = base_path('resources/views/socialite'))) { |
|
565 | + if (!is_dir($directory = base_path('resources/views/socialite'))) { |
|
566 | 566 | mkdir($directory, 0755, true); |
567 | 567 | } |
568 | 568 | |
569 | - if (! is_dir($directory = base_path('resources/views/twofactor'))) { |
|
569 | + if (!is_dir($directory = base_path('resources/views/twofactor'))) { |
|
570 | 570 | mkdir($directory, 0755, true); |
571 | 571 | } |
572 | 572 | |
573 | 573 | $filesystem = new Filesystem; |
574 | 574 | |
575 | 575 | collect($filesystem->allFiles(__DIR__.'/stubs/init/resources/views/layouts')) |
576 | - ->each(function (SplFileInfo $file) use ($filesystem) { |
|
576 | + ->each(function(SplFileInfo $file) use ($filesystem) { |
|
577 | 577 | $filesystem->copy( |
578 | 578 | $file->getPathname(), |
579 | 579 | base_path('resources/views/layouts/'.Str::replaceLast('.stub', '.php', $file->getFilename())) |
@@ -583,7 +583,7 @@ discard block |
||
583 | 583 | $this->components->info('resources/views/layouts files scaffolding generated successfully.'); |
584 | 584 | |
585 | 585 | collect($filesystem->allFiles(__DIR__.'/stubs/init/resources/views/passwords')) |
586 | - ->each(function (SplFileInfo $file) use ($filesystem) { |
|
586 | + ->each(function(SplFileInfo $file) use ($filesystem) { |
|
587 | 587 | $filesystem->copy( |
588 | 588 | $file->getPathname(), |
589 | 589 | base_path('resources/views/passwords/'.Str::replaceLast('.stub', '.php', $file->getFilename())) |
@@ -593,7 +593,7 @@ discard block |
||
593 | 593 | $this->components->info('resources/views/passwords files scaffolding generated successfully.'); |
594 | 594 | |
595 | 595 | collect($filesystem->allFiles(__DIR__.'/stubs/init/resources/views/socialite')) |
596 | - ->each(function (SplFileInfo $file) use ($filesystem) { |
|
596 | + ->each(function(SplFileInfo $file) use ($filesystem) { |
|
597 | 597 | $filesystem->copy( |
598 | 598 | $file->getPathname(), |
599 | 599 | base_path('resources/views/socialite/'.Str::replaceLast('.stub', '.php', $file->getFilename())) |
@@ -603,7 +603,7 @@ discard block |
||
603 | 603 | $this->components->info('resources/views/socialite files scaffolding generated successfully.'); |
604 | 604 | |
605 | 605 | collect($filesystem->allFiles(__DIR__.'/stubs/init/resources/views/twofactor')) |
606 | - ->each(function (SplFileInfo $file) use ($filesystem) { |
|
606 | + ->each(function(SplFileInfo $file) use ($filesystem) { |
|
607 | 607 | $filesystem->copy( |
608 | 608 | $file->getPathname(), |
609 | 609 | base_path('resources/views/twofactor/'.Str::replaceLast('.stub', '.php', $file->getFilename())) |