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