😊 Passed | 🤬 Error | 😡 Failure | 😠 Warning | 🧐 Risky | 😶 Incomplete | 🤫 Skipped
- Environment:
Development
- Base namespace:
Fortuneglobe\Prometheus\Exporters\Tests
- Can Get Metric String For Multiple Gauges (😊 1)
#!/usr/bin/env sh | |
OPTIND=1 | |
EXITCODE=0 | |
# Default parallelization | |
PARALLELIZE=2 | |
# Default file name pattern | |
FILENAME_PATTERN='*.php' | |
echo "PHP linting - looking for syntax errors in PHP files." |
<?php declare(strict_types=1); | |
class Test | |
{ | |
private $arr = []; | |
public function __construct() | |
{ | |
for ( $i = 0; $i < 10000; $i++ ) | |
{ |
<?php declare(strict_types=1); | |
final class TimedBuffer | |
{ | |
private $buffer = ''; | |
private $intervalMs; | |
private $startTime; |
<?php declare(strict_types=1); | |
if ( | |
extension_loaded( 'xdebug' ) | |
&& version_compare( '2.6.0', phpversion( 'xdebug' ), '<=' ) | |
) | |
{ | |
/** @noinspection PhpUndefinedFunctionInspection */ | |
/** @noinspection PhpUndefinedConstantInspection */ | |
xdebug_set_filter( |
language: php | |
php: | |
- 7.1 | |
- 7.2 | |
branches: | |
only: | |
- master | |
- development |
I hereby claim:
To claim this, I am signing this object:
<?php declare(strict_types=1);
class CompositeException extends \Exception
{
/** @var array */
private $throwables = [];
public function __construct( \Throwable ...$throwables )
I often start new projects and need to set up a bunch of strings and variables inside my project created from a template. You can see my github repo template here. Just search it for "VendorName" or "PackageName" and you'll see what I mean.
These variables are always the same in the beginning and I need to remember what names I used and where I need to replace them. Since this is a repetitive task, I seek more automation. Currently the project template feature in PhpStorm 2017.1 does not support custom variables at all.
I also work in a team that uses a similar project template. The team should be able to benefit from the updates to the project template, and everyone on the team should be able to update the template. That's why we use a git repository for that, instead of local PhpStorm project templates. Again repetitive work has to be done when creating a new project from that repository (git clone, remember and replace variables, etc.). Curre