Skip to content

Instantly share code, notes, and snippets.

@markstory
markstory / routes.php
Created January 9, 2017 01:18
Routing test file
<?php
require './vendor/autoload.php';
use Cake\Core\Configure;
use Cake\Http\ServerRequest;
use Cake\Routing\Router;
// Setup
define('CONFIG', __DIR__ . '/tests/test_app/config/');
Configure::write('App', [
@markstory
markstory / Car.php
Created October 12, 2016 01:47
bake output for #9576
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* Car Entity
*
* @property string $id
* @property string $name
diff --git a/src/ORM/Association.php b/src/ORM/Association.php
index b863ed8..38ddc7a 100644
--- a/src/ORM/Association.php
+++ b/src/ORM/Association.php
@@ -839,8 +839,9 @@ abstract class Association
}
$newContain = [];
+ $aliasPrefix = isset($options['aliasPath']) ? $options['aliasPath'] . '.' : '';
foreach ($contain as $alias => $value) {
<?php
namespace App\Controller;
use App\Controller\AppController;
use Cake\Event\Event;
use Cake\Mailer\MailerAwareTrait;
/**
* Bookmarks Controller
<?php
App::uses('AppModel', 'Model');
/**
* Article Model
*
* @property Comment $Comment
*/
class Article extends AppModel {
/**
diff --git a/i18n/en.js b/i18n/en.js
index c718cee..b68308f 100644
--- a/i18n/en.js
+++ b/i18n/en.js
@@ -59,8 +59,6 @@ var i18n = {
},
"lateReminderCreate": {
"free": {
- "headline": "To send payment reminders and more, go Pro",
- "subHeadline": "Payment reminders are included with all Pro plans. To use payment reminders and other Pro features, choose a plan or call 1-866-417-2795 if you need a hand."
Billings::Subscription
.where(systemid: Role.where(
identity_id: id,
role: Role::ADMIN_ROLE || Role::STAFF_ROLE).map(&:systemid))
X-Header: some content\r\n
goes here and here\r\n
more here\r\n
X-Header-2: single value
<?xml version="1.0" encoding="utf-8"?>
<checkstyle version="4.3">
<file name="tests/fixtures/jshint/has_errors.js">
<error line="1" column="10" severity="warning" message="Missing name in function declaration." source="jshint.W025" />
<error line="4" column="18" severity="warning" message="Missing semicolon." source="jshint.W033" />
<error line="6" column="13" severity="warning" message="Use &apos;===&apos; to compare with &apos;null&apos;." source="jshint.W041" />
<error line="9" column="2" severity="error" message="Function declarations are not invocable. Wrap the whole function invocation in parens." source="jshint.E039" />
<error line="9" column="3" severity="warning" message="Expected an assignment or function call and instead saw an expression." source="jshint.W030" />
</file>
</checkstyle>
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* Bookmark Entity.
*/
class Bookmark extends Entity
{