Completed
Push — master ( 76a8bf...590f19 )
by Song
02:33
created
src/Auth/Permission.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
      *
13 13
      * @param $permission
14 14
      *
15
-     * @return true
15
+     * @return boolean|null
16 16
      */
17 17
     public static function check($permission)
18 18
     {
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      *
31 31
      * @param $roles
32 32
      *
33
-     * @return true
33
+     * @return boolean|null
34 34
      */
35 35
     public static function allow($roles)
36 36
     {
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      *
49 49
      * @param $roles
50 50
      *
51
-     * @return true
51
+     * @return boolean|null
52 52
      */
53 53
     public static function deny($roles)
54 54
     {
Please login to merge, or discard this patch.
src/Form.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
      *
219 219
      * @param $id
220 220
      *
221
-     * @return mixed
221
+     * @return boolean
222 222
      */
223 223
     public function destroy($id)
224 224
     {
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
      * Prepare input data for insert or update.
294 294
      *
295 295
      * @param array    $data
296
-     * @param callable $callback
296
+     * @param Closure $callback
297 297
      */
298 298
     protected function prepare($data = [], Closure $callback = null)
299 299
     {
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
      *
391 391
      * @param int $id
392 392
      *
393
-     * @return $this|\Illuminate\Http\RedirectResponse
393
+     * @return \Symfony\Component\HttpFoundation\Response
394 394
      */
395 395
     public function update($id)
396 396
     {
@@ -459,7 +459,7 @@  discard block
 block discarded – undo
459 459
      * @param int   $id
460 460
      * @param array $input
461 461
      *
462
-     * @return array
462
+     * @return boolean
463 463
      */
464 464
     protected function handleOrderable($id, array $input = [])
465 465
     {
@@ -599,7 +599,7 @@  discard block
 block discarded – undo
599 599
     /**
600 600
      * Set saving callback.
601 601
      *
602
-     * @param callable $callback
602
+     * @param Closure $callback
603 603
      *
604 604
      * @return void
605 605
      */
@@ -611,7 +611,7 @@  discard block
 block discarded – undo
611 611
     /**
612 612
      * Set saved callback.
613 613
      *
614
-     * @param callable $callback
614
+     * @param Closure $callback
615 615
      *
616 616
      * @return void
617 617
      */
Please login to merge, or discard this patch.
src/Form/Field.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
     /**
282 282
      * Get or set rules.
283 283
      *
284
-     * @param null $rules
284
+     * @param string $rules
285 285
      *
286 286
      * @return $this
287 287
      */
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
     /**
302 302
      * Set or get value of the field.
303 303
      *
304
-     * @param null $value
304
+     * @param string $value
305 305
      *
306 306
      * @return mixed
307 307
      */
@@ -349,8 +349,8 @@  discard block
 block discarded – undo
349 349
     /**
350 350
      * Add html attributes to elements.
351 351
      *
352
-     * @param array|string $attribute
353
-     * @param mixed        $value
352
+     * @param string $attribute
353
+     * @param boolean        $value
354 354
      *
355 355
      * @return $this
356 356
      */
Please login to merge, or discard this patch.
src/Widgets/Form.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
     /**
118 118
      * Add form attributes.
119 119
      *
120
-     * @param string|array $attr
120
+     * @param string $attr
121 121
      * @param string       $value
122 122
      *
123 123
      * @return $this
Please login to merge, or discard this patch.
src/Middleware/PjaxMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
      */
106 106
     protected function decodeUtf8HtmlEntities($html)
107 107
     {
108
-        return preg_replace_callback('/(&#[0-9]+;)/', function ($html) {
108
+        return preg_replace_callback('/(&#[0-9]+;)/', function($html) {
109 109
             return mb_convert_encoding($html[1], 'UTF-8', 'HTML-ENTITIES');
110 110
         }, $html);
111 111
     }
Please login to merge, or discard this patch.
src/Grid/Column.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
     protected function htmlEntityEncode($item)
237 237
     {
238 238
         if (is_array($item)) {
239
-            array_walk_recursive($item, function (&$value) {
239
+            array_walk_recursive($item, function(&$value) {
240 240
                 $value = htmlentities($value);
241 241
             });
242 242
         } else {
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
     public function button($style = 'default')
322 322
     {
323 323
         if (is_array($style)) {
324
-            $style = array_map(function ($style) {
324
+            $style = array_map(function($style) {
325 325
                 return 'btn-'.$style;
326 326
             }, $style);
327 327
 
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
     public function progressBar($style = 'primary', $size = 'sm', $max = 100)
350 350
     {
351 351
         if (is_array($style)) {
352
-            $style = array_map(function ($style) {
352
+            $style = array_map(function($style) {
353 353
                 return 'progress-bar-'.$style;
354 354
             }, $style);
355 355
 
Please login to merge, or discard this patch.