Skip to content

Instantly share code, notes, and snippets.

phpcs --standard=Drupal,DrupalPractice,DrupalStrict --extensions=php,module,install,profile,drush.inc,yml,test,admin.inc,js,css --report-width=4 --colors ./web/modules/custom/ ./web/themes/contrib/
FILE: ...web/themes/contrib/wfp_base/css/components/wfp-base.messages.css
----------------------------------------------------------------------
FOUND 40 ERRORS AFFECTING 40 LINES
----------------------------------------------------------------------
6 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
7 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
phpcs --standard=Drupal,DrupalPractice,DrupalStrict --extensions=php,module,install,profile,drush.inc,yml,test,admin.inc,js,css --report-width=4 --colors ./web/modules/custom/
FILE: ...w/project/web/modules/custom/sync_data/drush/sync_data.drush.inc
----------------------------------------------------------------------
FOUND 33 ERRORS AND 8 WARNINGS AFFECTING 19 LINES
----------------------------------------------------------------------
7 | WARNING | [ ] @author tags are not usually used in Drupal,
| | because over time multiple contributors will
| | touch the code anyway
58 | WARNING | [ ] Line exceeds 80 characters; contains 84
root@9c76c50b4019:/var/www/project/web# phpcs modules/custom/sync_data/drush/sync_data.drush.inc
FILE: ...w/project/web/modules/custom/sync_data/drush/sync_data.drush.inc
----------------------------------------------------------------------
FOUND 100 ERRORS AND 1 WARNING AFFECTING 73 LINES
----------------------------------------------------------------------
3 | ERROR | [ ] Missing short description in doc comment
7 | ERROR | [ ] Content of the @author tag must be in the form
| | "Display Name <username@example.com>"
8 | WARNING | [ ] PHP version not specified
@otarza
otarza / styleo.css
Created November 24, 2015 10:17
Centre Style
@font-face {
font-family: mtavruli;
src: url(../fonts/bpg-le-studio-caps.ttf);
}
@font-face {
font-family: mxedruli;
src: url(../fonts/bpg-le-studio-04.ttf);
}
@otarza
otarza / ka.i18n.json
Created October 15, 2015 11:33
Telescope translation for Geogian language
{
"menu" : "მენიუ",
"view" : "View",
"top" : "Top",
"new" : "New",
"best" : "საუკეთესო",
"digest" : "Digest",
"scheduled" : "Scheduled",
"users" : "მოხმარებლები",
"settings" : "სეთინგები",
@otarza
otarza / ka.php
Created August 11, 2015 19:19
ka.php
<?php
return array(
/*
|--------------------------------------------------------------------------
| Date Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used by the date library. Each line can
@otarza
otarza / frame.html
Created July 18, 2015 10:44
FloatInIframe
<!DOCTYPE html>
<html>
<head>
<title>Frame</title>
<style type="text/css">
.body {
height: 10000px;
display: block;
width: 100%;
}
@otarza
otarza / prevent-scorll-on-iphone.js
Created June 5, 2015 12:50
prevent scrolling on iPhone
document.ontouchstart = function(e){
if() {
e.preventDefault();
} else {
return true;
}
}
@otarza
otarza / exampla.php
Created June 3, 2015 14:34
Drupal Databases Example
<?php
$databases = array (
'default' =>
array (
'default' =>
array (
'database' => 'name',
'username' => 'root',
'password' => '12345678',
'host' => 'localhost',
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at