@@ -178,7 +178,7 @@ |
||
178 | 178 | |
179 | 179 | |
180 | 180 | /** |
181 | - * @return string |
|
181 | + * @return integer |
|
182 | 182 | */ |
183 | 183 | public function getSavedAtAsTimestamp() |
184 | 184 | { |
@@ -163,7 +163,7 @@ |
||
163 | 163 | |
164 | 164 | |
165 | 165 | /** |
166 | - * @return string |
|
166 | + * @return integer |
|
167 | 167 | */ |
168 | 168 | public function getSavedAtAsTimestamp() |
169 | 169 | { |
@@ -130,7 +130,7 @@ |
||
130 | 130 | |
131 | 131 | |
132 | 132 | /** |
133 | - * @return string |
|
133 | + * @return integer |
|
134 | 134 | */ |
135 | 135 | public function getSavedAtAsTimestamp() |
136 | 136 | { |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | |
181 | 181 | |
182 | 182 | /** |
183 | - * @return mixed |
|
183 | + * @return string |
|
184 | 184 | */ |
185 | 185 | protected function generateId() |
186 | 186 | { |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | /** |
207 | 207 | * @param FileInfo $info |
208 | 208 | * |
209 | - * @return null|string |
|
209 | + * @return string |
|
210 | 210 | */ |
211 | 211 | protected function getFilenameFromFileInfo(FileInfo $info) |
212 | 212 | { |
@@ -24,13 +24,13 @@ |
||
24 | 24 | */ |
25 | 25 | protected function registerContainerBindings(Container $container) |
26 | 26 | { |
27 | - $container->singleton(FileFactoryContract::class, function () { |
|
27 | + $container->singleton(FileFactoryContract::class, function() { |
|
28 | 28 | return new FileFactory(File::class); |
29 | 29 | }); |
30 | 30 | |
31 | 31 | $entityManager = $container->make(EntityManagerInterface::class); |
32 | 32 | |
33 | - $container->singleton(FileStorageContract::class, function () use ($entityManager) { |
|
33 | + $container->singleton(FileStorageContract::class, function() use ($entityManager) { |
|
34 | 34 | return new FileStorage($entityManager); |
35 | 35 | }); |
36 | 36 | } |
@@ -24,13 +24,13 @@ |
||
24 | 24 | */ |
25 | 25 | protected function registerContainerBindings(Container $container) |
26 | 26 | { |
27 | - $container->singleton(FileFactoryContract::class, function () { |
|
27 | + $container->singleton(FileFactoryContract::class, function() { |
|
28 | 28 | return new FileFactory(File::class); |
29 | 29 | }); |
30 | 30 | |
31 | 31 | $documentManager = $container->make(DocumentManager::class); |
32 | 32 | |
33 | - $container->singleton(FileStorageContract::class, function () use ($documentManager) { |
|
33 | + $container->singleton(FileStorageContract::class, function() use ($documentManager) { |
|
34 | 34 | return new FileStorage($documentManager); |
35 | 35 | }); |
36 | 36 | } |
@@ -37,7 +37,7 @@ |
||
37 | 37 | { |
38 | 38 | $container->alias(FileManager::class, FileManagerContract::class); |
39 | 39 | |
40 | - $container->singleton(FileManagerContract::class, function () use ($container, $config) { |
|
40 | + $container->singleton(FileManagerContract::class, function() use ($container, $config) { |
|
41 | 41 | return $this->createManager($container, $config); |
42 | 42 | }); |
43 | 43 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('files', function (Blueprint $table) { |
|
16 | + Schema::create('files', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('file_id')->unique(); |
19 | 19 | $table->string('name'); |
@@ -24,11 +24,11 @@ |
||
24 | 24 | */ |
25 | 25 | protected function registerContainerBindings(Container $container) |
26 | 26 | { |
27 | - $container->singleton(FileFactoryContract::class, function () { |
|
27 | + $container->singleton(FileFactoryContract::class, function() { |
|
28 | 28 | return new FileFactory(File::class); |
29 | 29 | }); |
30 | 30 | |
31 | - $container->singleton(FileStorageContract::class, function () { |
|
31 | + $container->singleton(FileStorageContract::class, function() { |
|
32 | 32 | return new FileStorage(); |
33 | 33 | }); |
34 | 34 | } |