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
#!/bin/bash | |
# escape the slash in document root | |
DOCUMENT_ROOT=\/var\/www\/html\/ | |
SYMFONY_ENV=dev | |
# The full path is written by the Twig compiler, generally at the end of the cache file in the getSourceContext() method | |
grep -RhoP "${DOCUMENT_ROOT}.*\.html\.twig" app/cache/${SYMFONY_ENV}/twig/ | grep -v vendor |
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 App\Faker\Provider; | |
use libphonenumber\NumberParseException; | |
use libphonenumber\PhoneNumber; | |
use libphonenumber\PhoneNumberUtil; | |
use libphonenumber\PhoneNumberFormat; | |
class PhoneNumberProvider |
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 App\CSV; | |
use League\Csv\Reader; | |
use League\Csv\Statement; | |
use voku\helper\UTF8; | |
class CsvReader | |
{ |
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 User implements UserInterface, \Serializable | |
{ | |
/** | |
* {@inheritdoc} | |
*/ | |
public function serialize(): string | |
{ | |
return serialize([$this->id, $this->username, $this->password]); |
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
<template> | |
<div class="row"> | |
<div class="col-md-6 col-sm-6 col-xs-12"> | |
<div class="info-box"> | |
<span class="info-box-icon bg-green"><i class="fa fa-users"/></span> | |
<div class="info-box-content"> | |
<span class="info-box-text">Active users</span> | |
<span class="info-box-number">{{ usersCount || 0 }}</span> | |
</div> | |
</div> |
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 | |
// tests/App/ReflectionTrait.php | |
namespace App\Tests; | |
trait ReflectionTrait | |
{ | |
/** | |
* @param $object | |
* @param $methodName | |
* @param array $parameters |
OlderNewer