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
<?xml version="1.0"?> | |
<ruleset name="Name"> | |
<description>Name - PHP MD Ruleset</description> | |
<!-- CLEAN CODE RULES: http://phpmd.org/rules/cleancode.html --> | |
<rule ref="rulesets/cleancode.xml/BooleanArgumentFlag"/> | |
<rule ref="rulesets/cleancode.xml/ElseExpression"/> | |
<rule ref="rulesets/cleancode.xml/StaticAccess"/> |
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 | |
$projectPath = __DIR__ . '/src'; | |
if (!file_exists($projectPath)) { | |
echo 'Source directory is missed or project path is invalid.'; | |
die(1); | |
} | |
return PhpCsFixer\Config::create() |
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 AppBundle\EventSubscriber; | |
use Doctrine\ORM\EntityManagerInterface; | |
use Doctrine\ORM\NativeQuery; | |
use Doctrine\ORM\NonUniqueResultException; | |
use Doctrine\ORM\Query\ResultSetMapping; |
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
version: '3' | |
services: | |
composer: | |
image: composer | |
working_dir: /var/www/playground | |
volumes: | |
- .:/var/www/playground | |
php: | |
build: | |
context: . |
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
FROM php:7.2-fpm | |
RUN apt-get update && \ | |
apt-get install -y --no-install-recommends \ | |
curl \ | |
libmemcached-dev \ | |
libz-dev \ | |
libpq-dev \ | |
libjpeg-dev \ | |
libpng-dev \ | |
libfreetype6-dev \ |
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
server { | |
listen 80; | |
server_name symfony-playground.lm *.symfony-playground.lm; | |
root /var/www/playground/public; | |
access_log /var/log/nginx/access.log; | |
error_log /var/log/nginx/error.log; | |
location / { | |
try_files $uri /index.php$is_args$args; |
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
;xdebug.remote_host=127.0.0.1; | |
xdebug.remote_port=9000 | |
xdebug.remote_enable=1 | |
xdebug.remote_autostart=1 | |
xdebug.remote_connect_back=1 | |
xdebug.remote_handler=dbgp | |
xdebug.remote_mode=req | |
xdebug.idekey=PHPSTORM | |
xdebug.cli_color=0 | |
xdebug.profiler_enable=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] | |
;;;;;;;;;;;;;;;;;;; | |
; About php.ini ; | |
;;;;;;;;;;;;;;;;;;; | |
; PHP's initialization file, generally called php.ini, is responsible for | |
; configuring many of the aspects of PHP's behavior. | |
; PHP attempts to find and load this configuration from a number of locations. | |
; The following is a summary of its search order: |
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
export default function (count = 10) { | |
return { | |
data () { | |
return { | |
displayPriority: 0, | |
} | |
}, | |
mounted () { | |
this.runDisplayPriority() |
OlderNewer