This file contains hidden or 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 | |
private function createDeleteForm($id) | |
{ | |
return $this->createFormBuilder(array('id' => $id)) | |
->add('id', 'hidden') | |
->getForm() | |
; | |
} | |
This file contains hidden or 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
{ | |
"require": { | |
"php": ">=5.3.2", | |
"symfony/symfony": ">=2.0.10,<2.1.0-dev", | |
"doctrine/orm": ">=2.1.0,<2.2.0-dev", | |
"twig/extensions": "*", | |
"symfony/assetic-bundle": "2.0.*", | |
"sensio/generator-bundle": "2.0.*", | |
"sensio/framework-extra-bundle": "2.0.*", | |
"sensio/distribution-bundle": "2.0.*", |
This file contains hidden or 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
<div id="friend-picker-container"> | |
<ul class="friend-container"> | |
<li style="display: none;"> | |
<div class="friend-container"> | |
<span class="user-data">Me</span> | |
<button class="btn"><i class="icon-plus"></i> Add to Bill</button> | |
</div> | |
</li> | |
<li style="display: none;"> | |
<div class="friend-container"> |
This file contains hidden or 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
1 Updating dependencies | |
2 PHP Warning: assert(): Assertion failed in phar:///home/cakper/public_html/square/composer.phar/src/Composer/DependencyResolver/Solver.php on line 1112 | |
3 PHP Stack trace: | |
4 PHP 1. {main}() /home/cakper/public_html/square/composer.phar:0 | |
5 PHP 2. require() /home/cakper/public_html/square/composer.phar:15 | |
6 PHP 3. Composer\Console\Application->run() phar:///home/cakper/public_html/square/composer.phar/bin/composer:9 | |
7 PHP 4. Symfony\Component\Console\Application->run() phar:///home/cakper/public_html/square/composer.phar/src/Composer/Console/Application.php:58 | |
8 PHP 5. Composer\Console\Application->doRun() phar:///home/cakper/public_html/square/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:106 | |
9 PHP 6. Symfony\Component\Console\Application->doRun() phar:///home/cakper/public_html/square/composer.phar/src/Composer/Console/Application.php:69 | |
10 PHP 7. Symfony\Component\Console\Command\Command->run() ph |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="SquareShare" default="build"> | |
<target name="build" | |
depends="prepare,lint,phploc,pdepend,phpmd-ci,phpcs-ci,phpcpd,phpunit,phpcb"/> | |
<target name="build-parallel" | |
depends="prepare,lint,tools-parallel,phpunit,phpcb"/> | |
<target name="tools-parallel" |
This file contains hidden or 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 | |
$query = $em->createQuery('SELECT t FROM JazzyTransactionBundle:MoneyTransaction t WHERE t.sender = :user')->setParameter('user', $user); | |
$query->setFetchMode("JazzyTransactionBundle:MoneyTransaction", "sender", "EAGER"); | |
$transactions = $query->execute(); | |
WORKING: |
This file contains hidden or 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 getBills() | |
{ | |
return array( | |
array( | |
120, | |
array( | |
array(120, 10, 25, false, 85), | |
array(0, 10, 25, false, -35), | |
array(0, 0, 25, false, -25), |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="SS" default="build"> | |
<target name="build" | |
depends="prepare,lint,phploc,pdepend,phpmd-ci,phpcs-ci,phpcpd,phpunit,phpcb"/> | |
<target name="build-parallel" | |
depends="prepare,lint,tools-parallel,phpunit,phpcb"/> | |
<target name="tools-parallel" |
This file contains hidden or 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 | |
/** | |
* Set amount | |
* | |
* @param bigint $amount | |
*/ | |
public function setAmount($amount) | |
{ | |
if (is_int($amount) || is_float($amount)) | |
{ |
This file contains hidden or 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
public function testThatCreateAndUpdateDatesAreRegisteredAndIdGenerated() | |
{ | |
$this->prepareEntityManager(); | |
$now = new \DateTime('now'); | |
$moneyTransaction = $this->moneyTransaction; | |
$validator = $this->validator; | |
$recipient = new \Jazzy\UserBundle\Entity\User(); |