Completed
Pull Request — master (#4777)
by
unknown
02:33
created
src/Form/Tools.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     /**
49 49
      * Append a tools.
50 50
      *
51
-     * @param mixed $tool
51
+     * @param string $tool
52 52
      *
53 53
      * @return $this
54 54
      */
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
      *
282 282
      * @param Collection $tools
283 283
      *
284
-     * @return mixed
284
+     * @return string
285 285
      */
286 286
     protected function renderCustomTools($tools)
287 287
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -153,10 +153,10 @@  discard block
 block discarded – undo
153 153
      */
154 154
     protected function getRedirectDeletePath()
155 155
     {
156
-        if($this->redirectDeletePath === "")
156
+        if ($this->redirectDeletePath === "")
157 157
         {
158 158
             return ltrim($this->getResource(), '/');
159
-        }else{
159
+        } else {
160 160
             return $this->redirectDeletePath;
161 161
         }
162 162
     }
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
             return '';
358 358
         }
359 359
 
360
-        return $tools->map(function ($tool) {
360
+        return $tools->map(function($tool) {
361 361
             if ($tool instanceof Renderable) {
362 362
                 return $tool->render();
363 363
             }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@
 block discarded – undo
156 156
         if($this->redirectDeletePath === "")
157 157
         {
158 158
             return ltrim($this->getResource(), '/');
159
-        }else{
159
+        } else{
160 160
             return $this->redirectDeletePath;
161 161
         }
162 162
     }
Please login to merge, or discard this patch.
src/Show/Tools.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -165,10 +165,10 @@  discard block
 block discarded – undo
165 165
      */
166 166
     protected function getRedirectDeletePath()
167 167
     {
168
-        if($this->redirectDeletePath === "")
168
+        if ($this->redirectDeletePath === "")
169 169
         {
170 170
             return ltrim($this->getResource(), '/');
171
-        }else{
171
+        } else {
172 172
             return $this->redirectDeletePath;
173 173
         }
174 174
     }
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
      */
322 322
     protected function renderCustomTools($tools)
323 323
     {
324
-        return $tools->map(function ($tool) {
324
+        return $tools->map(function($tool) {
325 325
             if ($tool instanceof Renderable) {
326 326
                 return $tool->render();
327 327
             }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@
 block discarded – undo
168 168
         if($this->redirectDeletePath === "")
169 169
         {
170 170
             return ltrim($this->getResource(), '/');
171
-        }else{
171
+        } else{
172 172
             return $this->redirectDeletePath;
173 173
         }
174 174
     }
Please login to merge, or discard this patch.