File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ class InterfaxMessage
2020 const POLLING_INTERVAL_DEFAULT = 15 ;
2121 const POLLING_INTERVAL_MINIMUM = 10 ;
2222
23+ protected static $ DEFAULT_CHUNK_SIZE = 1048576 ;
24+
2325 public function file (string $ file )
2426 {
2527 $ this ->files = Arr::wrap ($ file );
@@ -94,7 +96,7 @@ public function makeFiles(): array
9496 [
9597 'name ' => $ this ->filename ,
9698 'mime_type ' => app ('files ' )->mimeType ($ this ->filename ),
97- 'chunk_size ' => config ('services.interfax.chunk_size ' , 1048576 ),
99+ 'chunk_size ' => config ('services.interfax.chunk_size ' , static :: $ DEFAULT_CHUNK_SIZE ),
98100 ],
99101 ],
100102 ];
@@ -111,7 +113,7 @@ public function sleep(): void
111113
112114 protected static function setChunkSize ($ file )
113115 {
114- $ chunk_size = config ('services.interfax.chunk_size ' , 1048576 );
116+ $ chunk_size = config ('services.interfax.chunk_size ' , static :: $ DEFAULT_CHUNK_SIZE );
115117
116118 if (is_string ($ file )) {
117119 return [
You can’t perform that action at this time.
0 commit comments