Skip to content

Commit fe56c80

Browse files
authored
Merge pull request #18 from andrew-demb/patch-1
Readme nitpicks (highlighting, syntax)
2 parents 42b2b24 + 05b3675 commit fe56c80

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ return [
3434

3535
## How it works
3636

37-
```
38-
Use Phpro\ApiProblem\Exception\ApiProblemException
37+
```php
38+
use Phpro\ApiProblem\Exception\ApiProblemException
3939
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
4040

41-
SomeController {
42-
41+
class SomeController
42+
{
4343
/**
4444
* @Route('/some-route', defaults={"_format" = "json"})
4545
*/
46-
someAction() {
46+
public function someAction() {
4747
throw new ApiProblemException(
4848
new HttpApiProblem('400', 'It aint all bad ...')
4949
);

0 commit comments

Comments
 (0)