@@ -53,11 +53,11 @@ discard block |
||
53 | 53 | { |
54 | 54 | try { |
55 | 55 | $this->filesystem->make( |
56 | - $path = resource_path('views/' . $this->viewPath()), |
|
56 | + $path = resource_path('views/'.$this->viewPath()), |
|
57 | 57 | $this->filesystem->get($this->getStubPath()), |
58 | 58 | true |
59 | 59 | ); |
60 | - $this->info('File ' . $path . ' created'); |
|
60 | + $this->info('File '.$path.' created'); |
|
61 | 61 | } catch (\Exception $e) { |
62 | 62 | $this->error($e->getMessage()); |
63 | 63 | } |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | */ |
69 | 69 | protected function getStubPath() |
70 | 70 | { |
71 | - return __DIR__ . '/stubs/view.stub'; |
|
71 | + return __DIR__.'/stubs/view.stub'; |
|
72 | 72 | } |
73 | 73 | |
74 | 74 | /** |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | */ |
90 | 90 | protected function constructViewBladeName($name) |
91 | 91 | { |
92 | - return $this->dottedPathToSlashesPath($name) . '.blade.php'; |
|
92 | + return $this->dottedPathToSlashesPath($name).'.blade.php'; |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | /** |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | if ($this->exists($this->getPath($file))) { |
51 | 51 | throw new FileAlreadyExists; |
52 | 52 | } |
53 | - $this->put($file, $content,0,$recursive); |
|
53 | + $this->put($file, $content, 0, $recursive); |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | /** |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | { |
64 | 64 | $path = $this->getPath($file); |
65 | 65 | |
66 | - if (! file_exists($path)) { |
|
66 | + if (!file_exists($path)) { |
|
67 | 67 | throw new FileDoesNotExists; |
68 | 68 | } |
69 | 69 | |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | * @return bool |
93 | 93 | */ |
94 | 94 | public function createParentFolder($file) { |
95 | - if ( ! file_exists($folder = dirname($file))) return mkdir(dirname($file), 0775, true); |
|
95 | + if (!file_exists($folder = dirname($file))) return mkdir(dirname($file), 0775, true); |
|
96 | 96 | } |
97 | 97 | |
98 | 98 | /** |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | */ |
115 | 115 | protected function getPath($file) |
116 | 116 | { |
117 | - return $this->root . '/' . $file; |
|
117 | + return $this->root.'/'.$file; |
|
118 | 118 | } |
119 | 119 | |
120 | 120 | /** |
@@ -81,7 +81,9 @@ discard block |
||
81 | 81 | */ |
82 | 82 | public function put($file, $content, $flag = null, $recursive = false) |
83 | 83 | { |
84 | - if ($recursive) $this->createParentFolder($file); |
|
84 | + if ($recursive) { |
|
85 | + $this->createParentFolder($file); |
|
86 | + } |
|
85 | 87 | return file_put_contents($this->getPath($file), $content, $flag); |
86 | 88 | } |
87 | 89 | |
@@ -92,7 +94,9 @@ discard block |
||
92 | 94 | * @return bool |
93 | 95 | */ |
94 | 96 | public function createParentFolder($file) { |
95 | - if ( ! file_exists($folder = dirname($file))) return mkdir(dirname($file), 0775, true); |
|
97 | + if ( ! file_exists($folder = dirname($file))) { |
|
98 | + return mkdir(dirname($file), 0775, true); |
|
99 | + } |
|
96 | 100 | } |
97 | 101 | |
98 | 102 | /** |