Initial commit: apps.prometeysev.ru

This commit is contained in:
root committed 2026-10-22 00:22:57 +03:00
commit 96ccabcd8b
6561 files changed
+1270349

No files matched your search

@@ -0,0 +1,34 @@
<?php
/**
* Tell me what worries you.
*/
namespace App\Person\Patient;
/**
* Hello World.
*
* This is a description.
*/
class Foo extends Bar
{
/**
* What are your thoughts?
*
* @var array $brain
*/
public $brain = [];
/**
* Tell me your thoughts.
*
* @return void
*/
public function dumpThoughts($thoughts)
{
/** @var array $thoughts */
foreach ($thoughts as $thought) {
/** @var string $thought */
echo $thought;
}
}
}
@@ -0,0 +1,34 @@
<?php
/**
* Tell me what worries you.
*/
namespace App\Person\Patient;
/**
* Hello World.
*
* This is a description.
*/
class Foo extends Bar
{
/**
* What are your thoughts?
*
* @var array $brain
*/
public $brain = [];
/**
* Tell me your thoughts.
*
* @return void
*/
public function dumpThoughts($thoughts)
{
/** @var array $thoughts */
foreach ($thoughts as $thought) {
/** @var string $thought */
echo $thought;
}
}
}
@@ -0,0 +1,24 @@
<?php
/**
* Hello World.
*
* This is a description.
*/
$things = 'fun';
/**
* I'm static.
*/
Foo::bar($things);
$anotherThing = 'what';
/**
* What happens with If's?
*
*/
if ($anotherThing !== 'notfun') {
$anotherThing = 'Oh no.';
}
$hello = 'world';
@@ -0,0 +1,29 @@
<?php
namespace Cake;
/**
* Hello World.
*
* This is a description.
*/
class Foo extends Bar
{
/**
* What are your thoughts?
*
* @var array $brain
*/
public $brain = array();
/**
* Tell me your thoughts.
*
* @return void
*/
public function dumpThoughts()
{
foreach ($thoughts as $thought) {
echo $thought;
}
}
}
@@ -0,0 +1,36 @@
<?php
namespace CakePHP\Tests\Commenting;
use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
class DocBlockAlignmentUnitTest extends AbstractSniffUnitTest
{
/**
* {@inheritDoc}
*/
public function getErrorList($testFile = '')
{
switch ($testFile) {
case 'DocBlockAlignmentUnitTest.1.inc':
return [
2 => 1,
7 => 1,
14 => 1,
21 => 1,
30 => 1,
];
default:
return [];
}
}
/**
* {@inheritDoc}
*/
public function getWarningList()
{
return [];
}
}
@@ -0,0 +1,251 @@
<?php
namespace Beakman;
use Other\Crap;
use Other\Error as OtherError;
class Foo
{
/**
* Some sentence.
*
* @param integer $param Some Param.
* @param boolean $otherParam Some Other Param.
* @return string Something.
*/
public function bar($param, $otherParam)
{
}
/**
* Some sentence.
*
* @param int $param
* @param bool $otherParam
* @return void
*/
public function missingParamComment($param, $otherParam)
{
}
/**
* Some sentence.
*
* @param
* @param
* @return void
*/
public function missingParamType($param, $otherParam)
{
}
/**
* Some sentence.
*
* @return void
*/
public function invalidReturnVoid()
{
return 'string';
}
/**
* [doThing description]
*
* @param string $foo Foo foo foo.
* @return void
*/
public function doThing($foo)
{
}
/**
* Test throws
*
* @throws Exception An expection happened.
* @throws CakePHP\Boom A boom went off.
* @throws CakePHP\Error\Boom Oh, shucks, another boom.
* @throws Other\Crap Oh boy.
* @throws Other\Error\Issue A missing tissue for your PSR-2 issues.
* @return void
*/
public function test()
{
switch ($a) {
case 1:
throw new Boom();
case 2:
throw new Error\Boom();
case 3:
throw new OtherError\Issue();
case 4:
throw new Crap();
default:
throw new \Exception();
}
}
/**
* @return void
* @return void
*/
public function doubleReturn()
{
}
/**
* @return
*/
public function missingReturnType()
{
}
/**
* @return integer
*/
public function returnIntegerFail()
{
return 1;
}
/**
* @return boolean
*/
public function returnBooleanFail()
{
return false;
}
/**
* @return int
*/
public function returnIntPass()
{
return 1;
}
/**
* @return bool
*/
public function returnBooleanPass()
{
return false;
}
/**
* @return int
*/
public function invalidReturnNotVoid()
{
return;
}
/**
* @return void
* @throws
*/
public function invalidThrows()
{
throw new \RuntimeException();
return;
}
/**
* @return void
* @throws \RuntimeException()
*/
public function EmptyThrows()
{
throw new \RuntimeException();
return;
}
/**
* @return void
* @throws \RuntimeException No dot
*/
public function throwsNoFullStop()
{
throw new \RuntimeException();
}
/**
* @return void
* @throws \RuntimeException not a capital.
*/
public function throwsNotCapital()
{
throw new \RuntimeException();
}
/**
* @param int $param not a capital.
* @return void
*/
public function paramCommentNotCapital($param)
{
}
/**
* @param int $param No final dot
* @return void
*/
public function paramCommentFullStop($param)
{
}
/**
* @param int $para Comment.
* @return void
*/
public function paramNameNoMatch($param)
{
}
/**
* @param int $Param Comment.
* @return void
*/
public function paramNameNoCaseMatch($param)
{
}
/**
*
*/
public function missingReturn()
{
return 'what';
}
/**
* @param int
* @return void
*/
public function missingParamName($param)
{
}
/**
* @param int $param A description.
* @param int $superflous A description.
* @return void
*/
public function extraParamComment($param)
{
}
/**
* {@inheritDoc}
*/
public function inherited()
{
}
/**
* {@inheritdoc}
*/
public function inheritedCaseInsentive()
{
}
}
@@ -0,0 +1,251 @@
<?php
namespace Beakman;
use Other\Crap;
use Other\Error as OtherError;
class Foo
{
/**
* Some sentence.
*
* @param int $param Some Param.
* @param bool $otherParam Some Other Param.
* @return string Something.
*/
public function bar($param, $otherParam)
{
}
/**
* Some sentence.
*
* @param int $param
* @param bool $otherParam
* @return void
*/
public function missingParamComment($param, $otherParam)
{
}
/**
* Some sentence.
*
* @param
* @param
* @return void
*/
public function missingParamType($param, $otherParam)
{
}
/**
* Some sentence.
*
* @return void
*/
public function invalidReturnVoid()
{
return 'string';
}
/**
* [doThing description]
*
* @param string $foo Foo foo foo.
* @return void
*/
public function doThing($foo)
{
}
/**
* Test throws
*
* @throws Exception An expection happened.
* @throws CakePHP\Boom A boom went off.
* @throws CakePHP\Error\Boom Oh, shucks, another boom.
* @throws Other\Crap Oh boy.
* @throws Other\Error\Issue A missing tissue for your PSR-2 issues.
* @return void
*/
public function test()
{
switch ($a) {
case 1:
throw new Boom();
case 2:
throw new Error\Boom();
case 3:
throw new OtherError\Issue();
case 4:
throw new Crap();
default:
throw new \Exception();
}
}
/**
* @return void
* @return void
*/
public function doubleReturn()
{
}
/**
* @return
*/
public function missingReturnType()
{
}
/**
* @return integer
*/
public function returnIntegerFail()
{
return 1;
}
/**
* @return boolean
*/
public function returnBooleanFail()
{
return false;
}
/**
* @return int
*/
public function returnIntPass()
{
return 1;
}
/**
* @return bool
*/
public function returnBooleanPass()
{
return false;
}
/**
* @return int
*/
public function invalidReturnNotVoid()
{
return;
}
/**
* @return void
* @throws
*/
public function invalidThrows()
{
throw new \RuntimeException();
return;
}
/**
* @return void
* @throws \RuntimeException()
*/
public function EmptyThrows()
{
throw new \RuntimeException();
return;
}
/**
* @return void
* @throws \RuntimeException No dot
*/
public function throwsNoFullStop()
{
throw new \RuntimeException();
}
/**
* @return void
* @throws \RuntimeException not a capital.
*/
public function throwsNotCapital()
{
throw new \RuntimeException();
}
/**
* @param int $param not a capital.
* @return void
*/
public function paramCommentNotCapital($param)
{
}
/**
* @param int $param No final dot
* @return void
*/
public function paramCommentFullStop($param)
{
}
/**
* @param int $param Comment.
* @return void
*/
public function paramNameNoMatch($param)
{
}
/**
* @param int $param Comment.
* @return void
*/
public function paramNameNoCaseMatch($param)
{
}
/**
*
*/
public function missingReturn()
{
return 'what';
}
/**
* @param int
* @return void
*/
public function missingParamName($param)
{
}
/**
* @param int $param A description.
* @param int $superflous A description.
* @return void
*/
public function extraParamComment($param)
{
}
/**
* {@inheritDoc}
*/
public function inherited()
{
}
/**
* {@inheritdoc}
*/
public function inheritedCaseInsentive()
{
}
}
@@ -0,0 +1,54 @@
<?php
namespace CakePHP\Tests\Commenting;
use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
class FunctionCommentUnitTest extends AbstractSniffUnitTest
{
/**
* {@inheritDoc}
*/
public function getErrorList()
{
return [
12 => 1,
13 => 1,
23 => 1,
24 => 1,
34 => 1,
35 => 1,
90 => 1,
97 => 1,
104 => 1,
112 => 1,
222 => 1,
231 => 1,
];
}
/**
* {@inheritDoc}
*/
public function getWarningList()
{
return [
14 => 1,
31 => 2,
45 => 1,
140 => 1,
145 => 1,
155 => 1,
165 => 1,
174 => 1,
182 => 1,
190 => 1,
197 => 1,
198 => 1,
205 => 1,
206 => 1,
215 => 1,
221 => 1,
];
}
}