Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 076cc6d

Browse files
[*]: Remove commented sniff's [*]: Fix misspelling in README.md
1 parent e0561b0 commit 076cc6d

File tree

2 files changed

+14
-16
lines changed

2 files changed

+14
-16
lines changed

‎README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ DotArray::create(['config' => ['some.dotted.key' => 'value']])->get('config.{som
112112
// Multiple keys.
113113
$dot->clear([
114114
'books.{sci-fi & fantasy}',
115-
'books.{childre\'s books}'
115+
'books.{children\'s books}'
116116
]);
117117
118118
// Vanilla PHP.
@@ -125,7 +125,7 @@ DotArray::create(['config' => ['some.dotted.key' => 'value']])->get('config.{som
125125
- ```php
126126
$dot->delete('books.{sci-fi & fantasy}');
127127
$dot->delete('books.{sci-fi & fantasy}.0.name');
128-
$dot->delete(['books.{sci-fi & fantasy}.0', 'books.{childre\'s books}.0']);
128+
$dot->delete(['books.{sci-fi & fantasy}.0', 'books.{children\'s books}.0']);
129129
```
130130
131131
- **merge**:
@@ -160,7 +160,7 @@ DotArray::create(['config' => ['some.dotted.key' => 'value']])->get('config.{som
160160
The signature of the callable must be: `function ($value, $key)`.
161161
162162
- ```php
163-
$book = $dot->get('books.{childre\'s books}')->find(function ($value, $key) {
163+
$book = $dot->get('books.{children\'s books}')->find(function ($value, $key) {
164164
return $value['price'] > 0;
165165
});
166166
```
@@ -170,7 +170,7 @@ DotArray::create(['config' => ['some.dotted.key' => 'value']])->get('config.{som
170170
The signature of the callable must be: `function ($value, $key)`
171171
172172
- ```php
173-
$books = $dot->get('books.{childre\'s books}')->filter(function ($value, $key) {
173+
$books = $dot->get('books.{children\'s books}')->filter(function ($value, $key) {
174174
return $value['name'] === 'Harry Potter and the Order of the Phoenix';
175175
});
176176
@@ -195,13 +195,13 @@ DotArray::create(['config' => ['some.dotted.key' => 'value']])->get('config.{som
195195
- [ not-between ]
196196
*/
197197
// Example 1.
198-
$books = $dot->get('books.{childre\'s books}')->filterBy('price', 'between', 5, 12);
198+
$books = $dot->get('books.{children\'s books}')->filterBy('price', 'between', 5, 12);
199199
200200
// Example 2.
201-
$books = $dot->get('books.{childre\'s books}')->filterBy('price', '>', 10);
201+
$books = $dot->get('books.{children\'s books}')->filterBy('price', '>', 10);
202202
203203
// Example 3.
204-
$books = $dot->get('books.{childre\'s books}')->filterBy('price', 'in', [8.5, 15.49]);
204+
$books = $dot->get('books.{children\'s books}')->filterBy('price', 'in', [8.5, 15.49]);
205205
```
206206
207207
- **where**:
@@ -227,16 +227,16 @@ DotArray::create(['config' => ['some.dotted.key' => 'value']])->get('config.{som
227227
*/
228228
229229
// Example 1. (using the signature: [property, comparisonOperator, ...value])
230-
$books = $dot->get('books.{childre\'s books}')->where(['price', 'between', 5, 12]);
230+
$books = $dot->get('books.{children\'s books}')->where(['price', 'between', 5, 12]);
231231
232232
// Example 2. (using the signature: [property, comparisonOperator, ...value])
233-
$books = $dot->get('books.{childre\'s books}')->where(['price', '>', 10]);
233+
$books = $dot->get('books.{children\'s books}')->where(['price', '>', 10]);
234234
235235
// Example 3. (using the signature: [property, comparisonOperator, ...value])
236-
$books = $dot->get('books.{childre\'s books}')->where(['price', 'in', [8.5, 15.49]]);
236+
$books = $dot->get('books.{children\'s books}')->where(['price', 'in', [8.5, 15.49]]);
237237
238238
// Example 4. (using the signature: \Closure)
239-
$books = $dot->get('books.{childre\'s books}')->where(function ($value, $key) {
239+
$books = $dot->get('books.{children\'s books}')->where(function ($value, $key) {
240240
return $value['name'] === 'Harry Potter and the Order of the Phoenix';
241241
});
242242
```
@@ -337,7 +337,7 @@ $dummyArray = [
337337
],
338338
],
339339

340-
'childre\'s books' =>
340+
'children\'s books' =>
341341
[
342342
[
343343
'name' => 'Harry Potter and the Order of the Phoenix',

‎phpcs.xml.dist

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
<exclude-pattern>*/vendor/*</exclude-pattern>
1313

1414
<!-- You can hard-code custom php.ini settings into your custom standard. -->
15-
<ini name="memory_limit" value="128M"/>
15+
<ini name="memory_limit" value="256M"/>
1616

1717
<!-- Call with arguments -->
1818
<arg name="report" value="full"/>
1919
<arg name="extensions" value="php"/>
20-
<arg name="parallel" value="50"/>
20+
<arg name="parallel" value="10"/>
2121
<arg name="encoding" value="utf-8"/>
2222
<arg name="tab-width" value="4"/>
2323
<arg value="np"/>
@@ -156,8 +156,6 @@
156156
<!-- === Commenting Sniffs === -->
157157
<!-- ========================= -->
158158

159-
<!-- <rule ref="Squiz.Commenting.ClosingDeclarationComment"/> -->
160-
161159
<rule ref="Squiz.Commenting.BlockComment">
162160
<exclude name="Squiz.Commenting.BlockComment.NoEmptyLineAfter"/>
163161
<exclude name="Squiz.Commenting.BlockComment.SingleLine"/>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /