Initial commit: apps.supersam24.ru

This commit is contained in:
root committed 2026-10-22 00:04:27 +03:00
commit e955e1da36
6566 files changed
+1271095

No files matched your search

@@ -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';
@@ -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 [];
}
}
@@ -0,0 +1,6 @@
<?php
if (isset($a)) {
echo 'a isset';
} else if (isset($b)) {
echo 'b isset';
}
@@ -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 [];
}
}
@@ -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 {
@@ -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 [];
}
}