Initial commit: apps.supersam24.ru
This commit is contained in:
commit
e955e1da36
6566 files changed
+1271095
No files matched your search
+5
@@ -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));
|
||||
+5
@@ -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));
|
||||
+27
@@ -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 [];
|
||||
}
|
||||
}
|
||||
+49
@@ -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";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
+42
@@ -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";
|
||||
}
|
||||
|
||||
+32
@@ -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 [];
|
||||
}
|
||||
}
|
||||
Vendored
+8
@@ -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 ();
|
||||
Vendored
+32
@@ -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 [];
|
||||
}
|
||||
}
|
||||
Vendored
+31
@@ -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";}
|
||||
}
|
||||
Vendored
+31
@@ -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 [];
|
||||
}
|
||||
}
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
function failingFunction() {
|
||||
|
||||
echo 'you fail';
|
||||
}
|
||||
|
||||
function somePassingFunction() {
|
||||
echo 'you pass';
|
||||
}
|
||||
Vendored
+26
@@ -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 [];
|
||||
}
|
||||
}
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
|
||||
$test-> failling() ;
|
||||
$test->passing() ;
|
||||
Vendored
+26
@@ -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 [];
|
||||
}
|
||||
}
|
||||
+34
@@ -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];
|
||||
+31
@@ -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 [];
|
||||
}
|
||||
}
|
||||
Vendored
+34
@@ -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];
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
$var = 'tab and space';
|
||||
$var = 'space and tab';
|
||||
+27
@@ -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 [];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user