diff --git a/phpstan.neon b/phpstan.neon index 2e0bbb2..0b4f42c 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -9,4 +9,3 @@ parameters: - tests/bootstrap.php treatPhpDocTypesAsCertain: false ignoreErrors: - - identifier: trait.unused diff --git a/src/Controller/AppController.php b/src/Controller/AppController.php deleted file mode 100644 index 584e73f..0000000 --- a/src/Controller/AppController.php +++ /dev/null @@ -1,9 +0,0 @@ -_table instanceof Table) { - return $this->_table; - } - $this->getTableConfigKey(); - $table = $tableName; - if (!isset($table)) { - $table = $this->defaultTable; - if (Configure::read($this->_tableConfigKey)) { - $table = Configure::read($this->_tableConfigKey); - } - } - $this->_table = TableRegistry::getTableLocator()->get($table); - - return $this->_table; - } - - /** - * @return string - */ - protected function getTableConfigKey() { - if (!$this->_tableConfigKey) { - $this->_tableConfigKey = $this->getPlugin() . '.' . $this->defaultTable . '.table'; - } - - return $this->_tableConfigKey; - } - - /** - * Set the users table - * - * @param \Cake\ORM\Table $table table - * @return void - */ - public function setTable(Table $table) { - $this->_table = $table; - } - -}