Skip to content

Commit 9301b65

Browse files
committed
README uniform code style in example
1 parent 91c6d64 commit 9301b65

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,18 @@ Here is a small usage example:
3636

3737
```php
3838
// Load everything
39-
require_once( __DIR__ . "/vendor/autoload.php" );
39+
require_once( __DIR__ . '/vendor/autoload.php' );
4040

4141
// Initialise HTTP connection
4242
$api = new WikidataQueryApi( 'https://wdq.wmflabs.org/api' );
4343

4444
// Build helper tools
4545
$wikidataQueryFactory = new WikidataQueryFactory( $api );
46-
$simpleQueryService = $wikidataQueryFactory->newSimpleQueryService());
46+
$simpleQueryService = $wikidataQueryFactory->newSimpleQueryService() );
4747

4848
//Do a query that returns a list of ItemId
4949
//This query finds all the children (P40) of Charlemagne (Q3044)
5050
$itemIds = $simpleQueryService->doQuery(
51-
new ClaimQuery(new PropertyId('P17'), new ItemId('Q3044'));
51+
new ClaimQuery( new PropertyId( 'P17' ), new ItemId( 'Q3044' ) );
5252
);
5353
```

0 commit comments

Comments
 (0)