Skip to content

Commit 847ed75

Browse files
committed
phpmdエラー修正
1 parent 40eb809 commit 847ed75

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

View/Helper/LinkButtonHelper.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ public function search($title = '', $url = null, $options = array()) {
161161
$inputOptions = Hash::merge(array(
162162
'icon' => 'search',
163163
'iconSize' => $this->Button->getButtonSize(),
164-
'class' => 'btn btn-info'
164+
'class' => 'btn btn-info',
165+
'tooltip' => null,
165166
), $options, array('escapeTitle' => false));
166167

167168
if (Hash::get($options, 'escapeTitle', true)) {
@@ -179,7 +180,7 @@ public function search($title = '', $url = null, $options = array()) {
179180
unset($inputOptions['iconSize']);
180181

181182
//span tooltipタグの出力
182-
if (isset($options['tooltip']) && $options['tooltip']) {
183+
if ($inputOptions['tooltip']) {
183184
if (is_string($options['tooltip'])) {
184185
$tooltip = $options['tooltip'];
185186
} else {
@@ -219,7 +220,8 @@ public function sort($title = '', $url = null, $options = array()) {
219220
$inputOptions = Hash::merge(array(
220221
'icon' => 'sort',
221222
'iconSize' => $this->Button->getButtonSize(),
222-
'class' => 'btn btn-default'
223+
'class' => 'btn btn-default',
224+
'tooltip' => null,
223225
), $options, array('escapeTitle' => false));
224226

225227
if (Hash::get($options, 'escapeTitle', true)) {
@@ -237,7 +239,7 @@ public function sort($title = '', $url = null, $options = array()) {
237239
unset($inputOptions['iconSize']);
238240

239241
//span tooltipタグの出力
240-
if (isset($options['tooltip']) && $options['tooltip']) {
242+
if ($options['tooltip']) {
241243
if (is_string($options['tooltip'])) {
242244
$tooltip = $options['tooltip'];
243245
} else {

0 commit comments

Comments
 (0)