Minor cleanup

This commit is contained in:
Frederic Guillot 2016-07-23 15:15:11 -04:00
parent b179802a85
commit d4606f69f6
No known key found for this signature in database
GPG Key ID: 92D77191BA7FBC99
4 changed files with 11 additions and 19 deletions

View File

@ -1,11 +0,0 @@
filter:
paths:
- app/*
excluded_paths:
- app/Schema/*
- app/Template/*
- app/Locale/*
- app/Library/*
- app/constants.php
- app/common.php
- app/check_setup.php

View File

@ -185,10 +185,10 @@ abstract class Base
}
/**
* Load automatically models
* Load automatically dependencies
*
* @access public
* @param string $name Model name
* @param string $name Class name
* @return mixed
*/
public function __get($name)
@ -206,7 +206,6 @@ abstract class Base
*/
public static function getInstance(Container $container)
{
$self = new static($container);
return $self;
return new static($container);
}
}

View File

@ -15,6 +15,10 @@ class EventIteratorBuilder implements Iterator {
private $builders = array();
/**
* Set builder
*
* @access public
* @param BaseEventBuilder $builder
* @return $this
*/
public function withBuilder(BaseEventBuilder $builder)

View File

@ -11,16 +11,16 @@ define('DEBUG', false);
define('LOG_DRIVER', '');
// Log filename if the log driver is "file"
define('LOG_FILE', __DIR__.DIRECTORY_SEPARATOR.'data'.DIRECTORY_SEPARATOR.'debug.log');
define('LOG_FILE', DATA_DIR.DIRECTORY_SEPARATOR.'debug.log');
// Plugins directory
define('PLUGINS_DIR', 'plugins');
define('PLUGINS_DIR', ROOT_DIR.DIRECTORY_SEPARATOR.'plugins');
// Folder for uploaded files
define('FILES_DIR', 'data'.DIRECTORY_SEPARATOR.'files');
define('FILES_DIR', DATA_DIR.DIRECTORY_SEPARATOR.'files');
// E-mail address for the "From" header (notifications)
define('MAIL_FROM', 'notifications@kanboard.local');
define('MAIL_FROM', 'replace-me@kanboard.local');
// Mail transport available: "smtp", "sendmail", "mail" (PHP mail function), "postmark", "mailgun", "sendgrid"
define('MAIL_TRANSPORT', 'mail');