Passed
Pull Request — master (#656)
by Abdul Malik
09:21
created
src/Dumper/src/Renderer/ConsoleRenderer.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     /**
24 24
      * Every dumped element is wrapped using this pattern.
25 25
      */
26
-    protected string $element = '%s%s' . Color::RESET;
26
+    protected string $element = '%s%s'.Color::RESET;
27 27
 
28 28
     /**
29 29
      * Set of styles associated with different dumping properties.
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      */
61 61
     public function apply($element, string $type, string $context = ''): string
62 62
     {
63
-        if (!empty($style = $this->getStyle($type, $context))) {
63
+        if (!empty($style = $this->getStyle($type, $context))){
64 64
             return sprintf($this->element, $style, $element);
65 65
         }
66 66
 
@@ -82,15 +82,15 @@  discard block
 block discarded – undo
82 82
      */
83 83
     private function getStyle(string $type, string $context): string
84 84
     {
85
-        if (isset($this->styles[$type][$context])) {
85
+        if (isset($this->styles[$type][$context])){
86 86
             return $this->styles[$type][$context];
87 87
         }
88 88
 
89
-        if (isset($this->styles[$type]['common'])) {
89
+        if (isset($this->styles[$type]['common'])){
90 90
             return $this->styles[$type]['common'];
91 91
         }
92 92
 
93
-        if (isset($this->styles[$type]) && is_string($this->styles[$type])) {
93
+        if (isset($this->styles[$type]) && is_string($this->styles[$type])){
94 94
             return $this->styles[$type];
95 95
         }
96 96
 
Please login to merge, or discard this patch.
src/Broadcasting/src/Driver/AbstractBroadcast.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     protected function toArray($entries): array
30 30
     {
31
-        switch (true) {
31
+        switch (true){
32 32
             case \is_array($entries):
33 33
                 return $entries;
34 34
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,8 @@
 block discarded – undo
28 28
      */
29 29
     protected function toArray($entries): array
30 30
     {
31
-        switch (true) {
31
+        switch (true)
32
+        {
32 33
             case \is_array($entries):
33 34
                 return $entries;
34 35
 
Please login to merge, or discard this patch.
src/Broadcasting/src/Bootloader/WebsocketsBootloader.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
         ));
30 30
 
31 31
 
32
-        if ($config->getAuthorizationPath() !== null) {
32
+        if ($config->getAuthorizationPath() !== null){
33 33
             $http->addMiddleware(AuthorizationMiddleware::class);
34 34
         }
35 35
     }
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,8 @@
 block discarded – undo
29 29
         ));
30 30
 
31 31
 
32
-        if ($config->getAuthorizationPath() !== null) {
32
+        if ($config->getAuthorizationPath() !== null)
33
+        {
33 34
             $http->addMiddleware(AuthorizationMiddleware::class);
34 35
         }
35 36
     }
Please login to merge, or discard this patch.
src/Queue/src/QueueableDetector.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     {
25 25
         $reflection = new ReflectionClass($object);
26 26
 
27
-        if ($reflection->implementsInterface(QueueableInterface::class)) {
27
+        if ($reflection->implementsInterface(QueueableInterface::class)){
28 28
             return true;
29 29
         }
30 30
 
@@ -39,11 +39,11 @@  discard block
 block discarded – undo
39 39
         $reflection = new ReflectionClass($object);
40 40
 
41 41
         $attribute = $this->reader->firstClassMetadata($reflection, Queueable::class);
42
-        if ($attribute !== null) {
42
+        if ($attribute !== null){
43 43
             return $attribute->queue;
44 44
         }
45 45
 
46
-        if (\is_object($object) && $reflection->hasMethod('getQueue')) {
46
+        if (\is_object($object) && $reflection->hasMethod('getQueue')){
47 47
             return $reflection->getMethod('getQueue')->invoke($object);
48 48
         }
49 49
 
Please login to merge, or discard this patch.
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,8 @@  discard block
 block discarded – undo
24 24
     {
25 25
         $reflection = new ReflectionClass($object);
26 26
 
27
-        if ($reflection->implementsInterface(QueueableInterface::class)) {
27
+        if ($reflection->implementsInterface(QueueableInterface::class))
28
+        {
28 29
             return true;
29 30
         }
30 31
 
@@ -39,11 +40,13 @@  discard block
 block discarded – undo
39 40
         $reflection = new ReflectionClass($object);
40 41
 
41 42
         $attribute = $this->reader->firstClassMetadata($reflection, Queueable::class);
42
-        if ($attribute !== null) {
43
+        if ($attribute !== null)
44
+        {
43 45
             return $attribute->queue;
44 46
         }
45 47
 
46
-        if (\is_object($object) && $reflection->hasMethod('getQueue')) {
48
+        if (\is_object($object) && $reflection->hasMethod('getQueue'))
49
+        {
47 50
             return $reflection->getMethod('getQueue')->invoke($object);
48 51
         }
49 52
 
Please login to merge, or discard this patch.
rector.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 
11 11
 return static function (RectorConfig $rectorConfig): void {
12 12
     $rectorConfig->paths([
13
-        __DIR__ . '/src/*/src',
13
+        __DIR__.'/src/*/src',
14 14
     ]);
15 15
 
16 16
     $rectorConfig->importNames();
@@ -19,13 +19,13 @@  discard block
 block discarded – undo
19 19
         CountOnNullRector::class,
20 20
 
21 21
         RemoveUnusedPrivateMethodRector::class => [
22
-            __DIR__ . '/src/Boot/src/Bootloader/ConfigurationBootloader.php',
23
-            __DIR__ . '/src/Broadcasting/src/Bootloader/BroadcastingBootloader.php',
22
+            __DIR__.'/src/Boot/src/Bootloader/ConfigurationBootloader.php',
23
+            __DIR__.'/src/Broadcasting/src/Bootloader/BroadcastingBootloader.php',
24 24
         ],
25 25
 
26 26
         // deprecated classes
27
-        __DIR__ . '/src/Http/src/Exception/EmitterException.php',
28
-        __DIR__ . '/src/Dumper/src/Exception/DumperException.php',
27
+        __DIR__.'/src/Http/src/Exception/EmitterException.php',
28
+        __DIR__.'/src/Dumper/src/Exception/DumperException.php',
29 29
     ]);
30 30
     $rectorConfig->sets([LevelSetList::UP_TO_PHP_74, SetList::DEAD_CODE]);
31 31
 };
Please login to merge, or discard this patch.