First of all: add next section to composer.json
:
"repositories": [
{
"type": "vcs",
"url": "https://github.com/SCIF/admin"
}
],
### Keybase proof | |
I hereby claim: | |
* I am scif on github. | |
* I am scif (https://keybase.io/scif) on keybase. | |
* I have a public key ASCXKLx2yTqW3j-fq-vqCA9m4WRtezvsd7oStMs9iGkAoAo | |
To claim this, I am signing this object: |
First of all: add next section to composer.json
:
"repositories": [
{
"type": "vcs",
"url": "https://github.com/SCIF/admin"
}
],
There are a lot of places in code which seems like:
public function getSomeFilteredThings(Someobj $obj = null, Someobj2 $obj2 = null)
It's restrict type by php typehint and we can don't care about type of variable but task of checking is null or object passed still available.
Most common methods to check are: if ($obj)
, if (null === $obj)
and if ($obj instanceof Someobj)
.
/** | |
* fields: array of names of tracked fields. All inputs and textareas by default (selector: ':input') | |
* always_update: array of names of fields, which will be added to request always. For example: '_token' | |
* | |
* @author Zhuravlev Alexander, [email protected] | |
* @licence MIT, http://opensource.org/licenses/mit-license.php | |
*/ | |
(function ($) { | |
$.fn.draftsaver = function (options) { | |
var settings = $.extend({ |
config.yml: | |
``` | |
fos_user: | |
db_driver: orm # other valid values are 'mongodb', 'couchdb' and 'propel' | |
firewall_name: main | |
user_class: AppBundle\Entity\User | |
from_email: | |
address: %mail_sender_address% | |
sender_name: %mail_sender_name% |
class t1 | |
{ | |
/** | |
* According to http://www.phpdoc.org/docs/latest/for-users/phpdoc/types.html#keyword «self» must be correct in that issue. Phpstorm works correct only if sets static, netbeans/aptana doesn't work correct | |
* | |
* @return self | |
*/ | |
public function test() | |
{ | |
return $this; |
<?php | |
namespace Fuel\Tasks; | |
class Feedback | |
{ | |
public function run() | |
{ | |
\Config::load('db', true); |
$config = array( | |
'pagination_url' => 'http://localhost/fuel/welcome/index/', | |
'total_items' => $count, | |
'per_page' => $per_page, | |
'offset' => $offset, | |
'uri_segment' => 2, | |
'template' => array( | |
'wrapper_start' => '<div class="pagination"><ul>', | |
'wrapper_end' => '</ul></div>', | |
'page_start' => '', |
$total_income = DB::query('SELECT'. | |
. DB::expr('SUM(total)') . | |
'FROM `' . DB::table_prefix() . 'bookings`'. | |
'WHERE `user_id` = ' . $this->template->user_id . ' ' . | |
'AND `status` != "prospect" ' . | |
'AND `status` != "cancelled" ' . | |
'AND `status` != "refunded" ' | |
)->execute()->as_array(); |
<?php | |
namespace Fuel\Migrations; | |
class Create_sessions | |
{ | |
public function up() | |
{ | |
\DBUtil::create_table('sessions', array( | |
'session_id' => array('constraint' => 40, 'type' => 'varchar', 'null' =>false), |