Passed
Push — master ( add694...5fd488 )
by Ferry
03:42
created
src/controllers/traits/ControllerSetting.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -29,9 +29,9 @@  discard block
 block discarded – undo
29 29
         $this->setButtonDetail(true);
30 30
         $this->setButtonSave(true);
31 31
         $this->setButtonLimitPage(true);
32
-        $this->hideButtonDeleteWhen(function ($row) { return false; });
33
-        $this->hideButtonDetailWhen(function ($row) { return false; });
34
-        $this->hideButtonEditWhen(function ($row) { return false; });
32
+        $this->hideButtonDeleteWhen(function($row) { return false; });
33
+        $this->hideButtonDetailWhen(function($row) { return false; });
34
+        $this->hideButtonEditWhen(function($row) { return false; });
35 35
     }
36 36
 
37 37
     public function style(callable $style) {
@@ -135,9 +135,9 @@  discard block
 block discarded – undo
135 135
      * @param ButtonColor $color
136 136
      * @param string $attributes
137 137
      */
138
-    public function addIndexActionButton($label, $actionURL, $fontAwesome_icon=null, $color=null, $attributes = null)
138
+    public function addIndexActionButton($label, $actionURL, $fontAwesome_icon = null, $color = null, $attributes = null)
139 139
     {
140
-        $color = ($color)?:ButtonColor::DARK_BLUE;
140
+        $color = ($color) ?: ButtonColor::DARK_BLUE;
141 141
 
142 142
         $model = new IndexActionButtonModel();
143 143
         $model->setLabel($label);
@@ -192,12 +192,12 @@  discard block
 block discarded – undo
192 192
      * @param $fontAwesome_icon
193 193
      * @param ButtonColor|string $color
194 194
      */
195
-    public function addActionButton($label, $url_target, $condition_callback=null, $fontAwesome_icon=null, $color=null, $confirmation = false)
195
+    public function addActionButton($label, $url_target, $condition_callback = null, $fontAwesome_icon = null, $color = null, $confirmation = false)
196 196
     {
197 197
         $new = new AddActionButtonModel();
198 198
         $new->setLabel($label);
199
-        $new->setIcon($fontAwesome_icon?:"fa fa-bars");
200
-        $new->setColor($color?:"primary");
199
+        $new->setIcon($fontAwesome_icon ?: "fa fa-bars");
200
+        $new->setColor($color ?: "primary");
201 201
         $new->setUrl($url_target);
202 202
         $new->setCondition($condition_callback);
203 203
         $new->setConfirmation($confirmation);
Please login to merge, or discard this patch.