Fix some phpdoc and remove useless code
This commit is contained in:
@@ -144,6 +144,7 @@ class Ldap extends Base
|
||||
* Get LDAP username pattern
|
||||
*
|
||||
* @access public
|
||||
* @param string $username
|
||||
* @return string
|
||||
*/
|
||||
public function getLdapUserPattern($username)
|
||||
|
||||
@@ -17,10 +17,12 @@ use Pimple\Container;
|
||||
* @property \Core\Request $request
|
||||
* @property \Core\Session $session
|
||||
* @property \Core\Template $template
|
||||
* @property \Core\MemoryCache $memoryCache
|
||||
* @property \Core\OAuth2 $oauth
|
||||
* @property \Core\Router $router
|
||||
* @property \Core\Lexer $lexer
|
||||
* @property \Core\ObjectStorage\ObjectStorageInterface $objectStorage
|
||||
* @property \Core\Cache\Cache $memoryCache
|
||||
* @property \Core\Plugin\Hook $hook
|
||||
* @property \Integration\BitbucketWebhook $bitbucketWebhook
|
||||
* @property \Integration\GithubWebhook $githubWebhook
|
||||
* @property \Integration\GitlabWebhook $gitlabWebhook
|
||||
@@ -74,6 +76,9 @@ use Pimple\Container;
|
||||
* @property \Model\User $user
|
||||
* @property \Model\UserSession $userSession
|
||||
* @property \Model\Webhook $webhook
|
||||
* @property \Psr\Log\LoggerInterface $logger
|
||||
* @property \League\HTMLToMarkdown\HtmlConverter $htmlConverter
|
||||
* @property \PicoDb\Database $db
|
||||
*/
|
||||
abstract class Base
|
||||
{
|
||||
|
||||
@@ -85,7 +85,7 @@ class FileStorage implements ObjectStorageInterface
|
||||
* Move local file to object storage
|
||||
*
|
||||
* @access public
|
||||
* @param string $filename
|
||||
* @param string $src_filename
|
||||
* @param string $key
|
||||
* @return boolean
|
||||
*/
|
||||
|
||||
@@ -45,6 +45,7 @@ class Loader extends \Core\Base
|
||||
* Load plugin
|
||||
*
|
||||
* @access public
|
||||
* @param string $plugin
|
||||
*/
|
||||
public function load($plugin)
|
||||
{
|
||||
|
||||
@@ -206,7 +206,6 @@ class Router extends Base
|
||||
* @access public
|
||||
* @param string $uri
|
||||
* @param string $query_string
|
||||
* @return boolean
|
||||
*/
|
||||
public function dispatch($uri, $query_string = '')
|
||||
{
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Core;
|
||||
|
||||
use LogicException;
|
||||
|
||||
/**
|
||||
* Template class
|
||||
*
|
||||
|
||||
@@ -12,26 +12,6 @@ use Pimple\Container;
|
||||
*/
|
||||
abstract class Base extends \Core\Base
|
||||
{
|
||||
/**
|
||||
* Database instance
|
||||
*
|
||||
* @access protected
|
||||
* @var \PicoDb\Database
|
||||
*/
|
||||
protected $db;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @access public
|
||||
* @param \Pimple\Container $container
|
||||
*/
|
||||
public function __construct(Container $container)
|
||||
{
|
||||
$this->container = $container;
|
||||
$this->db = $this->container['db'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Save a record in the database
|
||||
*
|
||||
|
||||
@@ -55,7 +55,7 @@ class Subtask extends Base
|
||||
* Get available status
|
||||
*
|
||||
* @access public
|
||||
* @return array
|
||||
* @return string[]
|
||||
*/
|
||||
public function getStatusList()
|
||||
{
|
||||
|
||||
@@ -103,11 +103,11 @@ class ClassProvider implements ServiceProviderInterface
|
||||
return new OAuth2($c);
|
||||
});
|
||||
|
||||
$container['htmlConverter'] = function($c) {
|
||||
$container['htmlConverter'] = function() {
|
||||
return new HtmlConverter(array('strip_tags' => true));
|
||||
};
|
||||
|
||||
$container['objectStorage'] = function($c) {
|
||||
$container['objectStorage'] = function() {
|
||||
return new FileStorage(FILES_DIR);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user