Initial commit: apps.prometeysev.ru
This commit is contained in:
commit
96ccabcd8b
6561 files changed
+1270349
No files matched your search
Vendored
+104
@@ -0,0 +1,104 @@
|
||||
<?php
|
||||
return [
|
||||
'foo' => 'bar'
|
||||
];
|
||||
|
||||
function invalidFunctionReturnOne()
|
||||
{
|
||||
echo "";
|
||||
return null;
|
||||
}
|
||||
|
||||
function invalidFunctionReturnOne()
|
||||
{
|
||||
if(true) {
|
||||
echo "";
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* [validFunctionReturnOne description]
|
||||
*
|
||||
* @return null
|
||||
*/
|
||||
function validFunctionReturnOne()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* [validFunctionReturnTwo description]
|
||||
*
|
||||
* @return null|bool
|
||||
*/
|
||||
function validFunctionReturnTwo()
|
||||
{
|
||||
if ($a) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* [validFunctionReturnThree description]
|
||||
*
|
||||
* @return null
|
||||
*/
|
||||
function validFunctionReturnThree()
|
||||
{
|
||||
echo "";
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* [validFunctionReturnFour description]
|
||||
*
|
||||
* @return null
|
||||
*/
|
||||
function validFunctionReturnFour()
|
||||
{
|
||||
// comment
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* [validFunctionReturnFive description]
|
||||
*
|
||||
* @return null
|
||||
*/
|
||||
function validFunctionReturnFive()
|
||||
{
|
||||
/**
|
||||
* multi-line
|
||||
*/
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* [validFunctionReturnSix description]
|
||||
*
|
||||
* @return null|bool
|
||||
*/
|
||||
function validFunctionReturnSix()
|
||||
{
|
||||
switch ($condition) {
|
||||
case 'foo':
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* [validFunctionReturnSeven description]
|
||||
*
|
||||
* @return null
|
||||
*/
|
||||
function validFunctionReturnSeven()
|
||||
{
|
||||
/** @var Foo $foo */
|
||||
return null;
|
||||
}
|
||||
Vendored
+106
@@ -0,0 +1,106 @@
|
||||
<?php
|
||||
return [
|
||||
'foo' => 'bar'
|
||||
];
|
||||
|
||||
function invalidFunctionReturnOne()
|
||||
{
|
||||
echo "";
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
function invalidFunctionReturnOne()
|
||||
{
|
||||
if(true) {
|
||||
echo "";
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* [validFunctionReturnOne description]
|
||||
*
|
||||
* @return null
|
||||
*/
|
||||
function validFunctionReturnOne()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* [validFunctionReturnTwo description]
|
||||
*
|
||||
* @return null|bool
|
||||
*/
|
||||
function validFunctionReturnTwo()
|
||||
{
|
||||
if ($a) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* [validFunctionReturnThree description]
|
||||
*
|
||||
* @return null
|
||||
*/
|
||||
function validFunctionReturnThree()
|
||||
{
|
||||
echo "";
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* [validFunctionReturnFour description]
|
||||
*
|
||||
* @return null
|
||||
*/
|
||||
function validFunctionReturnFour()
|
||||
{
|
||||
// comment
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* [validFunctionReturnFive description]
|
||||
*
|
||||
* @return null
|
||||
*/
|
||||
function validFunctionReturnFive()
|
||||
{
|
||||
/**
|
||||
* multi-line
|
||||
*/
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* [validFunctionReturnSix description]
|
||||
*
|
||||
* @return null|bool
|
||||
*/
|
||||
function validFunctionReturnSix()
|
||||
{
|
||||
switch ($condition) {
|
||||
case 'foo':
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* [validFunctionReturnSeven description]
|
||||
*
|
||||
* @return null
|
||||
*/
|
||||
function validFunctionReturnSeven()
|
||||
{
|
||||
/** @var Foo $foo */
|
||||
return null;
|
||||
}
|
||||
Vendored
+27
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace CakePHP\Tests\Formatting;
|
||||
|
||||
use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
|
||||
|
||||
class BlankLineBeforeReturnUnitTest extends AbstractSniffUnitTest
|
||||
{
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getErrorList()
|
||||
{
|
||||
return [
|
||||
9 => 1,
|
||||
17 => 1,
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getWarningList()
|
||||
{
|
||||
return [];
|
||||
}
|
||||
}
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Cake\Routing\Router;
|
||||
use Cake\Error;
|
||||
use Cake\Utility\Hash;
|
||||
|
||||
class Foo {
|
||||
use LogTrait;
|
||||
use FirstTrait;
|
||||
}
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
namespace BryanCrowe;
|
||||
|
||||
use Cake\Routing\RouteCollection;
|
||||
use Cake\Routing\Router;
|
||||
use Cake\Routing\Route\Route;
|
||||
|
||||
class Foo
|
||||
{
|
||||
use FirstTrait;
|
||||
use LogTrait;
|
||||
}
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
namespace BryanCrowe;
|
||||
|
||||
use Exception;
|
||||
use RuntimeException;
|
||||
|
||||
use function compact;
|
||||
|
||||
class Foo
|
||||
{
|
||||
use FirstTrait;
|
||||
use LogTrait;
|
||||
}
|
||||
Vendored
+35
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace CakePHP\Tests\Formatting;
|
||||
|
||||
use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
|
||||
|
||||
class UseInAlphabeticalOrderUnitTest extends AbstractSniffUnitTest
|
||||
{
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getErrorList($testFile = '')
|
||||
{
|
||||
switch ($testFile) {
|
||||
case 'UseInAlphabeticalOrderUnitTest.1.inc':
|
||||
return [
|
||||
3 => 1,
|
||||
4 => 1,
|
||||
8 => 1,
|
||||
9 => 1,
|
||||
];
|
||||
|
||||
default:
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getWarningList()
|
||||
{
|
||||
return [];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user