summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.scrutinizer.yml11
-rw-r--r--app/Core/Base.php7
-rw-r--r--app/EventBuilder/EventIteratorBuilder.php4
-rw-r--r--config.default.php8
4 files changed, 11 insertions, 19 deletions
diff --git a/.scrutinizer.yml b/.scrutinizer.yml
deleted file mode 100644
index 25ef09c4..00000000
--- a/.scrutinizer.yml
+++ /dev/null
@@ -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
diff --git a/app/Core/Base.php b/app/Core/Base.php
index 20a2d391..6931d93a 100644
--- a/app/Core/Base.php
+++ b/app/Core/Base.php
@@ -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);
}
}
diff --git a/app/EventBuilder/EventIteratorBuilder.php b/app/EventBuilder/EventIteratorBuilder.php
index afa146b6..ba821753 100644
--- a/app/EventBuilder/EventIteratorBuilder.php
+++ b/app/EventBuilder/EventIteratorBuilder.php
@@ -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)
diff --git a/config.default.php b/config.default.php
index a9fd7d99..d0e93a8e 100644
--- a/config.default.php
+++ b/config.default.php
@@ -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');