@@ -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); |