summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-07-23 15:15:11 -0400
committerFrederic Guillot <fred@kanboard.net>2016-07-23 15:15:11 -0400
commitd4606f69f6b0517f45f19d511a46004ae5dc7a5b (patch)
tree160a08e95ef994998ea733ebe6bb32cf41552cc1 /app
parentb179802a85b262529aaa46ed9cf072a570be25ce (diff)
Minor cleanup
Diffstat (limited to 'app')
-rw-r--r--app/Core/Base.php7
-rw-r--r--app/EventBuilder/EventIteratorBuilder.php4
2 files changed, 7 insertions, 4 deletions
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)