Skip to content

Commit

Permalink
csfixed
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Oct 13, 2017
1 parent 7b06057 commit a35aa74
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .php_cs
Expand Up @@ -21,11 +21,11 @@ return PhpCsFixer\Config::create()
'commentType' => 'PHPDoc',
],
'binary_operator_spaces' => [
'align_double_arrow' => null,
'align_equals' => null,
'default' => null,
],
'concat_space' => ['spacing' => 'one'],
'array_syntax' => ['syntax' => 'short'],
'phpdoc_no_alias_tag' => ['replacements' => ['type' => 'var']],
'blank_line_before_return' => false,
'phpdoc_align' => false,
'phpdoc_scalar' => false,
Expand All @@ -41,6 +41,8 @@ return PhpCsFixer\Config::create()
'strict_comparison' => true,
'strict_param' => true,
'no_multiline_whitespace_before_semicolons' => true,
'semicolon_after_instruction' => false,
'yoda_style' => false,
))
->setFinder(
PhpCsFixer\Finder::create()
Expand Down
1 change: 1 addition & 0 deletions src/AbstractConnection.php
Expand Up @@ -215,6 +215,7 @@ public function callWithDisabledAuth(Closure $closure)

try {
$this->disableAuth();

return call_user_func($closure);
} finally {
$this->enableAuth();
Expand Down
1 change: 1 addition & 0 deletions src/AbstractQueryBuilder.php
Expand Up @@ -264,6 +264,7 @@ protected function buildInCondition($operator, $operands, $not = false)
} else {
$key = $column . '_in';
}

return [$key => $values];
}

Expand Down
2 changes: 1 addition & 1 deletion src/Collection.php
Expand Up @@ -406,7 +406,7 @@ public function collectData($attributes = null)
$data = [];
foreach ($this->models as $model) {
if ($this->dataCollector instanceof Closure) {
list ($key, $row) = call_user_func($this->dataCollector, $model, $this);
list($key, $row) = call_user_func($this->dataCollector, $model, $this);
} else {
$key = $model->getPrimaryKey();
$row = $model->getAttributes($attributes);
Expand Down
1 change: 0 additions & 1 deletion src/ManualResponse.php
Expand Up @@ -12,7 +12,6 @@

use hiqdev\hiart\AbstractRequest;
use hiqdev\hiart\AbstractResponse;
use hiqdev\hiart\ResponseErrorException;

/**
* For creating response manually.
Expand Down
1 change: 1 addition & 0 deletions src/debug/DebugPanel.php
Expand Up @@ -126,6 +126,7 @@ public function getViewPath()
if ($this->_viewPath === null) {
$this->_viewPath = dirname(__DIR__) . '/views/debug';
}

return $this->_viewPath;
}

Expand Down
1 change: 1 addition & 0 deletions tests/Mock.php
Expand Up @@ -25,6 +25,7 @@ public function __call($name, $args)
{
$this->name = $name;
$this->args = $args;

return $this->result;
}
}

0 comments on commit a35aa74

Please sign in to comment.