@@ -2,14 +2,14 @@ |
||
2 | 2 | |
3 | 3 | namespace AppBundle\Controller; |
4 | 4 | |
5 | +use AppBundle\Entity\Contact; |
|
5 | 6 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
6 | 7 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
7 | 8 | use Symfony\Component\Form\Extension\Core\Type\EmailType; |
8 | 9 | use Symfony\Component\Form\Extension\Core\Type\SubmitType; |
9 | -use Symfony\Component\Form\Extension\Core\Type\TextareaType; |
|
10 | 10 | use Symfony\Component\Form\Extension\Core\Type\TextType; |
11 | +use Symfony\Component\Form\Extension\Core\Type\TextareaType; |
|
11 | 12 | use Symfony\Component\HttpFoundation\Request; |
12 | -use AppBundle\Entity\Contact; |
|
13 | 13 | |
14 | 14 | class DefaultController extends Controller |
15 | 15 | { |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | |
51 | 51 | $form->handleRequest($request); |
52 | 52 | |
53 | - if($form->isValid()) { |
|
53 | + if ($form->isValid()) { |
|
54 | 54 | // send email to admin |
55 | 55 | |
56 | 56 | $message = \Swift_Message::newInstance() |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | $docsContributors = $client->api('repo')->contributors('symfony-si', 'symfony-docs-sl'); |
94 | 94 | $contributors = array(); |
95 | 95 | |
96 | - foreach($srcContributors as $key=>$contributor) { |
|
96 | + foreach ($srcContributors as $key=>$contributor) { |
|
97 | 97 | $user = $client->api('user')->show($contributor['login']); |
98 | 98 | $contributors[$contributor['login']] = array( |
99 | 99 | 'name' => ($user['name']) ? $user['name'] : $contributor['login'], |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | ); |
103 | 103 | } |
104 | 104 | |
105 | - foreach($docsContributors as $key=>$contributor) { |
|
105 | + foreach ($docsContributors as $key=>$contributor) { |
|
106 | 106 | $user = $client->api('user')->show($contributor['login']); |
107 | 107 | $contributors[$contributor['login']] = array( |
108 | 108 | 'name' => ($user['name']) ? $user['name'] : $contributor['login'], |
@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace SymfonySi\EcosystemBundle\DependencyInjection; |
4 | 4 | |
5 | -use Symfony\Component\DependencyInjection\ContainerBuilder; |
|
6 | 5 | use Symfony\Component\Config\FileLocator; |
7 | -use Symfony\Component\HttpKernel\DependencyInjection\Extension; |
|
6 | +use Symfony\Component\DependencyInjection\ContainerBuilder; |
|
8 | 7 | use Symfony\Component\DependencyInjection\Loader; |
8 | +use Symfony\Component\HttpKernel\DependencyInjection\Extension; |
|
9 | 9 | |
10 | 10 | /** |
11 | 11 | * This is the class that loads and manages your bundle configuration |
@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace SymfonySi\EcosystemBundle\DependencyInjection; |
4 | 4 | |
5 | -use Symfony\Component\DependencyInjection\ContainerBuilder; |
|
6 | 5 | use Symfony\Component\Config\FileLocator; |
7 | -use Symfony\Component\HttpKernel\DependencyInjection\Extension; |
|
6 | +use Symfony\Component\DependencyInjection\ContainerBuilder; |
|
8 | 7 | use Symfony\Component\DependencyInjection\Loader; |
8 | +use Symfony\Component\HttpKernel\DependencyInjection\Extension; |
|
9 | 9 | |
10 | 10 | /** |
11 | 11 | * This is the class that loads and manages your bundle configuration |
@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace SymfonySi\EcosystemBundle\DependencyInjection; |
4 | 4 | |
5 | -use Symfony\Component\DependencyInjection\ContainerBuilder; |
|
6 | 5 | use Symfony\Component\Config\FileLocator; |
7 | -use Symfony\Component\HttpKernel\DependencyInjection\Extension; |
|
6 | +use Symfony\Component\DependencyInjection\ContainerBuilder; |
|
8 | 7 | use Symfony\Component\DependencyInjection\Loader; |
8 | +use Symfony\Component\HttpKernel\DependencyInjection\Extension; |
|
9 | 9 | |
10 | 10 | /** |
11 | 11 | * This is the class that loads and manages your bundle configuration |