Passed
Push — master ( d90ddc...b63b49 )
by Luiz Kim
08:06
created
src/Controller/GetThemeColorsAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
         $css = ':root{' . PHP_EOL;
35 35
         foreach ($theme->getColors(true) as $index => $color) {
36 36
             $css .= '    --q-' . $index . ': ' . $color . ';' . PHP_EOL;
37
-            $css .= '    --'   . $index . ': ' . $color . ';' . PHP_EOL;
37
+            $css .= '    --' . $index . ': ' . $color . ';' . PHP_EOL;
38 38
         }
39 39
         $css .= '}';
40 40
         return new Response($css, Response::HTTP_OK, [
Please login to merge, or discard this patch.
src/Repository/AddressRepository.php 1 patch
Spacing   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -23,21 +23,21 @@  discard block
 block discarded – undo
23 23
     public function findOneByCityStateCountryOfPeople(string $city, string $state, string $country, People $people): ?Address
24 24
     {
25 25
       $result = $this->createQueryBuilder('a')
26
-                  ->innerJoin         ('a.street'  , 's')
27
-                  ->innerJoin         ('s.district', 'd')
28
-                  ->innerJoin         ('d.city'    , 'c')
29
-                  ->innerJoin         ('c.state'   , 'e')
30
-                  ->innerJoin         ('e.country' , 'u')
26
+                  ->innerJoin('a.street', 's')
27
+                  ->innerJoin('s.district', 'd')
28
+                  ->innerJoin('d.city', 'c')
29
+                  ->innerJoin('c.state', 'e')
30
+                  ->innerJoin('e.country', 'u')
31 31
 
32
-                  ->andWhere          ('c.city        = :city'   )
33
-                  ->andWhere          ('e.uf          = :state'  )
34
-                  ->andWhere          ('u.countryname = :country')
35
-                  ->andWhere          ('a.people      = :people' )
32
+                  ->andWhere('c.city        = :city')
33
+                  ->andWhere('e.uf          = :state')
34
+                  ->andWhere('u.countryname = :country')
35
+                  ->andWhere('a.people      = :people')
36 36
 
37
-                  ->setParameter      ('city'   , $city   )
38
-                  ->setParameter      ('state'  , $state  )
39
-                  ->setParameter      ('country', $country)
40
-                  ->setParameter      ('people' , $people)
37
+                  ->setParameter('city', $city)
38
+                  ->setParameter('state', $state)
39
+                  ->setParameter('country', $country)
40
+                  ->setParameter('people', $people)
41 41
 
42 42
                   ->getQuery()
43 43
                   ->getResult()
@@ -52,27 +52,27 @@  discard block
 block discarded – undo
52 52
     public function findPeopleAddressBy(People $people, array $criteria): ?Address
53 53
     {
54 54
       $result = $this->createQueryBuilder('a')
55
-                  ->innerJoin         ('a.street'  , 's')
56
-                  ->innerJoin         ('s.district', 'd')
57
-                  ->innerJoin         ('d.city'    , 'c')
58
-                  ->innerJoin         ('c.state'   , 'e')
59
-                  ->innerJoin         ('e.country' , 'u')
55
+                  ->innerJoin('a.street', 's')
56
+                  ->innerJoin('s.district', 'd')
57
+                  ->innerJoin('d.city', 'c')
58
+                  ->innerJoin('c.state', 'e')
59
+                  ->innerJoin('e.country', 'u')
60 60
 
61
-                  ->andWhere          ('a.people      = :people'  )
62
-                  ->andWhere          ('u.countryname = :country' )
63
-                  ->andWhere          ('(e.uf = :state OR e.state = :state)')
64
-                  ->andWhere          ('c.city        = :city'    )
65
-                  ->andWhere          ('d.district    = :district')
66
-                  ->andWhere          ('s.street      = :street'  )
67
-                  ->andWhere          ('a.number      = :number'  )
61
+                  ->andWhere('a.people      = :people')
62
+                  ->andWhere('u.countryname = :country')
63
+                  ->andWhere('(e.uf = :state OR e.state = :state)')
64
+                  ->andWhere('c.city        = :city')
65
+                  ->andWhere('d.district    = :district')
66
+                  ->andWhere('s.street      = :street')
67
+                  ->andWhere('a.number      = :number')
68 68
 
69
-                  ->setParameter      ('people'  , $people)
70
-                  ->setParameter      ('country' , $criteria['country'] )
71
-                  ->setParameter      ('state'   , $criteria['state']   )
72
-                  ->setParameter      ('city'    , $criteria['city']    )
73
-                  ->setParameter      ('district', $criteria['district'])
74
-                  ->setParameter      ('street'  , $criteria['street']  )
75
-                  ->setParameter      ('number'  , $criteria['number']  )
69
+                  ->setParameter('people', $people)
70
+                  ->setParameter('country', $criteria['country'])
71
+                  ->setParameter('state', $criteria['state'])
72
+                  ->setParameter('city', $criteria['city'])
73
+                  ->setParameter('district', $criteria['district'])
74
+                  ->setParameter('street', $criteria['street'])
75
+                  ->setParameter('number', $criteria['number'])
76 76
 
77 77
                   ->getQuery()
78 78
                   ->getResult()
Please login to merge, or discard this patch.
src/Controller/GetMenuByPeopleAction.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
    *
27 27
    * @var Request
28 28
    */
29
-  private $request  = null;
29
+  private $request = null;
30 30
 
31 31
   /**
32 32
    * Security
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
   {
53 53
     try {
54 54
 
55
-      $menu  = [];
55
+      $menu = [];
56 56
 
57 57
       $company = $request->query->get('myCompany', null);
58 58
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
        */
75 75
       $userPeople = $currentUser->getPeople();
76 76
 
77
-      $menu =  $this->getMenuByPeople($userPeople, $myCompany);
77
+      $menu = $this->getMenuByPeople($userPeople, $myCompany);
78 78
 
79 79
 
80 80
       return new JsonResponse([
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 
107 107
     // build query
108 108
 
109
-    $sql  = 'SELECT menu.*,
109
+    $sql = 'SELECT menu.*,
110 110
             category.name AS category_label,
111 111
             category.color AS category_color,
112 112
             routes.route AS route,
@@ -122,8 +122,8 @@  discard block
 block discarded – undo
122 122
 
123 123
     $params = [];
124 124
 
125
-    $params['myCompany']   = $myCompany->getId();
126
-    $params['userPeople']   = $userPeople->getId();
125
+    $params['myCompany'] = $myCompany->getId();
126
+    $params['userPeople'] = $userPeople->getId();
127 127
     // execute query
128 128
 
129 129
     $statement = $connection->prepare($sql);
Please login to merge, or discard this patch.
src/Controller/GetActionByPeopleAction.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
    *
27 27
    * @var Request
28 28
    */
29
-  private $request  = null;
29
+  private $request = null;
30 30
 
31 31
   /**
32 32
    * Security
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
   {
52 52
     try {
53 53
 
54
-      $menu  = [];
54
+      $menu = [];
55 55
 
56 56
       $company = $request->query->get('myCompany', null);
57 57
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
        */
74 74
       $userPeople = $currentUser->getPeople();
75 75
 
76
-      $menu =  $this->getMenuByPeople($userPeople, $myCompany);
76
+      $menu = $this->getMenuByPeople($userPeople, $myCompany);
77 77
 
78 78
 
79 79
       return new JsonResponse([
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 
106 106
     // build query
107 107
 
108
-    $sql  = 'SELECT action.*,routes.route
108
+    $sql = 'SELECT action.*,routes.route
109 109
 
110 110
     FROM action 
111 111
        INNER JOIN routes ON routes.id = action.route_id
@@ -122,9 +122,9 @@  discard block
 block discarded – undo
122 122
 
123 123
     $params = [];
124 124
 
125
-    $params['myCompany']   = $myCompany->getId();
126
-    $params['userPeople']   = $userPeople->getId();
127
-    $params['route']   = $this->route;
125
+    $params['myCompany'] = $myCompany->getId();
126
+    $params['userPeople'] = $userPeople->getId();
127
+    $params['route'] = $this->route;
128 128
     // execute query
129 129
 
130 130
     $statement = $connection->prepare($sql);
Please login to merge, or discard this patch.
src/Service/ExtraDataService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
             return;
29 29
         self::$persisted = true;
30 30
 
31
-        $json =       json_decode($this->request->getContent(), true);
31
+        $json = json_decode($this->request->getContent(), true);
32 32
         $extra_data = isset($json['extra-data']) ? $json['extra-data'] : null;
33 33
 
34 34
         if (!$extra_data)
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     {
46 46
         if (!$entity_id || !$entity_name)
47 47
             return;
48
-        $json =       json_decode($this->request->getContent(), true);
48
+        $json = json_decode($this->request->getContent(), true);
49 49
         $extra_data = isset($json['extra-data']) ? $json['extra-data'] : null;
50 50
 
51 51
         if (!$extra_data)
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
         if (self::$persisted == true)
81 81
             return;
82 82
         self::$persisted = true;
83
-        $json =       json_decode($this->request->getContent(), true);
83
+        $json = json_decode($this->request->getContent(), true);
84 84
         $extra_data = isset($json['extra-data']) ? $json['extra-data'] : null;
85 85
         if (!$extra_data)
86 86
             return;
Please login to merge, or discard this patch.
src/Service/PusherService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
         try {
18 18
             $this->logger->info('Attempting to push message', ['data' => $data, 'topic' => $topic]);
19 19
             
20
-            $webSocketClient =  new Client('localhost', '8080');
20
+            $webSocketClient = new Client('localhost', '8080');
21 21
             $webSocketClient->connect();
22 22
             $webSocketClient->publish($topic, json_encode($data));
23 23
             $webSocketClient->disconnect();
Please login to merge, or discard this patch.
src/Controller/GetFileDataAction.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         $this->manager = $entityManager;
36 36
     }
37 37
 
38
-    public function __invoke(File $data,  Request $request)
38
+    public function __invoke(File $data, Request $request)
39 39
     {
40 40
 
41 41
         try {
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 
47 47
 
48 48
             $content  = $file->getContent();
49
-            $response = new StreamedResponse(function () use ($content) {
49
+            $response = new StreamedResponse(function() use ($content) {
50 50
                 fputs(fopen('php://output', 'wb'), $content);
51 51
             });
52 52
 
Please login to merge, or discard this patch.
src/Service/PdfService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 
14 14
     public function showPdf($content)
15 15
     {
16
-        $response = new StreamedResponse(function () use ($content) {
16
+        $response = new StreamedResponse(function() use ($content) {
17 17
             fputs(fopen('php://output', 'wb'), $content);
18 18
         });
19 19
 
Please login to merge, or discard this patch.
src/Service/WordPressService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
         'query' => $input
21 21
       ]);
22 22
 
23
-      $result   = json_decode($response->getBody());
23
+      $result = json_decode($response->getBody());
24 24
 
25 25
       return $result;
26 26
     } catch (\Exception $e) {
Please login to merge, or discard this patch.