Skip to content

Commit

Permalink
Git inconsistence fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverFire committed May 6, 2015
1 parent 707f988 commit 5c2c6a6
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 75 deletions.
94 changes: 47 additions & 47 deletions assets/combo2/Account.php
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
<?php

namespace hipanel\modules\hosting\assets\combo2;

use hipanel\widgets\Combo2Config;
use yii\helpers\ArrayHelper;

/**
* Class Account
*/
class Account extends Combo2Config
{
/** @inheritdoc */
public $type = 'hosting/account';

/** @inheritdoc */
public $name = 'login';

/** @inheritdoc */
public $url = '/hosting/account/search';

/** @inheritdoc */
public $_return = ['id', 'client', 'client_id', 'device', 'device_id'];

/** @inheritdoc */
public $_rename = ['text' => 'login'];

/** @inheritdoc */
public $_filter = [
'client' => 'client/client',
'server' => 'server/server',
];

/** @inheritdoc */
function getConfig($config = [])
{
$config = ArrayHelper::merge([
'clearWhen' => ['client/client', 'server/server'],
'affects' => [
'client/seller' => 'seller',
'client/client' => 'client',
'server/server' => 'device',
]
], $config);

return parent::getConfig($config);
}
<?php

namespace hipanel\modules\hosting\assets\combo2;

use hipanel\widgets\Combo2Config;
use yii\helpers\ArrayHelper;

/**
* Class Account
*/
class Account extends Combo2Config
{
/** @inheritdoc */
public $type = 'hosting/account';

/** @inheritdoc */
public $name = 'login';

/** @inheritdoc */
public $url = '/hosting/account/search';

/** @inheritdoc */
public $_return = ['id', 'client', 'client_id', 'device', 'device_id'];

/** @inheritdoc */
public $_rename = ['text' => 'login'];

/** @inheritdoc */
public $_filter = [
'client' => 'client/client',
'server' => 'server/server',
];

/** @inheritdoc */
function getConfig($config = [])
{
$config = ArrayHelper::merge([
'clearWhen' => ['client/client', 'server/server'],
'affects' => [
'client/seller' => 'seller',
'client/client' => 'client',
'server/server' => 'device',
]
], $config);

return parent::getConfig($config);
}
}
30 changes: 15 additions & 15 deletions assets/combo2/DbService.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<?php

namespace hipanel\modules\hosting\assets\combo2;

/**
* Class DbService
*/
class DbService extends Service
{
/** @inheritdoc */
public $type = 'hosting/service/db';

/** @inheritdoc */
public $softType = 'db';

<?php

namespace hipanel\modules\hosting\assets\combo2;

/**
* Class DbService
*/
class DbService extends Service
{
/** @inheritdoc */
public $type = 'hosting/service/db';

/** @inheritdoc */
public $softType = 'db';

}
26 changes: 13 additions & 13 deletions views/db/create.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php
/* @var $this yii\web\View */
/* @var $model frontend\modules\ticket\models\Thread */
/* @var $type string */

$this->title = $title[$type];
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Databases'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>

<div class="account-create">
<?= $this->render('_form', compact('model')) ?>
</div>
<?php
/* @var $this yii\web\View */
/* @var $model frontend\modules\ticket\models\Thread */
/* @var $type string */

$this->title = $title[$type];
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Databases'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>

<div class="account-create">
<?= $this->render('_form', compact('model')) ?>
</div>

0 comments on commit 5c2c6a6

Please sign in to comment.