Completed
Push — master ( af7982...62094a )
by Joe
02:59
created
src/WmiScripting/config/connections.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 return [
4
-  'default' => 'local',
4
+    'default' => 'local',
5 5
 
6
-  'servers' => [
7
-      'local' => [
8
-          'server'          => '.',
9
-          'namespace'       => 'Root\CIMv2',
10
-          'user'            => null,
11
-          'password'        => null,
12
-          'locale'          => null,
13
-          'authority'       => null,
14
-          'security_flags'  => null,
15
-      ],
16
-  ],
6
+    'servers' => [
7
+        'local' => [
8
+            'server'          => '.',
9
+            'namespace'       => 'Root\CIMv2',
10
+            'user'            => null,
11
+            'password'        => null,
12
+            'locale'          => null,
13
+            'authority'       => null,
14
+            'security_flags'  => null,
15
+        ],
16
+    ],
17 17
 ];
Please login to merge, or discard this patch.
src/WmiScripting/Testing/Wmi/ModelProperties.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         $reflectionClass = new ReflectionClass($class = new $this->class_name());
39 39
 
40 40
         $this->properties = (new ArrayCollection($reflectionClass->getProperties()))->mapWithKeys(
41
-            function (ReflectionProperty $property) use ($class, $reflectionClass) {
41
+            function(ReflectionProperty $property) use ($class, $reflectionClass) {
42 42
                 return [$property->name => [
43 43
                     'name'      => $property->name,
44 44
                     'origin'    => $this->getPropertyOrigin($property, $reflectionClass)->getName(),
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
                     'value'      => $class->getAttribute($property->name),
48 48
                 ]];
49 49
             }
50
-        )->diffKeys($class->getHidden())->filter(function ($property) {
50
+        )->diffKeys($class->getHidden())->filter(function($property) {
51 51
             return $property['origin'] !== Win32Model::class;
52 52
         });
53 53
     }
Please login to merge, or discard this patch.
src/WmiScripting/Testing/Wmi/Win32ModelFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         while ($count) {
36 36
             $modelFakes->add(new ModelFake([
37 37
                 'properties'  => $factory->fillAttributes(new ModelProperties($class_name)),
38
-                'derivations' => array_filter(class_parents($class_name), function ($parent) {
38
+                'derivations' => array_filter(class_parents($class_name), function($parent) {
39 39
                     return $parent !== Win32Model::class;
40 40
                 }),
41 41
                 'qualifiers' => new ArrayCollection([
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 
76 76
     protected function fillAttributes(ModelProperties $details)
77 77
     {
78
-        return $details->getProperties()->map(function ($property) {
78
+        return $details->getProperties()->map(function($property) {
79 79
             $value = null;
80 80
 
81 81
             if (is_array($property['value']) && empty($property['value'])) {
Please login to merge, or discard this patch.
src/WmiScripting/Win32Model.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -235,7 +235,7 @@
 block discarded – undo
235 235
      */
236 236
     protected function constantToStringCallback($constant_class)
237 237
     {
238
-        return function ($constant) use ($constant_class) {
238
+        return function($constant) use ($constant_class) {
239 239
             if (trim($type = call_user_func_array($constant_class . '::string', [$constant])) === '') {
240 240
                 return "[{$constant}] - UNKNOWN";
241 241
             }
Please login to merge, or discard this patch.