Fixes type on accepts variable. Ref #63.

This commit is contained in:
Mateus Machado Luna 2018-06-19 10:21:13 -03:00
parent e6cd753769
commit f83a0ee0c0
1 changed files with 5 additions and 5 deletions

View File

@ -89,7 +89,7 @@ abstract class Importer {
*/ */
protected $default_options = []; protected $default_options = [];
private $accpets = [ private $accepts = [
'file' => true, 'file' => true,
'url' => false, 'url' => false,
]; ];
@ -436,8 +436,8 @@ abstract class Importer {
* @return bool true for success, false if method does not exist * @return bool true for success, false if method does not exist
*/ */
public function add_import_method($method) { public function add_import_method($method) {
if ( array_key_exists($method, $this->accpets) ) { if ( array_key_exists($method, $this->accepts) ) {
$this->acceps[$method] = true; $this->accepts[$method] = true;
return true; return true;
} }
return false; return false;
@ -452,8 +452,8 @@ abstract class Importer {
* @return bool true for success, false if method does not exist * @return bool true for success, false if method does not exist
*/ */
public function remove_import_method($method) { public function remove_import_method($method) {
if ( array_key_exists($method, $this->accpets) ) { if ( array_key_exists($method, $this->accepts) ) {
$this->acceps[$method] = false; $this->accepts[$method] = false;
return true; return true;
} }
return false; return false;