@@ -22,7 +22,7 @@ |
||
| 22 | 22 | $configuration = new Configuration(); |
| 23 | 23 | $this->processConfiguration($configuration, $configs); |
| 24 | 24 | |
| 25 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 25 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 26 | 26 | $loader->load('services.yml'); |
| 27 | 27 | } |
| 28 | 28 | } |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | $class->expects($this->any())->method('getAssociationNames')->will($this->returnValue(array())); |
| 69 | 69 | $class->expects($this->any())->method('isIdentifier')->will( |
| 70 | 70 | $this->returnCallback( |
| 71 | - function ($field) { |
|
| 71 | + function($field) { |
|
| 72 | 72 | return $field === 'a'; |
| 73 | 73 | } |
| 74 | 74 | ) |
@@ -26,6 +26,6 @@ |
||
| 26 | 26 | public function registerContainerConfiguration(LoaderInterface $loader) |
| 27 | 27 | { |
| 28 | 28 | // We don't need that Environment stuff, just one config |
| 29 | - $loader->load(__DIR__.'/config.yml'); |
|
| 29 | + $loader->load(__DIR__ . '/config.yml'); |
|
| 30 | 30 | } |
| 31 | 31 | } |
@@ -42,10 +42,10 @@ discard block |
||
| 42 | 42 | ) { |
| 43 | 43 | $this->entityManager = $entityManager; |
| 44 | 44 | |
| 45 | - $this->metadataFactory = $classMetadataFactory? $classMetadataFactory: new ClassMetadataFactory(); |
|
| 45 | + $this->metadataFactory = $classMetadataFactory ? $classMetadataFactory : new ClassMetadataFactory(); |
|
| 46 | 46 | $this->metadataFactory->setEntityManager($this->entityManager); |
| 47 | 47 | |
| 48 | - $this->metadataGrapher = $metadataGrapher? $metadataGrapher: new MetadataGrapher(); |
|
| 48 | + $this->metadataGrapher = $metadataGrapher ? $metadataGrapher : new MetadataGrapher(); |
|
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | /** |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | $curl->setPosts(array('dsl_text' => $dsl_text)); |
| 72 | 72 | $return = $curl->getResponse(); |
| 73 | 73 | |
| 74 | - return self::YUML_REDIRECT_URL.$return; |
|
| 74 | + return self::YUML_REDIRECT_URL . $return; |
|
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | /** |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | */ |
| 82 | 82 | public function downloadImage($graphUrl, $filename, CurlInterface $curl = null) |
| 83 | 83 | { |
| 84 | - $curl = $curl? $curl: new Curl($graphUrl); |
|
| 84 | + $curl = $curl ? $curl : new Curl($graphUrl); |
|
| 85 | 85 | $curl->setOutput($filename); |
| 86 | 86 | |
| 87 | 87 | return $curl->getResponse(); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function __construct($url, $curl = null) |
| 14 | 14 | { |
| 15 | - $this->curl = $curl? $curl: curl_init(); |
|
| 15 | + $this->curl = $curl ? $curl : curl_init(); |
|
| 16 | 16 | curl_setopt($this->curl, CURLOPT_URL, $url); |
| 17 | 17 | |
| 18 | 18 | curl_setopt($this->curl, CURLOPT_SSL_VERIFYPEER, false); |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | |
| 9 | 9 | class YumlCommandTest extends \PHPUnit_Framework_TestCase |
| 10 | 10 | { |
| 11 | - const YUML_LINK = 'https://yuml.me/15a98c92.png'; |
|
| 11 | + const YUML_LINK = 'https://yuml.me/15a98c92.png'; |
|
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | 14 | * @var Application |