@@ -299,7 +299,7 @@ public function size($size)
299299 */
300300 public function limit ($ limit )
301301 {
302- $ this ->config ['limit ' ] = self ::numbericToInt ($ limit ) ?: 1 ;
302+ $ this ->config ['limit ' ] = self ::numericToInt ($ limit ) ?: 1 ;
303303
304304 return $ this ;
305305 }
@@ -316,7 +316,7 @@ public function limit($limit)
316316 public function width ($ width , ?bool $ actual = true )
317317 {
318318 $ this ->config ['width ' ] = [
319- 'size ' => self ::numbericToInt ($ width ),
319+ 'size ' => self ::numericToInt ($ width ),
320320 'actual ' => $ actual
321321 ];
322322
@@ -335,7 +335,7 @@ public function width($width, ?bool $actual = true)
335335 public function height ($ height , ?bool $ actual = true )
336336 {
337337 $ this ->config ['height ' ] = [
338- 'size ' => self ::numbericToInt ($ height ),
338+ 'size ' => self ::numericToInt ($ height ),
339339 'actual ' => $ actual
340340 ];
341341
@@ -479,17 +479,17 @@ public function form()
479479 * Unlink File from Server
480480 *
481481 * @param string $pathToFile
482- * - [base path will be automatically added ]
482+ * - [full path to file is required ]
483483 *
484- * @param string|null $fileName
484+ * @param string|null $restrictedfileName
485485 * - [optional] file name. <avatar.png>
486486 * - File to check against before unlinking
487487 *
488488 * @return void
489489 */
490- static public function unlink (string $ pathToFile , $ fileName = null )
490+ static public function unlink (string $ pathToFile , $ restrictedfileName = null )
491491 {
492- Tame::unlink ($ pathToFile , $ fileName );
492+ Tame::unlink ($ pathToFile , $ restrictedfileName );
493493 }
494494
495495 /**
@@ -503,6 +503,24 @@ public function echoJson(int $response = 0, $message = null)
503503 {
504504 return Tame::echoJson ($ response , $ message );
505505 }
506+
507+ /**
508+ * Get Error Data
509+ * @return array
510+ */
511+ public function getError ()
512+ {
513+ return $ this ->error ;
514+ }
515+
516+ /**
517+ * Get Config Data
518+ * @return array
519+ */
520+ public function getConfig ()
521+ {
522+ return $ this ->config ;
523+ }
506524
507525 /**
508526 * Destructor for Removing Cloud Save Files
0 commit comments