This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php declare(strict_types=1); | |
namespace Vimeo\Test\Framework\Extension; | |
use PHPUnit\Runner\AfterLastTestHook; | |
use PHPUnit\Runner\AfterTestErrorHook; | |
use PHPUnit\Runner\AfterTestFailureHook; | |
use Psalm\SourceControl\Git\GitInfo; | |
final class FailureTracker implements AfterTestErrorHook, AfterTestFailureHook, AfterLastTestHook |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* This file is part of the webmozart/assert package. | |
* | |
* (c) Bernhard Schussek <[email protected]> | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Tree { | |
public $left = null; | |
public $right = null; | |
} | |
class Type { | |
/** @var int */ | |
public $i = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Psalm\Example\Plugin; | |
use PhpParser; | |
use Psalm\Checker; | |
use Psalm\Checker\StatementsChecker; | |
use Psalm\Codebase; | |
use Psalm\CodeLocation; | |
use Psalm\Context; | |
use Psalm\FileManipulation; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This tries to anonymise all letters in a string. | |
* | |
* @param string $s | |
* @return string | |
*/ | |
function anonymize_letters($s) { | |
$tokens = str_split($s, 1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace PHPUnit\Framework; | |
use PHPUnit\Framework\MockObject\MockObject; | |
abstract class TestCase extends Assert implements Test, SelfDescribing | |
{ | |
/** | |
* @template T |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>Full Screen Example</title> | |
<style type="text/css"> | |
/* make the video stretch to fill the screen in WebKit */ | |
:-webkit-full-screen #myvideo { | |
width: 100%; | |
height: 100%; | |
} |