Skip to content

Commit c890c4c

Browse files
committed
Fixed CS errors. Added cs-check, cs-fix and test scripts
1 parent 7f70525 commit c890c4c

30 files changed

Lines changed: 28 additions & 46 deletions

composer.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,16 @@
5151
"suggest": {
5252
"ext-pdo_sqlite": "DebugKit needs to store panel data in a database. SQLite is simple and easy to use."
5353
},
54-
"prefer-stable": true,
55-
"minimum-stability": "dev"
54+
"scripts": {
55+
"cs-check": [
56+
"phpcs --colors --parallel=16 -p src/ tests/"
57+
],
58+
"cs-fix": [
59+
"phpcbf --colors --parallel=16 -p src/ tests/"
60+
],
61+
"test": [
62+
"phpunit"
63+
]
64+
},
65+
"prefer-stable": true
5666
}

src/Cache/Engine/DebugEngine.php

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
1212
* @link http://cakephp.org CakePHP(tm) Project
1313
* @license http://www.opensource.org/licenses/mit-license.php MIT License
14-
*
1514
*/
1615
namespace DebugKit\Cache\Engine;
1716

@@ -143,7 +142,7 @@ protected function log(string $operation, float $duration, ?string $key = null):
143142
}
144143

145144
/**
146-
* {@inheritDoc}
145+
* @inheritDoc
147146
*/
148147
public function set($key, $value, $ttl = null): bool
149148
{
@@ -158,7 +157,7 @@ public function set($key, $value, $ttl = null): bool
158157
}
159158

160159
/**
161-
* {@inheritDoc}
160+
* @inheritDoc
162161
*/
163162
public function setMultiple($data, $ttl = null): bool
164163
{
@@ -173,7 +172,7 @@ public function setMultiple($data, $ttl = null): bool
173172
}
174173

175174
/**
176-
* {@inheritDoc}
175+
* @inheritDoc
177176
*/
178177
public function get($key, $default = null)
179178
{
@@ -192,7 +191,7 @@ public function get($key, $default = null)
192191
}
193192

194193
/**
195-
* {@inheritDoc}
194+
* @inheritDoc
196195
*/
197196
public function getMultiple($keys, $default = null): iterable
198197
{
@@ -207,7 +206,7 @@ public function getMultiple($keys, $default = null): iterable
207206
}
208207

209208
/**
210-
* {@inheritDoc}
209+
* @inheritDoc
211210
*/
212211
public function increment(string $key, int $offset = 1)
213212
{
@@ -222,7 +221,7 @@ public function increment(string $key, int $offset = 1)
222221
}
223222

224223
/**
225-
* {@inheritDoc}
224+
* @inheritDoc
226225
*/
227226
public function decrement(string $key, int $offset = 1)
228227
{
@@ -237,7 +236,7 @@ public function decrement(string $key, int $offset = 1)
237236
}
238237

239238
/**
240-
* {@inheritDoc}
239+
* @inheritDoc
241240
*/
242241
public function delete($key): bool
243242
{
@@ -252,7 +251,7 @@ public function delete($key): bool
252251
}
253252

254253
/**
255-
* {@inheritDoc}
254+
* @inheritDoc
256255
*/
257256
public function deleteMultiple($data): bool
258257
{
@@ -267,7 +266,7 @@ public function deleteMultiple($data): bool
267266
}
268267

269268
/**
270-
* {@inheritDoc}
269+
* @inheritDoc
271270
*/
272271
public function clear(): bool
273272
{
@@ -282,7 +281,7 @@ public function clear(): bool
282281
}
283282

284283
/**
285-
* {@inheritDoc}
284+
* @inheritDoc
286285
*/
287286
public function groups(): array
288287
{
@@ -316,7 +315,7 @@ public function setConfig($key, $value = null, $merge = true)
316315
}
317316

318317
/**
319-
* {@inheritDoc}
318+
* @inheritDoc
320319
*/
321320
public function clearGroup(string $group): bool
322321
{

src/Controller/ComposerController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
class ComposerController extends DebugKitController
2727
{
2828
/**
29-
* {@inheritDoc}
29+
* @inheritDoc
3030
*/
3131
public function initialize(): void
3232
{

src/DebugInclude.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
/**
2121
* Contains methods for Providing list of files.
22-
*
2322
*/
2423
class DebugInclude
2524
{

src/DebugMemory.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
/**
2121
* Contains methods for Profiling memory usage.
22-
*
2322
*/
2423
class DebugMemory
2524
{

src/DebugTimer.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
/**
2121
* Contains methods for Profiling and creating timers.
22-
*
2322
*/
2423
class DebugTimer
2524
{

src/Log/Engine/DebugKitLog.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
/**
2020
* A CakeLog listener which saves having to munge files or other configured loggers.
21-
*
2221
*/
2322
class DebugKitLog extends BaseLog
2423
{

src/Mailer/SentMailResult.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
/**
1818
* Represents the result of an already sent email
19-
*
2019
*/
2120
class SentMailResult extends AbstractResult
2221
{

src/Panel/CachePanel.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
1212
* @link http://cakephp.org CakePHP(tm) Project
1313
* @license http://www.opensource.org/licenses/mit-license.php MIT License
14-
*
1514
*/
1615
namespace DebugKit\Panel;
1716

src/Panel/DeprecationsPanel.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
/**
2323
* Provides a list of deprecated methods for the current request
24-
*
2524
*/
2625
class DeprecationsPanel extends DebugPanel
2726
{

0 commit comments

Comments
 (0)