Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Update dependencies (core-library v3.0.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
webeweb committed Aug 7, 2018
1 parent dfddedf commit 7157f01
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
10 changes: 5 additions & 5 deletions API/QueryBuilderFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use JsonSerializable;
use WBW\Bundle\JQuery\QueryBuilderBundle\Data\AbstractQueryBuilderData;
use WBW\Library\Core\Exception\Argument\IllegalArgumentException;
use WBW\Library\Core\Utility\Argument\ArrayUtility;
use WBW\Library\Core\Helper\Argument\ArrayHelper;

/**
* jQuery QueryBuilder filter.
Expand Down Expand Up @@ -198,14 +198,14 @@ public function toArray() {

$output["id"] = $this->getId();

ArrayUtility::set($output, "field", $this->getField(), [null]);
ArrayHelper::set($output, "field", $this->getField(), [null]);

$output["label"] = $this->label;
$output["type"] = $this->getType();

ArrayUtility::set($output, "input", $this->getInput(), [null]);
ArrayUtility::set($output, "values", $this->values, [null]);
ArrayUtility::set($output, "multiple", $this->multiple, [null, false]);
ArrayHelper::set($output, "input", $this->getInput(), [null]);
ArrayHelper::set($output, "values", $this->values, [null]);
ArrayHelper::set($output, "multiple", $this->multiple, [null, false]);

if (null !== $this->validation) {
$output["validation"] = $this->validation->toArray();
Expand Down
16 changes: 8 additions & 8 deletions API/QueryBuilderValidation.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
namespace WBW\Bundle\JQuery\QueryBuilderBundle\API;

use JsonSerializable;
use WBW\Library\Core\Utility\Argument\ArrayUtility;
use WBW\Library\Core\Helper\Argument\ArrayHelper;

/**
* jQuery QueryBuilder validation.
Expand Down Expand Up @@ -237,13 +237,13 @@ public function toArray() {
// Initialize the output.
$output = [];

ArrayUtility::set($output, "format", $this->format, [null]);
ArrayUtility::set($output, "min", $this->min, [null]);
ArrayUtility::set($output, "max", $this->max, [null]);
ArrayUtility::set($output, "step", $this->step, [null]);
ArrayUtility::set($output, "messages", $this->messages, [null]);
ArrayUtility::set($output, "allow_empty_value", $this->allowEmptyValue, [null]);
ArrayUtility::set($output, "callback", $this->callback, [null]);
ArrayHelper::set($output, "format", $this->format, [null]);
ArrayHelper::set($output, "min", $this->min, [null]);
ArrayHelper::set($output, "max", $this->max, [null]);
ArrayHelper::set($output, "step", $this->step, [null]);
ArrayHelper::set($output, "messages", $this->messages, [null]);
ArrayHelper::set($output, "allow_empty_value", $this->allowEmptyValue, [null]);
ArrayHelper::set($output, "callback", $this->callback, [null]);

// Return the output.
return $output;
Expand Down
4 changes: 2 additions & 2 deletions Rule/QueryBuilderRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use WBW\Bundle\JQuery\QueryBuilderBundle\Data\AbstractQueryBuilderData;
use WBW\Bundle\JQuery\QueryBuilderBundle\Decorator\QueryBuilderDecoratorInterface;
use WBW\Library\Core\Exception\Argument\IllegalArgumentException;
use WBW\Library\Core\Utility\IntegerUtility;
use WBW\Library\Core\Helper\Argument\IntegerHelper;

/**
* jQuery QueryBuilder rule.
Expand Down Expand Up @@ -140,7 +140,7 @@ private function quoteMixed($value, $wrap = false) {
$output = null;
switch ($this->getType()) {
case self::TYPE_BOOLEAN:
$output = IntegerUtility::parseBoolean($value);
$output = IntegerHelper::parseBoolean($value);
break;
case self::TYPE_DATE:
case self::TYPE_DATETIME:
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"php": "^5.6|^7.0",
"symfony/framework-bundle": "^2.6|^3.0",
"twig/twig": "^1.0||^2.0",
"webeweb/core-library": "^2.0"
"webeweb/core-library": "^3.0"
},
"require-dev": {
"phpunit/phpunit": "5.7.*",
Expand Down

0 comments on commit 7157f01

Please sign in to comment.