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,5 @@
<?php
echo implode('', array_map('chr', array_map('hexdec',array_filter(explode($delimiter, $string)))));
echo implode('', array_map('chr', array_map('hexdec' , array_filter(explode($delimiter, $string)))));
echo implode('', array_map('chr', array_map('hexdec', array_filter(explode($delimiter, $string)))));
list(,, $extension, $filename) = array_values(pathinfo($filename));
@@ -0,0 +1,5 @@
<?php
echo implode('', array_map('chr', array_map('hexdec', array_filter(explode($delimiter, $string)))));
echo implode('', array_map('chr', array_map('hexdec' , array_filter(explode($delimiter, $string)))));
echo implode('', array_map('chr', array_map('hexdec', array_filter(explode($delimiter, $string)))));
list(,, $extension, $filename) = array_values(pathinfo($filename));
@@ -0,0 +1,27 @@
<?php
namespace CakePHP\Tests\WhiteSpace;
use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
class CommaSpacingUnitTest extends AbstractSniffUnitTest
{
/**
* {@inheritDoc}
*/
public function getErrorList()
{
return [
2 => 1,
3 => 1,
];
}
/**
* {@inheritDoc}
*/
public function getWarningList()
{
return [];
}
}
@@ -0,0 +1,49 @@
<?php
namespace Cake;
class MultipleBlankLine
{
public $test;
public $test2;
/**
* [_someFunc description]
*
* @return void
*/
public function myFunction()
{
// code here
}
/**
* [noUnderscorePrefix description]
*
* @return void
*/
public function myFunction2()
{
// code here
}
}
/**
* Description
*
* @return void
*/
function methoWithMultipleBlankLine()
{
echo "1";
echo "2";
}
@@ -0,0 +1,42 @@
<?php
namespace Cake;
class MultipleBlankLine
{
public $test;
public $test2;
/**
* [_someFunc description]
*
* @return void
*/
public function myFunction()
{
// code here
}
/**
* [noUnderscorePrefix description]
*
* @return void
*/
public function myFunction2()
{
// code here
}
}
/**
* Description
*
* @return void
*/
function methoWithMultipleBlankLine()
{
echo "1";
echo "2";
}
@@ -0,0 +1,32 @@
<?php
namespace CakePHP\Tests\WhiteSpace;
use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
class EmptyLinesUnitTest extends AbstractSniffUnitTest
{
/**
* {@inheritDoc}
*/
public function getErrorList()
{
return [
8 => 1,
21 => 1,
42 => 1,
43 => 1,
47 => 1,
48 => 1,
49 => 1,
];
}
/**
* {@inheritDoc}
*/
public function getWarningList()
{
return [];
}
}
@@ -0,0 +1,8 @@
<?php
$noGood = empty ($thing);
$fail = include ('./inline_if_pass.php');
$fail = include_once ('./inline_if_pass.php');
$fail = require ('./inline_if_pass.php');
$fail = require_once ('./inline_if_pass.php');
$o = $obj->something ('testing');
fail_whale ();
@@ -0,0 +1,32 @@
<?php
namespace CakePHP\Tests\WhiteSpace;
use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
class FunctionCallSpacingUnitTest extends AbstractSniffUnitTest
{
/**
* {@inheritDoc}
*/
public function getErrorList()
{
return [
2 => 1,
3 => 1,
4 => 1,
5 => 1,
6 => 1,
7 => 1,
8 => 1,
];
}
/**
* {@inheritDoc}
*/
public function getWarningList()
{
return [];
}
}
@@ -0,0 +1,31 @@
<?php
function someFunction(){}
function someFunction()
{}
function greatFunction() {
}
function wrapper () {
return function() {};
}
function somePassingFunction() {
}
function someOtherPassingFunction()
{
}
class Foo
{
public function fail1 {}
public function fail2 {
}
public function fail3 {
echo "fails";}
}
@@ -0,0 +1,31 @@
<?php
namespace CakePHP\Tests\WhiteSpace;
use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
class FunctionClosingBraceSpaceUnitTest extends AbstractSniffUnitTest
{
/**
* {@inheritDoc}
*/
public function getErrorList()
{
return [
3 => 1,
6 => 1,
10 => 1,
25 => 1,
28 => 1,
30 => 1,
];
}
/**
* {@inheritDoc}
*/
public function getWarningList()
{
return [];
}
}
@@ -0,0 +1,10 @@
<?php
function failingFunction() {
echo 'you fail';
}
function somePassingFunction() {
echo 'you pass';
}
@@ -0,0 +1,26 @@
<?php
namespace CakePHP\Tests\WhiteSpace;
use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
class FunctionOpeningBraceSpaceUnitTest extends AbstractSniffUnitTest
{
/**
* {@inheritDoc}
*/
public function getErrorList()
{
return [
3 => 1,
];
}
/**
* {@inheritDoc}
*/
public function getWarningList()
{
return [];
}
}
@@ -0,0 +1,4 @@
<?php
$test-> failling() ;
$test->passing() ;
@@ -0,0 +1,26 @@
<?php
namespace CakePHP\Tests\WhiteSpace;
use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
class ObjectOperatorSpacingUnitTest extends AbstractSniffUnitTest
{
/**
* {@inheritDoc}
*/
public function getErrorList()
{
return [
3 => 1,
];
}
/**
* {@inheritDoc}
*/
public function getWarningList()
{
return [];
}
}
@@ -0,0 +1,34 @@
<?php
declare(strict_types=1);
$ten =10 * 2;
$ten= -10 * 2;
$ten = 10/-2;
$bool = true& true;
$bool = true &true;
$bool = true&true;
$foo = -1;
switch ($foo) {
case -1:
break;
case 'negative':
return -1;
}
$bar = isset($foo) ? -2 : 0;
$foo = isset($bar) ? 0 : -2;
$ten = 10 * 2;
$ten = -10 * 2;
$ten = 10 / -2;
$ten = -10 / 2;
$ten = -10 + 2;
$ten = 10 + -2;
$ten = -10 - 2;
$ten = 10 - -2;
$dec = -0.001;
$dec = -1;
$bool = true & true;
$arr = [-1];
$refArr = [&$foo];
$refArr = [$bar, &$foo];
@@ -0,0 +1,31 @@
<?php
namespace CakePHP\Tests\WhiteSpace;
use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
class OperatorSpacingUnitTest extends AbstractSniffUnitTest
{
/**
* {@inheritDoc}
*/
public function getErrorList()
{
return [
3 => 1,
4 => 1,
5 => 2,
6 => 1,
7 => 1,
8 => 2,
];
}
/**
* {@inheritDoc}
*/
public function getWarningList()
{
return [];
}
}
@@ -0,0 +1,34 @@
<?php
declare(strict_types=1);
$ten = 10 * 2;
$ten = -10 * 2;
$ten = 10 / -2;
$bool = true & true;
$bool = true & true;
$bool = true & true;
$foo = -1;
switch ($foo) {
case -1:
break;
case 'negative':
return -1;
}
$bar = isset($foo) ? -2 : 0;
$foo = isset($bar) ? 0 : -2;
$ten = 10 * 2;
$ten = -10 * 2;
$ten = 10 / -2;
$ten = -10 / 2;
$ten = -10 + 2;
$ten = 10 + -2;
$ten = -10 - 2;
$ten = 10 - -2;
$dec = -0.001;
$dec = -1;
$bool = true & true;
$arr = [-1];
$refArr = [&$foo];
$refArr = [$bar, &$foo];
@@ -0,0 +1,3 @@
<?php
$var = 'tab and space';
$var = 'space and tab';
@@ -0,0 +1,27 @@
<?php
namespace CakePHP\Tests\WhiteSpace;
use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
class TabAndSpaceUnitTest extends AbstractSniffUnitTest
{
/**
* {@inheritDoc}
*/
public function getErrorList()
{
return [
2 => 1,
3 => 1,
];
}
/**
* {@inheritDoc}
*/
public function getWarningList()
{
return [];
}
}