Autoformat code : Cmd + Alt + L
Settings -> Editor -> Code Style -> PHP -> Wrapping and Braces -> Align consecutive assignments
This will replace
$toto = 'test';
Fix for vagrant:
mysql:
install: '1'
settings:
version: '5.6'
root_password: root
override_options:
mysqld:
<?php | |
/** | |
* https://www.apple.com/fr/ only | |
* For other languages, change uri of file_get_contents and change value of var $noStock | |
*/ | |
$models = [ | |
'iPhone X 64Go Silver' => 'MQAD2ZD/A', | |
'iPhone X 256Go Silver' => 'MQAG2ZD/A', |
php -d memory_limit=-1 test.php |
FROM httpd:latest | |
RUN echo 'LoadModule proxy_module modules/mod_proxy.so' >> /usr/local/apache2/conf/httpd.conf | |
RUN echo 'LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so' >> /usr/local/apache2/conf/httpd.conf | |
RUN echo 'Include conf/extra/httpd-vhosts.conf' >> /usr/local/apache2/conf/httpd.conf |
<VirtualHost *:80> | |
DocumentRoot "/usr/local/apache2/htdocs" | |
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://iim_php:9000/var/www/html/$1 | |
</VirtualHost> |
<?php | |
echo 'Hello world'; |
<?php | |
$pdo = new PDO('mysql:host=iim_mysql', 'root', 'root'); | |
$databases = $pdo->query('SHOW DATABASES')->fetch(PDO::FETCH_ASSOC); | |
print_r($databases); |
// Karma configuration file, see link for more information | |
// https://karma-runner.github.io/1.0/config/configuration-file.html | |
module.exports = function (config) { | |
config.set({ | |
basePath: '', | |
frameworks: ['jasmine', '@angular-devkit/build-angular'], | |
plugins: [ | |
require('karma-jasmine'), | |
require('karma-chrome-launcher'), |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Home</title> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!--===============================================================================================--> | |
<link rel="icon" type="image/png" href="{{ asset('images/icons/favicon.png') }}"/> | |
<!--===============================================================================================--> | |
<link rel="stylesheet" type="text/css" href="{{ asset('vendor/bootstrap/css/bootstrap.min.css') }}"> |