Completed
Pull Request — master (#71)
by Jindun
06:19
created
src/Service/Service.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      */
62 62
     public function __construct()
63 63
     {
64
-        $this->validatorSchema = \GuzzleHttp\json_decode((string)file_get_contents(__DIR__ . '/ServiceJsonSchema.json'), false);
64
+        $this->validatorSchema = \GuzzleHttp\json_decode((string) file_get_contents(__DIR__ . '/ServiceJsonSchema.json'), false);
65 65
     }
66 66
 
67 67
     /**
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
      */
117 117
     public function jsonSerialize(): array
118 118
     {
119
-        $jsonSerializeMap = function (JsonSerializable $obj): array {
119
+        $jsonSerializeMap = function(JsonSerializable $obj): array {
120 120
             return $obj->jsonSerialize();
121 121
         };
122 122
 
@@ -489,7 +489,7 @@  discard block
 block discarded – undo
489 489
 
490 490
     private function removeVolumesByType(string $type): void
491 491
     {
492
-        $filterFunction = function (Volume $vol) use ($type) {
492
+        $filterFunction = function(Volume $vol) use ($type) {
493 493
             return $vol->getType() !== $type;
494 494
         };
495 495
         $this->volumes = array_values(array_filter($this->volumes, $filterFunction));
@@ -512,7 +512,7 @@  discard block
 block discarded – undo
512 512
 
513 513
     public function removeVolumesBySource(string $source): void
514 514
     {
515
-        $filterFunction = function (Volume $vol) use ($source) {
515
+        $filterFunction = function(Volume $vol) use ($source) {
516 516
             return $vol->getSource() !== $source;
517 517
         };
518 518
         $this->volumes = array_values(array_filter($this->volumes, $filterFunction));
Please login to merge, or discard this patch.