Completed
Branch EDTR/gql-server-side (8c11b8)
by
unknown
25:44 queued 17:18
created
core/services/graphql/GraphQLManager.php 1 patch
Indentation   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -16,58 +16,58 @@
 block discarded – undo
16 16
 class GraphQLManager
17 17
 {
18 18
 
19
-    /**
20
-     * @var TypesManager $types_manager
21
-     */
22
-    protected $types_manager;
19
+	/**
20
+	 * @var TypesManager $types_manager
21
+	 */
22
+	protected $types_manager;
23 23
 
24
-    /**
25
-     * @var InputsManager $inputs_manager
26
-     */
27
-    protected $inputs_manager;
24
+	/**
25
+	 * @var InputsManager $inputs_manager
26
+	 */
27
+	protected $inputs_manager;
28 28
 
29
-    /**
30
-     * @var EnumsManager $enums_manager
31
-     */
32
-    protected $enums_manager;
29
+	/**
30
+	 * @var EnumsManager $enums_manager
31
+	 */
32
+	protected $enums_manager;
33 33
 
34
-    /**
35
-     * @var ConnectionsManager $connections_manager
36
-     */
37
-    protected $connections_manager;
34
+	/**
35
+	 * @var ConnectionsManager $connections_manager
36
+	 */
37
+	protected $connections_manager;
38 38
 
39 39
 
40
-    /**
41
-     * GraphQLManager constructor.
42
-     *
43
-     * @param TypesManager $types_manager
44
-     * @param InputsManager $inputs_manager
45
-     * @param EnumsManager $enums_manager
46
-     * @param ConnectionsManager $connections_manager
47
-     */
48
-    public function __construct(
49
-        TypesManager $types_manager,
50
-        InputsManager $inputs_manager,
51
-        EnumsManager $enums_manager,
52
-        ConnectionsManager $connections_manager
53
-    ) {
54
-        $this->types_manager = $types_manager;
55
-        $this->inputs_manager = $inputs_manager;
56
-        $this->enums_manager = $enums_manager;
57
-        $this->connections_manager = $connections_manager;
58
-    }
40
+	/**
41
+	 * GraphQLManager constructor.
42
+	 *
43
+	 * @param TypesManager $types_manager
44
+	 * @param InputsManager $inputs_manager
45
+	 * @param EnumsManager $enums_manager
46
+	 * @param ConnectionsManager $connections_manager
47
+	 */
48
+	public function __construct(
49
+		TypesManager $types_manager,
50
+		InputsManager $inputs_manager,
51
+		EnumsManager $enums_manager,
52
+		ConnectionsManager $connections_manager
53
+	) {
54
+		$this->types_manager = $types_manager;
55
+		$this->inputs_manager = $inputs_manager;
56
+		$this->enums_manager = $enums_manager;
57
+		$this->connections_manager = $connections_manager;
58
+	}
59 59
 
60 60
 
61
-    /**
62
-     * @throws CollectionDetailsException
63
-     * @throws CollectionLoaderException
64
-     * @since $VID:$
65
-     */
66
-    public function init()
67
-    {
68
-        $this->types_manager->init();
69
-        $this->inputs_manager->init();
70
-        $this->enums_manager->init();
71
-        $this->connections_manager->init();
72
-    }
61
+	/**
62
+	 * @throws CollectionDetailsException
63
+	 * @throws CollectionLoaderException
64
+	 * @since $VID:$
65
+	 */
66
+	public function init()
67
+	{
68
+		$this->types_manager->init();
69
+		$this->inputs_manager->init();
70
+		$this->enums_manager->init();
71
+		$this->connections_manager->init();
72
+	}
73 73
 }
Please login to merge, or discard this patch.
core/services/graphql/InputsManager.php 2 patches
Indentation   +53 added lines, -53 removed lines patch added patch discarded remove patch
@@ -18,65 +18,65 @@
 block discarded – undo
18 18
 class InputsManager
19 19
 {
20 20
 
21
-    /**
22
-     * @var InputCollection|InputInterface[] $inputs
23
-     */
24
-    private $inputs;
21
+	/**
22
+	 * @var InputCollection|InputInterface[] $inputs
23
+	 */
24
+	private $inputs;
25 25
 
26 26
 
27
-    /**
28
-     * InputsManager constructor.
29
-     *
30
-     * @param InputCollection|InputInterface[] $inputs
31
-     */
32
-    public function __construct(InputCollection $inputs)
33
-    {
34
-        $this->inputs = $inputs;
35
-    }
27
+	/**
28
+	 * InputsManager constructor.
29
+	 *
30
+	 * @param InputCollection|InputInterface[] $inputs
31
+	 */
32
+	public function __construct(InputCollection $inputs)
33
+	{
34
+		$this->inputs = $inputs;
35
+	}
36 36
 
37 37
 
38
-    /**
39
-     * @throws CollectionDetailsException
40
-     * @throws CollectionLoaderException
41
-     * @since $VID:$
42
-     */
43
-    public function init()
44
-    {
45
-        $this->inputs->loadInputs();
46
-        add_action('graphql_register_types', [$this, 'configureInputs'], 9);
47
-    }
38
+	/**
39
+	 * @throws CollectionDetailsException
40
+	 * @throws CollectionLoaderException
41
+	 * @since $VID:$
42
+	 */
43
+	public function init()
44
+	{
45
+		$this->inputs->loadInputs();
46
+		add_action('graphql_register_types', [$this, 'configureInputs'], 9);
47
+	}
48 48
 
49 49
 
50
-    /**
51
-     * @since $VID:$
52
-     */
53
-    public function configureInputs()
54
-    {
55
-        // loop through the collection of inputs and register their fields
56
-        foreach ($this->inputs as $input) {
57
-            $this->registerInput($input);
58
-        }
59
-    }
50
+	/**
51
+	 * @since $VID:$
52
+	 */
53
+	public function configureInputs()
54
+	{
55
+		// loop through the collection of inputs and register their fields
56
+		foreach ($this->inputs as $input) {
57
+			$this->registerInput($input);
58
+		}
59
+	}
60 60
 
61 61
 
62
-    /**
63
-     * @param InputInterface $input
64
-     * @since $VID:$
65
-     */
66
-    public function registerInput(InputInterface $input)
67
-    {
68
-        $inputFields = [];
69
-        foreach ($input->fields() as $field) {
70
-            $fieldName = $field->name();
71
-            $inputFields[ $fieldName ] = $field->toArray();
72
-        }
73
-        // Register the input type.
74
-        register_graphql_input_type(
75
-            $input->name(),
76
-            [
77
-                'description' => $input->description(),
78
-                'fields'      => $inputFields,
79
-            ]
80
-        );
81
-    }
62
+	/**
63
+	 * @param InputInterface $input
64
+	 * @since $VID:$
65
+	 */
66
+	public function registerInput(InputInterface $input)
67
+	{
68
+		$inputFields = [];
69
+		foreach ($input->fields() as $field) {
70
+			$fieldName = $field->name();
71
+			$inputFields[ $fieldName ] = $field->toArray();
72
+		}
73
+		// Register the input type.
74
+		register_graphql_input_type(
75
+			$input->name(),
76
+			[
77
+				'description' => $input->description(),
78
+				'fields'      => $inputFields,
79
+			]
80
+		);
81
+	}
82 82
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
         $inputFields = [];
69 69
         foreach ($input->fields() as $field) {
70 70
             $fieldName = $field->name();
71
-            $inputFields[ $fieldName ] = $field->toArray();
71
+            $inputFields[$fieldName] = $field->toArray();
72 72
         }
73 73
         // Register the input type.
74 74
         register_graphql_input_type(
Please login to merge, or discard this patch.