Initial commit: apps.supersam24.ru
This commit is contained in:
commit
e955e1da36
6566 files changed
+1271095
No files matched your search
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
for ($i = 0; $i < 10; $i++) {
|
||||
echo 'hello';
|
||||
}
|
||||
|
||||
if ($i < 10) {
|
||||
echo 'hello2';
|
||||
} elseif ($i > 100) {
|
||||
echo 'i > 100';
|
||||
}
|
||||
|
||||
if($abc == true)
|
||||
echo 'hello';
|
||||
Vendored
+26
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace CakePHP\Tests\ControlStructures;
|
||||
|
||||
use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
|
||||
|
||||
class ControlStructuresUnitTest extends AbstractSniffUnitTest
|
||||
{
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getErrorList()
|
||||
{
|
||||
return [
|
||||
13 => 1,
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getWarningList()
|
||||
{
|
||||
return [];
|
||||
}
|
||||
}
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
if (isset($a)) {
|
||||
echo 'a isset';
|
||||
} else if (isset($b)) {
|
||||
echo 'b isset';
|
||||
}
|
||||
Vendored
+26
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace CakePHP\Tests\ControlStructures;
|
||||
|
||||
use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
|
||||
|
||||
class ElseIfDeclarationUnitTest extends AbstractSniffUnitTest
|
||||
{
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getErrorList()
|
||||
{
|
||||
return [
|
||||
4 => 1,
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getWarningList()
|
||||
{
|
||||
return [];
|
||||
}
|
||||
}
|
||||
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
while (false)
|
||||
echo 'faiL';
|
||||
|
||||
do
|
||||
echo 'dowhile test';
|
||||
while (false);
|
||||
|
||||
echo 'dowhile test';
|
||||
} while (false);
|
||||
|
||||
while (false) {
|
||||
echo 'pass';
|
||||
}
|
||||
|
||||
do {
|
||||
Vendored
+27
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace CakePHP\Tests\ControlStructures;
|
||||
|
||||
use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
|
||||
|
||||
class WhileStructuresUnitTest extends AbstractSniffUnitTest
|
||||
{
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getErrorList()
|
||||
{
|
||||
return [
|
||||
2 => 1,
|
||||
5 => 1,
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getWarningList()
|
||||
{
|
||||
return [];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user