Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
adampiotrowski committed Mar 20, 2014
1 parent 68ea0dd commit e28c463
Show file tree
Hide file tree
Showing 23 changed files with 2,960 additions and 19 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -229,4 +229,3 @@ pip-log.txt

/vendor
doc
*ServiceContainer.php
3 changes: 0 additions & 3 deletions application/Gekosale/Core/Console.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ public function __construct()
parent::__construct('Welcome to Gekosale CLI Tool', '1.0');

$this->addCommands([
new Console\Command\Assets\Combine(),
new Console\Command\Documentation\Generate(),
new Console\Command\Routes\Dump(),
new Console\Command\Migration\Add(),
Expand All @@ -44,8 +43,6 @@ public function __construct()
*/
public function getContainer()
{
$request = Request::createFromGlobals();

return new ServiceContainer();
}
}
4 changes: 1 addition & 3 deletions application/Gekosale/Core/Form/Condition.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,9 @@ public function renderJs()
/**
* Evaluates condition value
*
* @param $value
*
* @return bool
*/
public function evaluate($value)
public function evaluate()
{
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion application/Gekosale/Core/Form/Dependency.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function __construct($type, $field, $condition, $argument = null)

public function evaluate($value = '', $i = null)
{
if (!is_subclass_of($this->_condition, 'FormEngine\Condition')) {
if (!$this->_condition instanceof Condition) {
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function __construct($attributes)
);
}

protected function prepareAttributesJs()
public function prepareAttributesJs()
{
$attributes = Array(
$this->formatAttributeJs('name', 'sName'),
Expand Down
Loading

0 comments on commit e28c463

Please sign in to comment.