Completed
Push — master ( 369134...92f766 )
by Davide
02:27
created
src/DavidePastore/CodiceFiscaleRest/CodiceFiscaleControllerProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
         $api = $app['controllers_factory'];
21 21
 
22 22
         //Calculate the codice fiscale by the given parameters.
23
-        $api->get('/calculate', function (Application $app, Request $request) {
23
+        $api->get('/calculate', function(Application $app, Request $request) {
24 24
             $constraint = new Assert\Collection(array(
25 25
                 'name' => $app['codice-fiscale-rest.constraints']['name'],
26 26
                 'surname' => $app['codice-fiscale-rest.constraints']['surname'],
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
 
63 63
         //Calculate all the codice fiscale by the given parameters.
64
-        $api->get('/calculateAll', function (Application $app, Request $request) {
64
+        $api->get('/calculateAll', function(Application $app, Request $request) {
65 65
             $constraint = new Assert\Collection(array(
66 66
                 'name' => $app['codice-fiscale-rest.constraints']['name'],
67 67
                 'surname' => $app['codice-fiscale-rest.constraints']['surname'],
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
         ->bind('apiCalculateAll');
99 99
 
100 100
         //Check if the given parameters are ok for the given parameters.
101
-        $api->get('/check', function (Application $app, Request $request) {
101
+        $api->get('/check', function(Application $app, Request $request) {
102 102
             $constraint = new Assert\Collection(array(
103 103
                 'name' => $app['codice-fiscale-rest.constraints']['name'],
104 104
                 'surname' => $app['codice-fiscale-rest.constraints']['surname'],
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      * @param $errors The ConstraintViolationList instance.
155 155
      * @return Returns the response from the given errors.
156 156
      */
157
-    private function generateResponseFromErrors(\Symfony\Component\Validator\ConstraintViolationList $errors){
157
+    private function generateResponseFromErrors(\Symfony\Component\Validator\ConstraintViolationList $errors) {
158 158
         $response = new \stdclass;
159 159
         $response->status = false;
160 160
         $accessor = PropertyAccess::createPropertyAccessor();
Please login to merge, or discard this patch.