Skip to content

Commit 32ad283

Browse files
committed
Fix: Use backticks
1 parent 242df8f commit 32ad283

16 files changed

+282
-282
lines changed

accepted/PSR-0.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Example Implementation
5151
Below is an example function to simply demonstrate how the above
5252
proposed standards are autoloaded.
5353

54-
~~~php
54+
```php
5555
<?php
5656

5757
function autoload($className)
@@ -69,7 +69,7 @@ function autoload($className)
6969
require $fileName;
7070
}
7171
spl_autoload_register('autoload');
72-
~~~
72+
```
7373

7474
SplClassLoader Implementation
7575
-----------------------------

accepted/PSR-1-basic-coding-standard.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ reading from or writing to a file, and so on.
5959
The following is an example of a file with both declarations and side effects;
6060
i.e, an example of what to avoid:
6161

62-
~~~php
62+
```php
6363
<?php
6464
// side effect: change ini settings
6565
ini_set('error_reporting', E_ALL);
@@ -75,12 +75,12 @@ function foo()
7575
{
7676
// function body
7777
}
78-
~~~
78+
```
7979

8080
The following example is of a file that contains declarations without side
8181
effects; i.e., an example of what to emulate:
8282

83-
~~~php
83+
```php
8484
<?php
8585
// declaration
8686
function foo()
@@ -95,7 +95,7 @@ if (! function_exists('bar')) {
9595
// function body
9696
}
9797
}
98-
~~~
98+
```
9999

100100
## 3. Namespace and Class Names
101101

@@ -110,26 +110,26 @@ Code written for PHP 5.3 and after MUST use formal namespaces.
110110

111111
For example:
112112

113-
~~~php
113+
```php
114114
<?php
115115
// PHP 5.3 and later:
116116
namespace Vendor\Model;
117117

118118
class Foo
119119
{
120120
}
121-
~~~
121+
```
122122

123123
Code written for 5.2.x and before SHOULD use the pseudo-namespacing convention
124124
of `Vendor_` prefixes on class names.
125125

126-
~~~php
126+
```php
127127
<?php
128128
// PHP 5.2.x and earlier:
129129
class Vendor_Model_Foo
130130
{
131131
}
132-
~~~
132+
```
133133

134134
## 4. Class Constants, Properties, and Methods
135135

@@ -140,7 +140,7 @@ The term "class" refers to all classes, interfaces, and traits.
140140
Class constants MUST be declared in all upper case with underscore separators.
141141
For example:
142142

143-
~~~php
143+
```php
144144
<?php
145145
namespace Vendor\Model;
146146

@@ -149,7 +149,7 @@ class Foo
149149
const VERSION = '1.0';
150150
const DATE_APPROVED = '2012-06-01';
151151
}
152-
~~~
152+
```
153153

154154
### 4.2. Properties
155155

accepted/PSR-11-container.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Projects requiring an implementation should require `psr/container-implementatio
6868
<a name="container-interface"></a>
6969
### 3.1. `Psr\Container\ContainerInterface`
7070

71-
~~~php
71+
```php
7272
<?php
7373
namespace Psr\Container;
7474

@@ -102,7 +102,7 @@ interface ContainerInterface
102102
*/
103103
public function has($id);
104104
}
105-
~~~
105+
```
106106

107107

108108
Since [psr/container version 1.1](https://packagist.org/packages/psr/container#1.1.0),
@@ -115,7 +115,7 @@ the above interface has been updated to add return type hints (but only to the
115115
<a name="container-exception"></a>
116116
### 3.2. `Psr\Container\ContainerExceptionInterface`
117117

118-
~~~php
118+
```php
119119
<?php
120120
namespace Psr\Container;
121121

@@ -125,12 +125,12 @@ namespace Psr\Container;
125125
interface ContainerExceptionInterface
126126
{
127127
}
128-
~~~
128+
```
129129

130130
<a name="not-found-exception"></a>
131131
### 3.3. `Psr\Container\NotFoundExceptionInterface`
132132

133-
~~~php
133+
```php
134134
<?php
135135
namespace Psr\Container;
136136

@@ -140,4 +140,4 @@ namespace Psr\Container;
140140
interface NotFoundExceptionInterface extends ContainerExceptionInterface
141141
{
142142
}
143-
~~~
143+
```

0 commit comments

Comments
 (0)