Completed
Push — develop ( 8dee05 )
by Dmytro
20:08
created
core/vendor/illuminate/console/Scheduling/ManagesFrequencies.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -370,7 +370,7 @@
 block discarded – undo
370 370
     /**
371 371
      * Set the days of the week the command should run on.
372 372
      *
373
-     * @param  array|mixed  $days
373
+     * @param  integer  $days
374 374
      * @return $this
375 375
      */
376 376
     public function days($days)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
      */
53 53
     private function inTimeInterval($startTime, $endTime)
54 54
     {
55
-        return function () use ($startTime, $endTime) {
55
+        return function() use ($startTime, $endTime) {
56 56
             return Carbon::now($this->timezone)->between(
57 57
                 Carbon::parse($startTime, $this->timezone),
58 58
                 Carbon::parse($endTime, $this->timezone),
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
      */
53 53
     private function inTimeInterval($startTime, $endTime)
54 54
     {
55
-        return function () use ($startTime, $endTime) {
55
+        return function () use ($startTime, $endTime){
56 56
             return Carbon::now($this->timezone)->between(
57 57
                 Carbon::parse($startTime, $this->timezone),
58 58
                 Carbon::parse($endTime, $this->timezone),
Please login to merge, or discard this patch.
core/vendor/illuminate/console/Scheduling/Schedule.php 3 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@
 block discarded – undo
5 5
 use DateTimeInterface;
6 6
 use Illuminate\Console\Application;
7 7
 use Illuminate\Container\Container;
8
-use Illuminate\Support\ProcessUtils;
9 8
 use Illuminate\Contracts\Queue\ShouldQueue;
9
+use Illuminate\Support\ProcessUtils;
10 10
 
11 11
 class Schedule
12 12
 {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      */
93 93
     public function job($job, $queue = null)
94 94
     {
95
-        return $this->call(function () use ($job, $queue) {
95
+        return $this->call(function() use ($job, $queue) {
96 96
             $job = is_string($job) ? resolve($job) : $job;
97 97
 
98 98
             if ($job instanceof ShouldQueue) {
@@ -129,12 +129,12 @@  discard block
 block discarded – undo
129 129
      */
130 130
     protected function compileParameters(array $parameters)
131 131
     {
132
-        return collect($parameters)->map(function ($value, $key) {
132
+        return collect($parameters)->map(function($value, $key){
133 133
             if (is_array($value)) {
134
-                $value = collect($value)->map(function ($value) {
134
+                $value = collect($value)->map(function($value){
135 135
                     return ProcessUtils::escapeArgument($value);
136 136
                 })->implode(' ');
137
-            } elseif (! is_numeric($value) && ! preg_match('/^(-.$|--.*)/i', $value)) {
137
+            } elseif (!is_numeric($value) && !preg_match('/^(-.$|--.*)/i', $value)) {
138 138
                 $value = ProcessUtils::escapeArgument($value);
139 139
             }
140 140
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      */
93 93
     public function job($job, $queue = null)
94 94
     {
95
-        return $this->call(function () use ($job, $queue) {
95
+        return $this->call(function () use ($job, $queue){
96 96
             $job = is_string($job) ? resolve($job) : $job;
97 97
 
98 98
             if ($job instanceof ShouldQueue) {
@@ -129,9 +129,9 @@  discard block
 block discarded – undo
129 129
      */
130 130
     protected function compileParameters(array $parameters)
131 131
     {
132
-        return collect($parameters)->map(function ($value, $key) {
132
+        return collect($parameters)->map(function ($value, $key){
133 133
             if (is_array($value)) {
134
-                $value = collect($value)->map(function ($value) {
134
+                $value = collect($value)->map(function ($value){
135 135
                     return ProcessUtils::escapeArgument($value);
136 136
                 })->implode(' ');
137 137
             } elseif (! is_numeric($value) && ! preg_match('/^(-.$|--.*)/i', $value)) {
Please login to merge, or discard this patch.
core/vendor/illuminate/console/Scheduling/ScheduleRunCommand.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Illuminate\Console\Scheduling;
4 4
 
5
-use Illuminate\Support\Carbon;
6 5
 use Illuminate\Console\Command;
6
+use Illuminate\Support\Carbon;
7 7
 
8 8
 class ScheduleRunCommand extends Command
9 9
 {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     public function handle()
66 66
     {
67 67
         foreach ($this->schedule->dueEvents($this->laravel) as $event) {
68
-            if (! $event->filtersPass($this->laravel)) {
68
+            if (!$event->filtersPass($this->laravel)) {
69 69
                 continue;
70 70
             }
71 71
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
             $this->eventsRan = true;
79 79
         }
80 80
 
81
-        if (! $this->eventsRan) {
81
+        if (!$this->eventsRan) {
82 82
             $this->info('No scheduled commands are ready to run.');
83 83
         }
84 84
     }
Please login to merge, or discard this patch.
core/vendor/illuminate/container/BoundMethod.php 4 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      *
67 67
      * @param  \Illuminate\Container\Container  $container
68 68
      * @param  callable  $callback
69
-     * @param  mixed  $default
69
+     * @param  Closure  $default
70 70
      * @return mixed
71 71
      */
72 72
     protected static function callBoundMethod($container, $callback, $default)
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
     /**
167 167
      * Determine if the given string is in Class@method syntax.
168 168
      *
169
-     * @param  mixed  $callback
169
+     * @param  callable  $callback
170 170
      * @return bool
171 171
      */
172 172
     protected static function isCallableWithAtSign($callback)
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
3 3
 namespace Illuminate\Container;
4 4
 
5 5
 use Closure;
6
-use ReflectionMethod;
7
-use ReflectionFunction;
8 6
 use InvalidArgumentException;
7
+use ReflectionFunction;
8
+use ReflectionMethod;
9 9
 
10 10
 class BoundMethod
11 11
 {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
             return static::callClass($container, $callback, $parameters, $defaultMethod);
25 25
         }
26 26
 
27
-        return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
27
+        return static::callBoundMethod($container, $callback, function() use ($container, $callback, $parameters) {
28 28
             return call_user_func_array(
29 29
                 $callback, static::getMethodDependencies($container, $callback, $parameters)
30 30
             );
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      */
72 72
     protected static function callBoundMethod($container, $callback, $default)
73 73
     {
74
-        if (! is_array($callback)) {
74
+        if (!is_array($callback)) {
75 75
             return $default instanceof Closure ? $default() : $default;
76 76
         }
77 77
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
             return static::callClass($container, $callback, $parameters, $defaultMethod);
25 25
         }
26 26
 
27
-        return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
27
+        return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters){
28 28
             return call_user_func_array(
29 29
                 $callback, static::getMethodDependencies($container, $callback, $parameters)
30 30
             );
Please login to merge, or discard this patch.
core/vendor/illuminate/container/Container.php 3 patches
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,13 +2,13 @@
 block discarded – undo
2 2
 
3 3
 namespace Illuminate\Container;
4 4
 
5
-use Closure;
6 5
 use ArrayAccess;
6
+use Closure;
7
+use Illuminate\Contracts\Container\BindingResolutionException;
8
+use Illuminate\Contracts\Container\Container as ContainerContract;
7 9
 use LogicException;
8 10
 use ReflectionClass;
9 11
 use ReflectionParameter;
10
-use Illuminate\Contracts\Container\BindingResolutionException;
11
-use Illuminate\Contracts\Container\Container as ContainerContract;
12 12
 
13 13
 class Container implements ArrayAccess, ContainerContract
14 14
 {
Please login to merge, or discard this patch.
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
         // If the factory is not a Closure, it means it is just a class name which is
226 226
         // bound into this container to the abstract type and we will just wrap it
227 227
         // up inside its own Closure to give us more convenience when extending.
228
-        if (! $concrete instanceof Closure) {
228
+        if (!$concrete instanceof Closure) {
229 229
             $concrete = $this->getClosure($abstract, $concrete);
230 230
         }
231 231
 
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
      */
249 249
     protected function getClosure($abstract, $concrete)
250 250
     {
251
-        return function ($container, $parameters = []) use ($abstract, $concrete) {
251
+        return function($container, $parameters = []) use ($abstract, $concrete) {
252 252
             if ($abstract == $concrete) {
253 253
                 return $container->build($concrete);
254 254
             }
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
      */
331 331
     public function bindIf($abstract, $concrete = null, $shared = false)
332 332
     {
333
-        if (! $this->bound($abstract)) {
333
+        if (!$this->bound($abstract)) {
334 334
             $this->bind($abstract, $concrete, $shared);
335 335
         }
336 336
     }
@@ -408,7 +408,7 @@  discard block
 block discarded – undo
408 408
      */
409 409
     protected function removeAbstractAlias($searched)
410 410
     {
411
-        if (! isset($this->aliases[$searched])) {
411
+        if (!isset($this->aliases[$searched])) {
412 412
             return;
413 413
         }
414 414
 
@@ -433,7 +433,7 @@  discard block
 block discarded – undo
433 433
         $tags = is_array($tags) ? $tags : array_slice(func_get_args(), 1);
434 434
 
435 435
         foreach ($tags as $tag) {
436
-            if (! isset($this->tags[$tag])) {
436
+            if (!isset($this->tags[$tag])) {
437 437
                 $this->tags[$tag] = [];
438 438
             }
439 439
 
@@ -502,7 +502,7 @@  discard block
 block discarded – undo
502 502
      */
503 503
     public function refresh($abstract, $target, $method)
504 504
     {
505
-        return $this->rebinding($abstract, function ($app, $instance) use ($target, $method) {
505
+        return $this->rebinding($abstract, function($app, $instance) use ($target, $method) {
506 506
             $target->{$method}($instance);
507 507
         });
508 508
     }
@@ -546,7 +546,7 @@  discard block
 block discarded – undo
546 546
      */
547 547
     public function wrap(Closure $callback, array $parameters = [])
548 548
     {
549
-        return function () use ($callback, $parameters) {
549
+        return function() use ($callback, $parameters) {
550 550
             return $this->call($callback, $parameters);
551 551
         };
552 552
     }
@@ -572,7 +572,7 @@  discard block
 block discarded – undo
572 572
      */
573 573
     public function factory($abstract)
574 574
     {
575
-        return function () use ($abstract) {
575
+        return function() use ($abstract) {
576 576
             return $this->make($abstract);
577 577
         };
578 578
     }
@@ -624,14 +624,14 @@  discard block
 block discarded – undo
624 624
     {
625 625
         $abstract = $this->getAlias($abstract);
626 626
 
627
-        $needsContextualBuild = ! empty($parameters) || ! is_null(
627
+        $needsContextualBuild = !empty($parameters) || !is_null(
628 628
             $this->getContextualConcrete($abstract)
629 629
         );
630 630
 
631 631
         // If an instance of the type is currently being managed as a singleton we'll
632 632
         // just return an existing instance instead of instantiating new instances
633 633
         // so the developer can keep using the same objects instance every time.
634
-        if (isset($this->instances[$abstract]) && ! $needsContextualBuild) {
634
+        if (isset($this->instances[$abstract]) && !$needsContextualBuild) {
635 635
             return $this->instances[$abstract];
636 636
         }
637 637
 
@@ -658,7 +658,7 @@  discard block
 block discarded – undo
658 658
         // If the requested type is registered as a singleton we'll want to cache off
659 659
         // the instances in "memory" so we can return it later without creating an
660 660
         // entirely new instance of an object on each subsequent request for it.
661
-        if ($this->isShared($abstract) && ! $needsContextualBuild) {
661
+        if ($this->isShared($abstract) && !$needsContextualBuild) {
662 662
             $this->instances[$abstract] = $object;
663 663
         }
664 664
 
@@ -682,7 +682,7 @@  discard block
 block discarded – undo
682 682
      */
683 683
     protected function getConcrete($abstract)
684 684
     {
685
-        if (! is_null($concrete = $this->getContextualConcrete($abstract))) {
685
+        if (!is_null($concrete = $this->getContextualConcrete($abstract))) {
686 686
             return $concrete;
687 687
         }
688 688
 
@@ -704,7 +704,7 @@  discard block
 block discarded – undo
704 704
      */
705 705
     protected function getContextualConcrete($abstract)
706 706
     {
707
-        if (! is_null($binding = $this->findInContextualBindings($abstract))) {
707
+        if (!is_null($binding = $this->findInContextualBindings($abstract))) {
708 708
             return $binding;
709 709
         }
710 710
 
@@ -716,7 +716,7 @@  discard block
 block discarded – undo
716 716
         }
717 717
 
718 718
         foreach ($this->abstractAliases[$abstract] as $alias) {
719
-            if (! is_null($binding = $this->findInContextualBindings($alias))) {
719
+            if (!is_null($binding = $this->findInContextualBindings($alias))) {
720 720
                 return $binding;
721 721
             }
722 722
         }
@@ -769,7 +769,7 @@  discard block
 block discarded – undo
769 769
         // If the type is not instantiable, the developer is attempting to resolve
770 770
         // an abstract type such as an Interface of Abstract Class and there is
771 771
         // no binding registered for the abstractions so we need to bail out.
772
-        if (! $reflector->isInstantiable()) {
772
+        if (!$reflector->isInstantiable()) {
773 773
             return $this->notInstantiable($concrete);
774 774
         }
775 775
 
@@ -875,7 +875,7 @@  discard block
 block discarded – undo
875 875
      */
876 876
     protected function resolvePrimitive(ReflectionParameter $parameter)
877 877
     {
878
-        if (! is_null($concrete = $this->getContextualConcrete('$'.$parameter->name))) {
878
+        if (!is_null($concrete = $this->getContextualConcrete('$'.$parameter->name))) {
879 879
             return $concrete instanceof Closure ? $concrete($this) : $concrete;
880 880
         }
881 881
 
@@ -922,7 +922,7 @@  discard block
 block discarded – undo
922 922
      */
923 923
     protected function notInstantiable($concrete)
924 924
     {
925
-        if (! empty($this->buildStack)) {
925
+        if (!empty($this->buildStack)) {
926 926
             $previous = implode(', ', $this->buildStack);
927 927
 
928 928
             $message = "Target [$concrete] is not instantiable while building [$previous].";
@@ -1078,7 +1078,7 @@  discard block
 block discarded – undo
1078 1078
      */
1079 1079
     public function getAlias($abstract)
1080 1080
     {
1081
-        if (! isset($this->aliases[$abstract])) {
1081
+        if (!isset($this->aliases[$abstract])) {
1082 1082
             return $abstract;
1083 1083
         }
1084 1084
 
@@ -1219,7 +1219,7 @@  discard block
 block discarded – undo
1219 1219
      */
1220 1220
     public function offsetSet($key, $value)
1221 1221
     {
1222
-        $this->bind($key, $value instanceof Closure ? $value : function () use ($value) {
1222
+        $this->bind($key, $value instanceof Closure ? $value : function() use ($value) {
1223 1223
             return $value;
1224 1224
         });
1225 1225
     }
Please login to merge, or discard this patch.
Braces   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
      */
249 249
     protected function getClosure($abstract, $concrete)
250 250
     {
251
-        return function ($container, $parameters = []) use ($abstract, $concrete) {
251
+        return function ($container, $parameters = []) use ($abstract, $concrete){
252 252
             if ($abstract == $concrete) {
253 253
                 return $container->build($concrete);
254 254
             }
@@ -502,7 +502,7 @@  discard block
 block discarded – undo
502 502
      */
503 503
     public function refresh($abstract, $target, $method)
504 504
     {
505
-        return $this->rebinding($abstract, function ($app, $instance) use ($target, $method) {
505
+        return $this->rebinding($abstract, function ($app, $instance) use ($target, $method){
506 506
             $target->{$method}($instance);
507 507
         });
508 508
     }
@@ -546,7 +546,7 @@  discard block
 block discarded – undo
546 546
      */
547 547
     public function wrap(Closure $callback, array $parameters = [])
548 548
     {
549
-        return function () use ($callback, $parameters) {
549
+        return function () use ($callback, $parameters){
550 550
             return $this->call($callback, $parameters);
551 551
         };
552 552
     }
@@ -572,7 +572,7 @@  discard block
 block discarded – undo
572 572
      */
573 573
     public function factory($abstract)
574 574
     {
575
-        return function () use ($abstract) {
575
+        return function () use ($abstract){
576 576
             return $this->make($abstract);
577 577
         };
578 578
     }
@@ -1219,7 +1219,7 @@  discard block
 block discarded – undo
1219 1219
      */
1220 1220
     public function offsetSet($key, $value)
1221 1221
     {
1222
-        $this->bind($key, $value instanceof Closure ? $value : function () use ($value) {
1222
+        $this->bind($key, $value instanceof Closure ? $value : function () use ($value){
1223 1223
             return $value;
1224 1224
         });
1225 1225
     }
Please login to merge, or discard this patch.
core/vendor/illuminate/contracts/Bus/Dispatcher.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      * Retrieve the handler for a command.
34 34
      *
35 35
      * @param  mixed  $command
36
-     * @return bool|mixed
36
+     * @return boolean
37 37
      */
38 38
     public function getCommandHandler($command);
39 39
 
Please login to merge, or discard this patch.
core/vendor/illuminate/contracts/Cache/Repository.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
      * Retrieve an item from the cache by key.
20 20
      *
21 21
      * @param  string  $key
22
-     * @param  mixed   $default
22
+     * @param  integer   $default
23 23
      * @return mixed
24 24
      */
25 25
     public function get($key, $default = null);
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      *
39 39
      * @param  string  $key
40 40
      * @param  mixed   $value
41
-     * @param  \DateTimeInterface|\DateInterval|float|int  $minutes
41
+     * @param  integer  $minutes
42 42
      * @return void
43 43
      */
44 44
     public function put($key, $value, $minutes);
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      *
49 49
      * @param  string  $key
50 50
      * @param  mixed   $value
51
-     * @param  \DateTimeInterface|\DateInterval|float|int  $minutes
51
+     * @param  integer  $minutes
52 52
      * @return bool
53 53
      */
54 54
     public function add($key, $value, $minutes);
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      * Increment the value of an item in the cache.
58 58
      *
59 59
      * @param  string  $key
60
-     * @param  mixed  $value
60
+     * @param  integer  $value
61 61
      * @return int|bool
62 62
      */
63 63
     public function increment($key, $value = 1);
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      * Decrement the value of an item in the cache.
67 67
      *
68 68
      * @param  string  $key
69
-     * @param  mixed  $value
69
+     * @param  integer  $value
70 70
      * @return int|bool
71 71
      */
72 72
     public function decrement($key, $value = 1);
Please login to merge, or discard this patch.
core/vendor/illuminate/contracts/Cache/Store.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
     /**
8 8
      * Retrieve an item from the cache by key.
9 9
      *
10
-     * @param  string|array  $key
10
+     * @param  string  $key
11 11
      * @return mixed
12 12
      */
13 13
     public function get($key);
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * Increment the value of an item in the cache.
46 46
      *
47 47
      * @param  string  $key
48
-     * @param  mixed   $value
48
+     * @param  integer   $value
49 49
      * @return int|bool
50 50
      */
51 51
     public function increment($key, $value = 1);
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      * Decrement the value of an item in the cache.
55 55
      *
56 56
      * @param  string  $key
57
-     * @param  mixed   $value
57
+     * @param  integer   $value
58 58
      * @return int|bool
59 59
      */
60 60
     public function decrement($key, $value = 1);
Please login to merge, or discard this patch.
core/vendor/illuminate/contracts/Container/Container.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * Register a binding with the container.
46 46
      *
47 47
      * @param  string  $abstract
48
-     * @param  \Closure|string|null  $concrete
48
+     * @param  Closure  $concrete
49 49
      * @param  bool  $shared
50 50
      * @return void
51 51
      */
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      * Register a shared binding in the container.
66 66
      *
67 67
      * @param  string  $abstract
68
-     * @param  \Closure|string|null  $concrete
68
+     * @param  Closure  $concrete
69 69
      * @return void
70 70
      */
71 71
     public function singleton($abstract, $concrete = null);
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      *
112 112
      * @param  string  $abstract
113 113
      * @param  array  $parameters
114
-     * @return mixed
114
+     * @return \Symfony\Component\Console\Command\Command
115 115
      */
116 116
     public function make($abstract, array $parameters = []);
117 117
 
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
     /**
146 146
      * Register a new after resolving callback.
147 147
      *
148
-     * @param  \Closure|string  $abstract
148
+     * @param  string  $abstract
149 149
      * @param  \Closure|null  $callback
150 150
      * @return void
151 151
      */
Please login to merge, or discard this patch.