Passed
Pull Request — master (#8)
by
unknown
11:53
created
src/Services/Http/TracingRequestGuard.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,13 +13,13 @@
 block discarded – undo
13 13
     public function allowRequest(Request $request): bool
14 14
     {
15 15
         if (Config::get('jaravel.http.allow_request')) {
16
-            if (!Caller::call(Config::get('jaravel.http.allow_request'), [$request])) {
16
+            if (!Caller::call(Config::get('jaravel.http.allow_request'), [ $request ])) {
17 17
                 return false;
18 18
             }
19 19
         }
20 20
 
21 21
         if (Config::get('jaravel.http.deny_request')) {
22
-            if (Caller::call(Config::get('jaravel.http.deny_request'), [$request])) {
22
+            if (Caller::call(Config::get('jaravel.http.deny_request'), [ $request ])) {
23 23
                 return false;
24 24
             }
25 25
         }
Please login to merge, or discard this patch.
src/Services/ConsoleCommandFilter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,9 +19,9 @@
 block discarded – undo
19 19
 
20 20
     public function allow(): bool
21 21
     {
22
-        $filteredCommands = Config::get('jaravel.console.filter_commands', ['schedule:run', 'horizon', 'queue:']);
22
+        $filteredCommands = Config::get('jaravel.console.filter_commands', [ 'schedule:run', 'horizon', 'queue:' ]);
23 23
 
24
-        $command = $this->request->server('argv')[1] ?? '';
24
+        $command = $this->request->server('argv')[ 1 ] ?? '';
25 25
 
26 26
         return !Str::contains($command, $filteredCommands);
27 27
     }
Please login to merge, or discard this patch.
src/config/jaravel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
      */
56 56
     'console' => [
57 57
         'span_name' => fn (string $command, ?InputInterface $input = null) => 'Console: ' . $command,
58
-        'filter_commands' => ['schedule:run', 'horizon', 'queue:'],
58
+        'filter_commands' => [ 'schedule:run', 'horizon', 'queue:' ],
59 59
         'tags' => fn (string $command, int $exitCode, ?InputInterface $input = null, ?OutputInterface $output = null) => [
60 60
             'type' => 'console',
61 61
             'console_command' => $command,
Please login to merge, or discard this patch.
src/Services/Job/JobInjectionMaker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
             return $command;
26 26
         }
27 27
 
28
-        $command->{$tracingContextField} = [];
28
+        $command->{$tracingContextField} = [ ];
29 29
         $this->contextPropagator->inject($command->{$tracingContextField}, ArrayAccessGetterSetter::getInstance());
30 30
 
31 31
         return $command;
Please login to merge, or discard this patch.
src/Services/Span/SpanCreator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
         $spanBuilder = $this->tracer->spanBuilder($operationName);
26 26
 
27 27
         if ($traceIdHeader) {
28
-            $context = $this->contextPropagator->extract([TraceContextPropagator::TRACEPARENT => $traceIdHeader]);
28
+            $context = $this->contextPropagator->extract([ TraceContextPropagator::TRACEPARENT => $traceIdHeader ]);
29 29
             $spanBuilder->setParent($context);
30 30
         }
31 31
 
Please login to merge, or discard this patch.
src/Listeners/ConsoleCommandStartedListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     {
23 23
         $this->spanCreator
24 24
             ->create(
25
-                Caller::call(ConfigRepository::get('jaravel.console.span_name'), [$event->command, $event->input])
25
+                Caller::call(ConfigRepository::get('jaravel.console.span_name'), [ $event->command, $event->input ])
26 26
             )
27 27
             ->activate();
28 28
     }
Please login to merge, or discard this patch.
src/Middleware/JobTracingMiddleware.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,12 +25,12 @@  discard block
 block discarded – undo
25 25
 
26 26
     public function handle($job, callable $next)
27 27
     {
28
-        $payload = $job->{self::JOB_TRACING_CONTEXT_FIELD} ?? [];
28
+        $payload = $job->{self::JOB_TRACING_CONTEXT_FIELD} ?? [ ];
29 29
 
30 30
         $traceIdHeader = $this->traceIdHeaderRetriever->retrieve($payload);
31 31
 
32 32
         $span = $this->spanCreator->create(
33
-            Caller::call(Config::get('jaravel.job.span_name'), [$job, $job->job ?? null]),
33
+            Caller::call(Config::get('jaravel.job.span_name'), [ $job, $job->job ?? null ]),
34 34
             $traceIdHeader
35 35
         );
36 36
         $spanScope = $span->activate();
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
             'type' => 'job',
42 42
         ]);
43 43
 
44
-        SpanTagHelper::setTags($span, Caller::call($callableConfig, [$job, $job->job ?? null]));
44
+        SpanTagHelper::setTags($span, Caller::call($callableConfig, [ $job, $job->job ?? null ]));
45 45
 
46 46
         $span->end();
47 47
         $spanScope->detach();
Please login to merge, or discard this patch.
src/Services/Guzzle/HttpTracingMiddlewareFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -17,22 +17,22 @@
 block discarded – undo
17 17
 {
18 18
     public static function create(): callable
19 19
     {
20
-        return function (callable $handler) {
21
-            return function (RequestInterface $request, array $options) use ($handler) {
20
+        return function(callable $handler) {
21
+            return function(RequestInterface $request, array $options) use ($handler) {
22 22
                 /** @var TraceContextPropagator $contextPropagator */
23 23
                 $contextPropagator = App::make(TraceContextPropagator::class);
24 24
                 /** @var SpanCreator $spanCreator */
25 25
                 $spanCreator = App::make(SpanCreator::class);
26 26
                 $currentSpan = Span::getCurrent();
27 27
 
28
-                $childSpan = $spanCreator->create(Caller::call(Config::get('jaravel.guzzle.span_name'), [$request]), $currentSpan->getContext()->getTraceId());
28
+                $childSpan = $spanCreator->create(Caller::call(Config::get('jaravel.guzzle.span_name'), [ $request ]), $currentSpan->getContext()->getTraceId());
29 29
 
30 30
                 $scope = $childSpan->activate();
31 31
 
32
-                $headers = [];
32
+                $headers = [ ];
33 33
                 $contextPropagator->inject($headers);
34 34
 
35
-                SpanTagHelper::setTags($childSpan, Caller::call(Config::get('jaravel.guzzle.tags'), [$request]));
35
+                SpanTagHelper::setTags($childSpan, Caller::call(Config::get('jaravel.guzzle.tags'), [ $request ]));
36 36
 
37 37
                 foreach ($headers as $name => $value) {
38 38
                     $request = $request->withHeader($name, $value);
Please login to merge, or discard this patch.
src/Listeners/ConsoleCommandFinishedListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 
24 24
         SpanTagHelper::setTags(
25 25
             $span,
26
-            Caller::call($callableConfig, [$event->command, $event->exitCode, $event->input, $event->output])
26
+            Caller::call($callableConfig, [ $event->command, $event->exitCode, $event->input, $event->output ])
27 27
         );
28 28
 
29 29
         $span->end();
Please login to merge, or discard this patch.