Completed
Pull Request — master (#1350)
by
unknown
02:44
created
src/Grid/Column.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -558,7 +558,7 @@
 block discarded – undo
558 558
         }
559 559
         if (Lang::has($trans_key_low)) {
560 560
             $label = Lang::get($trans_key_low);
561
-        }else {
561
+        } else {
562 562
             $label = ucfirst($label);
563 563
         }
564 564
         return $label;
Please login to merge, or discard this patch.
src/Grid.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -290,14 +290,14 @@
 block discarded – undo
290 290
     {
291 291
         $trans_key = 'validation.attributes.' . $relationColumn;
292 292
         $trans_key_low = strtolower($trans_key);
293
-         if (empty($label) && Lang::has($trans_key)) {
294
-             $label = Lang::get($trans_key);
295
-         }
296
-         if (empty($label) && Lang::has($trans_key_low)) {
293
+            if (empty($label) && Lang::has($trans_key)) {
294
+                $label = Lang::get($trans_key);
295
+            }
296
+            if (empty($label) && Lang::has($trans_key_low)) {
297 297
             $label = Lang::get($trans_key_low);
298 298
         }else if (empty($label)) {
299
-             $label = ucfirst($relationColumn);
300
-         }
299
+                $label = ucfirst($relationColumn);
300
+            }
301 301
         return $label;
302 302
     }
303 303
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -295,7 +295,7 @@
 block discarded – undo
295 295
          }
296 296
          if (empty($label) && Lang::has($trans_key_low)) {
297 297
             $label = Lang::get($trans_key_low);
298
-        }else if (empty($label)) {
298
+        } else if (empty($label)) {
299 299
              $label = ucfirst($relationColumn);
300 300
          }
301 301
         return $label;
Please login to merge, or discard this patch.
src/Form/Builder.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -366,7 +366,9 @@
 block discarded – undo
366 366
      */
367 367
     public function title()
368 368
     {
369
-        if ($this->Title != "") return $this->Title;
369
+        if ($this->Title != "") {
370
+            return $this->Title;
371
+        }
370 372
 
371 373
         if ($this->mode == static::MODE_CREATE) {
372 374
             return trans('admin.create');
Please login to merge, or discard this patch.
src/Form/Field.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -906,7 +906,7 @@
 block discarded – undo
906 906
      */
907 907
     public function popover($title = null, $content)
908 908
     {
909
-      return  $this->attribute([
909
+        return  $this->attribute([
910 910
             'data-popover-title' => $title,
911 911
             'data-popover'       => $content,
912 912
         ]);
Please login to merge, or discard this patch.
src/Grid/Filter/AbstractFilter.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -558,7 +558,7 @@
 block discarded – undo
558 558
         }
559 559
         if (Lang::has($trans_key_low)) {
560 560
             $label = Lang::get($trans_key_low);
561
-        }else {
561
+        } else {
562 562
             $label = ucfirst($label);
563 563
         }
564 564
         return $label;
Please login to merge, or discard this patch.
src/Form.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -228,7 +228,9 @@
 block discarded – undo
228 228
     public function edit($id, $show_mode = false)
229 229
     {
230 230
         $mode = Builder::MODE_EDIT;
231
-        if ($show_mode) $mode = Builder::MODE_SHOW;
231
+        if ($show_mode) {
232
+            $mode = Builder::MODE_SHOW;
233
+        }
232 234
         $this->builder->setMode($mode);
233 235
         $this->builder->setResourceId($id);
234 236
 
Please login to merge, or discard this patch.
src/Form/Field/Editor.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
      */
39 39
     public function direction($dir ='ltr')
40 40
     {
41
-         $this->options(['contentsLangDirection' => $dir]);
41
+            $this->options(['contentsLangDirection' => $dir]);
42 42
         $this->direction = $dir;
43 43
 
44 44
         return $this;    }
Please login to merge, or discard this patch.
src/Widgets/InfoBox.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,9 @@
 block discarded – undo
27 27
      */
28 28
     public function __construct($name, $icon, $color, $link, $info, $more_text =null )
29 29
     {
30
-        if ($more_text == null) $more_text = trans('admin.more');
30
+        if ($more_text == null) {
31
+            $more_text = trans('admin.more');
32
+        }
31 33
 
32 34
 
33 35
         $this->data = [
Please login to merge, or discard this patch.