Passed
Pull Request — master (#661)
by Maxim
07:32
created
src/Http/src/Config/HttpConfig.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,6 +58,6 @@
 block discarded – undo
58 58
      */
59 59
     public function getChunkSize(): ?int
60 60
     {
61
-        return !\is_null($this->config['chunkSize']) ? (int) $this->config['chunkSize'] : null;
61
+        return !\is_null($this->config['chunkSize']) ? (int)$this->config['chunkSize'] : null;
62 62
     }
63 63
 }
Please login to merge, or discard this patch.
src/Framework/Bootloader/Http/HttpBootloader.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -82,12 +82,12 @@  discard block
 block discarded – undo
82 82
             $kernel->addDispatcher($factory->make(SapiDispatcher::class));
83 83
         });
84 84
 
85
-        if (!class_exists('Spiral\RoadRunnerBridge\Http\Dispatcher')) {
86
-            if (class_exists(PSR7Client::class)) {
85
+        if (!class_exists('Spiral\RoadRunnerBridge\Http\Dispatcher')){
86
+            if (class_exists(PSR7Client::class)){
87 87
                 $kernel->addDispatcher($factory->make(LegacyRrDispatcher::class));
88 88
             }
89 89
 
90
-            if (class_exists(PSR7Worker::class)) {
90
+            if (class_exists(PSR7Worker::class)){
91 91
                 $kernel->addDispatcher($factory->make(RrDispatcher::class));
92 92
             }
93 93
         }
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
     {
132 132
         $emitter = new SapiEmitter();
133 133
 
134
-        if (($chunkSize = $config->getChunkSize()) !== null) {
134
+        if (($chunkSize = $config->getChunkSize()) !== null){
135 135
             $emitter->bufferSize = $chunkSize;
136 136
         }
137 137
 
Please login to merge, or discard this patch.
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -82,12 +82,15 @@  discard block
 block discarded – undo
82 82
             $kernel->addDispatcher($factory->make(SapiDispatcher::class));
83 83
         });
84 84
 
85
-        if (!class_exists('Spiral\RoadRunnerBridge\Http\Dispatcher')) {
86
-            if (class_exists(PSR7Client::class)) {
85
+        if (!class_exists('Spiral\RoadRunnerBridge\Http\Dispatcher'))
86
+        {
87
+            if (class_exists(PSR7Client::class))
88
+            {
87 89
                 $kernel->addDispatcher($factory->make(LegacyRrDispatcher::class));
88 90
             }
89 91
 
90
-            if (class_exists(PSR7Worker::class)) {
92
+            if (class_exists(PSR7Worker::class))
93
+            {
91 94
                 $kernel->addDispatcher($factory->make(RrDispatcher::class));
92 95
             }
93 96
         }
@@ -131,7 +134,8 @@  discard block
 block discarded – undo
131 134
     {
132 135
         $emitter = new SapiEmitter();
133 136
 
134
-        if (($chunkSize = $config->getChunkSize()) !== null) {
137
+        if (($chunkSize = $config->getChunkSize()) !== null)
138
+        {
135 139
             $emitter->bufferSize = $chunkSize;
136 140
         }
137 141
 
Please login to merge, or discard this patch.