This file contains 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
<Proxy "fcgi://app_php:9000/" enablereuse=on max=10> | |
</Proxy> | |
<FilesMatch "\.php$"> | |
SetHandler "proxy:fcgi://app_php:9000/" | |
</FilesMatch> |
This file contains 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 | |
$mailer->expects($this->exactly(2)) | |
->method('send') | |
->withConsecutive( | |
[$this->anything(), $this->matches($user)], | |
[$this->anything(), $this->matches($user); | |
?> |
This file contains 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
"minimum-stability": "dev", | |
"prefer-stable": true, | |
"repositories" : [ | |
{ | |
"type" : "vcs", | |
"url" : "[email protected]:vendername/reponame.git" | |
} | |
] |
This file contains 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 | |
$controllerMock = $this->_getMock($sessionParams, $controller, [], $requestData); | |
$Listings = TableRegistry::get('Listings'); | |
$controllerMock->Listings = $Listings; | |
$listing = $controllerMock->Listings->newEntity(); | |
$listing = $controllerMock->_updateEntity($requestData, $listing); | |
$listing = $controllerMock->_saveData($listing); |
This file contains 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 | |
public function findSubscribers(Query $query, $options) | |
{ | |
$query | |
->contain([ | |
'UserSettings' => function ($q) { | |
return $q->where(['UserSettings.id' => UserSetting::ALERTS]); | |
} |
This file contains 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
module.exports = { | |
findClosestSource: (creep) => { | |
return creep.pos.findClosestByPath(FIND_SOURCES); | |
}, | |
moveToSource: (creep, source) => { | |
creep.moveTo(source); | |
}, | |
This file contains 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 | |
$invoice = $this->Invoices->newEntity([ | |
'amount' => 100, | |
'description' => 'Simple little description of invoice', | |
'invoice_status_id' => 1, | |
'due_date' => new Time('2016-05-05') | |
]); | |
$invoice->user = $this->Invoices->Users->newEntity([ | |
'first_name' => 'Bob', |
This file contains 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 | |
$users = $this->Strategies->Users->find()->contain([ | |
'UserSettings' => function ($q) { | |
return $q->map(function ($setting) { | |
return [$setting->id => $setting->users_user_settings->configuration]; | |
}); | |
} | |
])->toArray(); |
This file contains 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
var React = require('react'); | |
var Store = require('./store'); | |
var Comment = require('./comment'); | |
module.exports = React.createClass({ | |
render: function () { | |
console.log(Comment); | |
return ( | |
<div> |
This file contains 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 | |
$following = $this->Strategies->Users | |
->matching( | |
'FollowingAgencies.Employees' | |
) | |
->where(['Users.id' => $this->Auth->user('id')])->toArray(); | |
$following = Hash::extract($following, '{n}._matchingData.Employees.id'); | |
$query = $this->Strategies->find('open') |