Completed
Push — develop ( 8dee05 )
by Dmytro
20:08
created
core/vendor/illuminate/cache/TaggedCache.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      * Increment the value of an item in the cache.
34 34
      *
35 35
      * @param  string  $key
36
-     * @param  mixed   $value
36
+     * @param  integer   $value
37 37
      * @return void
38 38
      */
39 39
     public function increment($key, $value = 1)
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * Decrement 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 void
50 50
      */
51 51
     public function decrement($key, $value = 1)
@@ -65,6 +65,7 @@  discard block
 block discarded – undo
65 65
 
66 66
     /**
67 67
      * {@inheritdoc}
68
+     * @param string $key
68 69
      */
69 70
     protected function itemKey($key)
70 71
     {
Please login to merge, or discard this patch.
core/vendor/illuminate/cache/TagSet.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      *
26 26
      * @param  \Illuminate\Contracts\Cache\Store  $store
27 27
      * @param  array  $names
28
-     * @return void
28
+     * @return TagSet
29 29
      */
30 30
     public function __construct(Store $store, array $names = [])
31 31
     {
Please login to merge, or discard this patch.
core/vendor/illuminate/config/Repository.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,8 +40,8 @@  discard block
 block discarded – undo
40 40
     /**
41 41
      * Get the specified configuration value.
42 42
      *
43
-     * @param  array|string  $key
44
-     * @param  mixed   $default
43
+     * @param  string  $key
44
+     * @param  string   $default
45 45
      * @return mixed
46 46
      */
47 47
     public function get($key, $default = null)
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     /**
78 78
      * Set a given configuration value.
79 79
      *
80
-     * @param  array|string  $key
80
+     * @param  string  $key
81 81
      * @param  mixed   $value
82 82
      * @return void
83 83
      */
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
3 3
 namespace Illuminate\Config;
4 4
 
5 5
 use ArrayAccess;
6
-use Illuminate\Support\Arr;
7 6
 use Illuminate\Contracts\Config\Repository as ConfigContract;
7
+use Illuminate\Support\Arr;
8 8
 
9 9
 class Repository implements ArrayAccess, ConfigContract
10 10
 {
Please login to merge, or discard this patch.
core/vendor/illuminate/console/Application.php 3 patches
Unused Use Statements   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -3,21 +3,21 @@
 block discarded – undo
3 3
 namespace Illuminate\Console;
4 4
 
5 5
 use Closure;
6
-use Illuminate\Support\ProcessUtils;
7
-use Illuminate\Contracts\Events\Dispatcher;
6
+use Illuminate\Contracts\Console\Application as ApplicationContract;
8 7
 use Illuminate\Contracts\Container\Container;
8
+use Illuminate\Contracts\Events\Dispatcher;
9
+use Illuminate\Support\ProcessUtils;
10
+use Symfony\Component\Console\Application as SymfonyApplication;
11
+use Symfony\Component\Console\Command\Command as SymfonyCommand;
12
+use Symfony\Component\Console\Exception\CommandNotFoundException;
9 13
 use Symfony\Component\Console\Input\ArgvInput;
10 14
 use Symfony\Component\Console\Input\ArrayInput;
11
-use Symfony\Component\Console\Input\InputOption;
12
-use Symfony\Component\Process\PhpExecutableFinder;
13 15
 use Symfony\Component\Console\Input\InputInterface;
14
-use Symfony\Component\Console\Output\ConsoleOutput;
16
+use Symfony\Component\Console\Input\InputOption;
15 17
 use Symfony\Component\Console\Output\BufferedOutput;
18
+use Symfony\Component\Console\Output\ConsoleOutput;
16 19
 use Symfony\Component\Console\Output\OutputInterface;
17
-use Symfony\Component\Console\Application as SymfonyApplication;
18
-use Symfony\Component\Console\Command\Command as SymfonyCommand;
19
-use Symfony\Component\Console\Exception\CommandNotFoundException;
20
-use Illuminate\Contracts\Console\Application as ApplicationContract;
20
+use Symfony\Component\Process\PhpExecutableFinder;
21 21
 
22 22
 class Application extends SymfonyApplication implements ApplicationContract
23 23
 {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
             $command = $this->laravel->make($command)->getName();
176 176
         }
177 177
 
178
-        if (! $this->has($command)) {
178
+        if (!$this->has($command)) {
179 179
             throw new CommandNotFoundException(sprintf('The command "%s" does not exist.', $command));
180 180
         }
181 181
 
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
      */
268 268
     protected function getDefaultInputDefinition()
269 269
     {
270
-        return tap(parent::getDefaultInputDefinition(), function ($definition) {
270
+        return tap(parent::getDefaultInputDefinition(), function($definition){
271 271
             $definition->addOption($this->getEnvironmentOption());
272 272
         });
273 273
     }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -267,7 +267,7 @@
 block discarded – undo
267 267
      */
268 268
     protected function getDefaultInputDefinition()
269 269
     {
270
-        return tap(parent::getDefaultInputDefinition(), function ($definition) {
270
+        return tap(parent::getDefaultInputDefinition(), function ($definition){
271 271
             $definition->addOption($this->getEnvironmentOption());
272 272
         });
273 273
     }
Please login to merge, or discard this patch.
core/vendor/illuminate/console/Command.php 4 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
      * Give the user a single choice from an array of answers.
373 373
      *
374 374
      * @param  string  $question
375
-     * @param  array   $choices
375
+     * @param  string[]   $choices
376 376
      * @param  string|null  $default
377 377
      * @param  mixed|null   $attempts
378 378
      * @param  bool|null    $multiple
@@ -390,8 +390,8 @@  discard block
 block discarded – undo
390 390
     /**
391 391
      * Format input to textual table.
392 392
      *
393
-     * @param  array   $headers
394
-     * @param  \Illuminate\Contracts\Support\Arrayable|array  $rows
393
+     * @param  string[]   $headers
394
+     * @param  \Illuminate\Support\Collection  $rows
395 395
      * @param  string  $tableStyle
396 396
      * @param  array   $columnStyles
397 397
      * @return void
Please login to merge, or discard this patch.
Unused Use Statements   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -2,18 +2,18 @@
 block discarded – undo
2 2
 
3 3
 namespace Illuminate\Console;
4 4
 
5
+use Illuminate\Contracts\Support\Arrayable;
5 6
 use Illuminate\Support\Str;
6 7
 use Illuminate\Support\Traits\Macroable;
7
-use Illuminate\Contracts\Support\Arrayable;
8
+use Symfony\Component\Console\Command\Command as SymfonyCommand;
9
+use Symfony\Component\Console\Formatter\OutputFormatterStyle;
8 10
 use Symfony\Component\Console\Helper\Table;
9 11
 use Symfony\Component\Console\Input\ArrayInput;
10
-use Symfony\Component\Console\Output\NullOutput;
11
-use Symfony\Component\Console\Question\Question;
12 12
 use Symfony\Component\Console\Input\InputInterface;
13
+use Symfony\Component\Console\Output\NullOutput;
13 14
 use Symfony\Component\Console\Output\OutputInterface;
14 15
 use Symfony\Component\Console\Question\ChoiceQuestion;
15
-use Symfony\Component\Console\Formatter\OutputFormatterStyle;
16
-use Symfony\Component\Console\Command\Command as SymfonyCommand;
16
+use Symfony\Component\Console\Question\Question;
17 17
 
18 18
 class Command extends SymfonyCommand
19 19
 {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 
112 112
         $this->setHidden($this->hidden);
113 113
 
114
-        if (! isset($this->signature)) {
114
+        if (!isset($this->signature)) {
115 115
             $this->specifyParameters();
116 116
         }
117 117
     }
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
      */
220 220
     protected function createInputFromArguments(array $arguments)
221 221
     {
222
-        return tap(new ArrayInput($arguments), function ($input) {
222
+        return tap(new ArrayInput($arguments), function($input){
223 223
             if ($input->hasParameterOption(['--no-interaction'], true)) {
224 224
                 $input->setInteractive(false);
225 225
             }
@@ -485,7 +485,7 @@  discard block
 block discarded – undo
485 485
      */
486 486
     public function warn($string, $verbosity = null)
487 487
     {
488
-        if (! $this->output->getFormatter()->hasStyle('warning')) {
488
+        if (!$this->output->getFormatter()->hasStyle('warning')) {
489 489
             $style = new OutputFormatterStyle('yellow');
490 490
 
491 491
             $this->output->getFormatter()->setStyle('warning', $style);
@@ -532,7 +532,7 @@  discard block
 block discarded – undo
532 532
     {
533 533
         if (isset($this->verbosityMap[$level])) {
534 534
             $level = $this->verbosityMap[$level];
535
-        } elseif (! is_int($level)) {
535
+        } elseif (!is_int($level)) {
536 536
             $level = $this->verbosity;
537 537
         }
538 538
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -219,7 +219,7 @@
 block discarded – undo
219 219
      */
220 220
     protected function createInputFromArguments(array $arguments)
221 221
     {
222
-        return tap(new ArrayInput($arguments), function ($input) {
222
+        return tap(new ArrayInput($arguments), function ($input){
223 223
             if ($input->hasParameterOption(['--no-interaction'], true)) {
224 224
                 $input->setInteractive(false);
225 225
             }
Please login to merge, or discard this patch.
core/vendor/illuminate/console/GeneratorCommand.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
     /**
46 46
      * Execute the console command.
47 47
      *
48
-     * @return bool|null
48
+     * @return false|null
49 49
      */
50 50
     public function handle()
51 51
     {
Please login to merge, or discard this patch.
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;
4 4
 
5
-use Illuminate\Support\Str;
6 5
 use Illuminate\Filesystem\Filesystem;
6
+use Illuminate\Support\Str;
7 7
 use Symfony\Component\Console\Input\InputArgument;
8 8
 
9 9
 abstract class GeneratorCommand extends Command
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -56,8 +56,8 @@  discard block
 block discarded – undo
56 56
         // First we will check to see if the class already exists. If it does, we don't want
57 57
         // to create the class and overwrite the user's code. So, we will bail out so the
58 58
         // code is untouched. Otherwise, we will continue generating this class' files.
59
-        if ((! $this->hasOption('force') ||
60
-             ! $this->option('force')) &&
59
+        if ((!$this->hasOption('force') ||
60
+             !$this->option('force')) &&
61 61
              $this->alreadyExists($this->getNameInput())) {
62 62
             $this->error($this->type.' already exists!');
63 63
 
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
      */
141 141
     protected function makeDirectory($path)
142 142
     {
143
-        if (! $this->files->isDirectory(dirname($path))) {
143
+        if (!$this->files->isDirectory(dirname($path))) {
144 144
             $this->files->makeDirectory(dirname($path), 0777, true, true);
145 145
         }
146 146
 
Please login to merge, or discard this patch.
core/vendor/illuminate/console/OutputStyle.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace Illuminate\Console;
4 4
 
5
-use Symfony\Component\Console\Style\SymfonyStyle;
6 5
 use Symfony\Component\Console\Input\InputInterface;
7 6
 use Symfony\Component\Console\Output\OutputInterface;
7
+use Symfony\Component\Console\Style\SymfonyStyle;
8 8
 
9 9
 class OutputStyle extends SymfonyStyle
10 10
 {
Please login to merge, or discard this patch.
core/vendor/illuminate/console/Parser.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
     /**
55 55
      * Extract all of the parameters from the tokens.
56 56
      *
57
-     * @param  array  $tokens
57
+     * @param  string[]  $tokens
58 58
      * @return array
59 59
      */
60 60
     protected static function parameters(array $tokens)
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 
5 5
 use Illuminate\Support\Str;
6 6
 use InvalidArgumentException;
7
-use Symfony\Component\Console\Input\InputOption;
8 7
 use Symfony\Component\Console\Input\InputArgument;
8
+use Symfony\Component\Console\Input\InputOption;
9 9
 
10 10
 class Parser
11 11
 {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
             throw new InvalidArgumentException('Console command definition is empty.');
45 45
         }
46 46
 
47
-        if (! preg_match('/[^\s]+/', $expression, $matches)) {
47
+        if (!preg_match('/[^\s]+/', $expression, $matches)) {
48 48
             throw new InvalidArgumentException('Unable to determine command name from signature.');
49 49
         }
50 50
 
Please login to merge, or discard this patch.
core/vendor/illuminate/console/Scheduling/CallbackEvent.php 3 patches
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace Illuminate\Console\Scheduling;
4 4
 
5
-use LogicException;
6
-use InvalidArgumentException;
7 5
 use Illuminate\Contracts\Container\Container;
6
+use InvalidArgumentException;
7
+use LogicException;
8 8
 
9 9
 class CallbackEvent extends Event
10 10
 {
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public function __construct(EventMutex $mutex, $callback, array $parameters = [])
36 36
     {
37
-        if (! is_string($callback) && ! is_callable($callback)) {
37
+        if (!is_string($callback) && !is_callable($callback)) {
38 38
             throw new InvalidArgumentException(
39 39
                 'Invalid scheduled callback event. Must be a string or callable.'
40 40
             );
@@ -56,13 +56,13 @@  discard block
 block discarded – undo
56 56
     public function run(Container $container)
57 57
     {
58 58
         if ($this->description && $this->withoutOverlapping &&
59
-            ! $this->mutex->create($this)) {
59
+            !$this->mutex->create($this)) {
60 60
             return;
61 61
         }
62 62
 
63 63
         $pid = getmypid();
64 64
 
65
-        register_shutdown_function(function () use ($pid) {
65
+        register_shutdown_function(function() use ($pid) {
66 66
             if ($pid === getmypid()) {
67 67
                 $this->removeMutex();
68 68
             }
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     public function withoutOverlapping($expiresAt = 1440)
105 105
     {
106
-        if (! isset($this->description)) {
106
+        if (!isset($this->description)) {
107 107
             throw new LogicException(
108 108
                 "A scheduled event name is required to prevent overlapping. Use the 'name' method before 'withoutOverlapping'."
109 109
             );
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 
114 114
         $this->expiresAt = $expiresAt;
115 115
 
116
-        return $this->skip(function () {
116
+        return $this->skip(function(){
117 117
             return $this->mutex->exists($this);
118 118
         });
119 119
     }
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      */
128 128
     public function onOneServer()
129 129
     {
130
-        if (! isset($this->description)) {
130
+        if (!isset($this->description)) {
131 131
             throw new LogicException(
132 132
                 "A scheduled event name is required to only run on one server. Use the 'name' method before 'onOneServer'."
133 133
             );
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
         $pid = getmypid();
64 64
 
65
-        register_shutdown_function(function () use ($pid) {
65
+        register_shutdown_function(function () use ($pid){
66 66
             if ($pid === getmypid()) {
67 67
                 $this->removeMutex();
68 68
             }
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 
114 114
         $this->expiresAt = $expiresAt;
115 115
 
116
-        return $this->skip(function () {
116
+        return $this->skip(function (){
117 117
             return $this->mutex->exists($this);
118 118
         });
119 119
     }
Please login to merge, or discard this patch.