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 | |
translate('cannotContinue', [ | |
'linkFix' => Html::el('a')->href('https://somewhere') | |
]) |
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 | |
$link = Html::el('a')->href('https://somewhere'); | |
translate('cannotContinue', [ | |
'linkStart' => $link->startTag(), | |
'linkEnd' => $link->endTag(), | |
]) |
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 | |
translate('cannotContinue', [ | |
'link' => 'https://somewhere' | |
]) |
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
You cannot continue, <a href="http://somewhere">click here</a> to fix problem. |
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 | |
echo translate("You cannot continue,") | |
echo '<a href="http://somewhere">'; | |
echo translate('click here'); | |
echo '</a>'; | |
echo translate('to fix problem.'); |
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
Use this regexp for example in PHPStorm: | |
(link\(|redirect\(|forward\(|n:href|\{plink |\{link ) |
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 | |
// 1. prepare invitation | |
$identityProvider->becomeAdmin(); | |
$invitation = $accounts->prepareInvitation(EmailAddress::of('[email protected]'), 7); | |
// 2. check invitation code (OK) | |
$identityProvider->becomeGuest(); | |
$tempIdentity = $accounts->authenticateWithTemporaryToken( | |
$invitation->getTemporaryAuthenticationToken() | |
); |
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 | |
// https://3v4l.org/LDQ6i | |
// Arrange | |
$object = new SplFixedArray(2); | |
$object[0] = 'first-value'; | |
$object[1] = 'second-value'; | |
// Act | |
foreach ($object as $key1 => $val1) { |
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
/* Use Fira Code */ | |
/* in merge requests */ | |
.diff-file .diff-content table, | |
.diff-file .diff-content table .line_holder td, /* to properly override line-height and font-size */ | |
.file-content.code .line-numbers a, /* to align line numbers with lines of source */ | |
/* in file view */ | |
.file-content.code pre code | |
{ |
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
# NPM: cache | |
RUN npm config set cache /cache/.npm | |
# bower: cache | |
ENV bower_storage__packages /cache/.bower/packages | |
ENV bower_storage__registry /cache/.bower/registry | |
ENV bower_storage__links /cache/.bower/links | |
# YARN cache | |
RUN yarn config set cache-folder /cache/yarn |
NewerOlder