This file contains 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
{ | |
"data": [ | |
{ | |
"id": "1", | |
"name": "Tiger Nixon", | |
"position": "System Architect", | |
"salary": "$320,800", | |
"start_date": "2011/04/25", | |
"office": "Edinburgh", | |
"extn": "5421" |
This file contains 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
@import "normalize"; | |
.btn, %btn { | |
box-sizing: border-box; | |
border: 1px gray solid; | |
border-radius: .25rem; | |
padding: .5rem 1rem; | |
} | |
.text-white, %text-white { | |
color: #fff; | |
} |
This file contains 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 | |
/** | |
* HTML tag. | |
*/ | |
class Tag extends DOMElement implements TagInterface | |
{ | |
public function __construct(string $name, string $value = '') | |
{ | |
parent::__construct($name, $value); |
This file contains 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
$font-dir: null !default; | |
/// | |
/// Returns font format. | |
/// | |
/// @param {string} $src The font filename | |
/// @return {string} | |
/// | |
@function font-format($src) { | |
$formats: ( |
This file contains 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
/// Returns part of string. | |
/// Similar to PHP `substr()`: `substr("abc", 2, 1)` - "c", `substr("abc", 1)` - "bc", `substr("abcd", -3, -1)` - "bc". | |
/// | |
/// @param {String} $str The input string | |
/// @param {Number} $offset The returned string will start at the offset'th position in string, counting from zero | |
/// @param {Number} $length The string returned will contain at most length characters beginning from offset (optional) | |
/// @return {String} | |
/// @see https://www.php.net/manual/en/function.substr | |
@function substr($str, $offset, $length: 0) { | |
$length: if($length < 0, $length - 1, if($length == 0, str-length($str), $length)); |
This file contains 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 yii\helpers; | |
use Closure; | |
use ReflectionFunction; | |
use Throwable; | |
use Traversable; | |
use yii\base\Arrayable; |
This file contains 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 app\core; | |
use ArrayAccess; | |
use Closure; | |
use Countable; | |
use Iterator; | |
use IteratorAggregate; | |
use yii\base\ArrayAccessTrait; |
This file contains 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 | |
/** | |
* Stream wrapper `glob://` to use rich syntax in `GlobIterator`. | |
*/ | |
class GlobStreamWrapper | |
{ | |
/** | |
* @var string | |
*/ |
This file contains 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 yii\helpers; | |
use ReflectionClass; | |
use ReflectionMethod; | |
use Yii; | |
use yii\base\Action; | |
use yii\base\Application; | |
use yii\base\Behavior; |
This file contains 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 | |
/** | |
* @param int $pr Identifier of Pull Request | |
* @param string $repoDir Base directory of repository | |
* @param string $package "{owner}/{repo}" | |
* @param string $docDir Repository directory of documentation | |
* @return array Files to update | |
*/ | |
function findOutdatedDocTranslations($pr, $repoDir, $package = 'yiisoft/yii2', $docDir = 'docs') |
NewerOlder