Skip to content

Commit dfedf11

Browse files
yajraStyleCIBot
authored andcommitted
Apply fixes from StyleCI
1 parent 75c773c commit dfedf11

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Html/Builder.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public function parameterize($attributes = [])
172172
list($ajaxDataFunction, $parameters) = $this->encodeAjaxDataFunction($parameters);
173173
list($columnFunctions, $parameters) = $this->encodeColumnFunctions($parameters);
174174
list($callbackFunctions, $parameters) = $this->encodeCallbackFunctions($parameters);
175-
list($editorButtons, $parameters) = $this->encodeEditorButtons($parameters);
175+
list($editorButtons, $parameters) = $this->encodeEditorButtons($parameters);
176176

177177
$json = json_encode($parameters);
178178

@@ -186,7 +186,6 @@ public function parameterize($attributes = [])
186186
return $json;
187187
}
188188

189-
190189
/**
191190
* Encode DataTables editor buttons.
192191
*
@@ -199,11 +198,12 @@ protected function encodeEditorButtons(array $parameters)
199198
if (isset($parameters['buttons'])) {
200199
foreach ($parameters['buttons'] as $i => $button) {
201200
if (isset($button['editor'])) {
202-
$editorButtons[$i] = $this->compileCallback($button['editor']);
201+
$editorButtons[$i] = $this->compileCallback($button['editor']);
203202
$parameters['buttons'][$i]['editor'] = "#editor_button.{$i}#";
204203
}
205204
}
206205
}
206+
207207
return [$editorButtons, $parameters];
208208
}
209209

@@ -219,6 +219,7 @@ protected function decodeEditorButtons(array $editorButtons, $json)
219219
foreach ($editorButtons as $i => $function) {
220220
$json = str_replace("\"#editor_button.{$i}#\"", $function, $json);
221221
}
222+
222223
return $json;
223224
}
224225

0 commit comments

Comments
 (0)