Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–8 unchanged (8 lines)
9use OCP\Http\Client\IClientService;
10use OCP\Remote\Api\IApiFactory;
11use OCP\Remote\ICredentials;
12use OCP\Remote\IInstance;
13
14class ApiFactory implements IApiFactory {
15 /** @var IClientService */
16 private $clientService;
17
18 public function __construct(IClientService $clientService) {
19 $this->clientService = $clientService;
20 }
21
22 public function getApiCollection(IInstance $instance, ICredentials $credentials) {
23 return new ApiCollection($instance, $credentials, $this->clientService);
24 }
25}
26

After

…lines 1–8 unchanged (8 lines)
9use OCP\Http\Client\IClientService;
10use OCP\Remote\Api\IApiFactory;
11use OCP\Remote\ICredentials;
12use OCP\Remote\IInstance;
13
14class ApiFactory implements IApiFactory {
15 public function __construct(
16 private IClientService $clientService,
17 ) {
18 }
19
20 public function getApiCollection(IInstance $instance, ICredentials $credentials) {
21 return new ApiCollection($instance, $credentials, $this->clientService);
22 }
23}
24

Before

program
php_tag "<?php"
comment "/**\n * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextc"...
namespace_definition
namespace "namespace"
namespace_name
name "OC"
\ "\\"
name "Remote"
\ "\\"
name "Api"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "OCP"
\ "\\"
name "Http"
\ "\\"
name "Client"
\ "\\"
name "IClientService"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "OCP"
\ "\\"
name "Remote"
\ "\\"
name "Api"
\ "\\"
name "IApiFactory"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "OCP"
\ "\\"
name "Remote"
\ "\\"
name "ICredentials"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "OCP"
\ "\\"
name "Remote"
\ "\\"
name "IInstance"
; ";"
class_declaration
class "class"
name "ApiFactory"
class_interface_clause
implements "implements"
name "IApiFactory"
declaration_list
{ "{"
comment "/** @var IClientService */"
property_declaration
visibility_modifier
private "private"
property_element
variable_name
$ "$"
name "clientService"
; ";"
method_declaration
visibility_modifier
public "public"
function "function"
name "__construct"
formal_parameters
( "("
simple_parameter
named_type
name "IClientService"
variable_name
$ "$"
name "clientService"
) ")"
compound_statement
{ "{"
expression_statement
assignment_expression
member_access_expression
variable_name
$ "$"
name "this"
-> "->"
name "clientService"
= "="
variable_name
$ "$"
name "clientService"
; ";"
} "}"
method_declaration (+50 nodes collapsed)
} "}"

After

program
php_tag "<?php"
comment "/**\n * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextc"...
namespace_definition
namespace "namespace"
namespace_name
name "OC"
\ "\\"
name "Remote"
\ "\\"
name "Api"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "OCP"
\ "\\"
name "Http"
\ "\\"
name "Client"
\ "\\"
name "IClientService"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "OCP"
\ "\\"
name "Remote"
\ "\\"
name "Api"
\ "\\"
name "IApiFactory"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "OCP"
\ "\\"
name "Remote"
\ "\\"
name "ICredentials"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "OCP"
\ "\\"
name "Remote"
\ "\\"
name "IInstance"
; ";"
class_declaration
class "class"
name "ApiFactory"
class_interface_clause
implements "implements"
name "IApiFactory"
declaration_list
{ "{"
method_declaration
visibility_modifier
public "public"
function "function"
name "__construct"
formal_parameters
( "("
property_promotion_parameter
visibility_modifier
private "private"
named_type
name "IClientService"
variable_name
$ "$"
name "clientService"
, ","
) ")"
compound_statement
{ "{"
} "}"
method_declaration (+50 nodes collapsed)
} "}"