Passed
Push — feature-family-log ( d36cb7...455fa6 )
by Laurent
06:20
created
Administration/Infrastructure/Finders/Doctrine/DoctrineCompanyFinder.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     company.slug as slug
51 51
 FROM company
52 52
 WHERE uuid = :uuid
53
-SQL;
53
+sql;
54 54
         $result = $this->connection->executeQuery($query, ['uuid' => $uuid])->fetchOne();
55 55
 
56 56
         return new CompanyModel(
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
     company.slug as slug
91 91
 FROM company
92 92
 ORDER BY name
93
-SQL;
93
+sql;
94 94
         $result = $this->connection->executeQuery($query)->fetchAllAssociative();
95 95
 
96 96
         return new Companies(
Please login to merge, or discard this patch.
src/Administration/Infrastructure/Finders/Doctrine/DoctrineUserFinder.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     user.roles as roles
44 44
 FROM user
45 45
 WHERE username = :username
46
-SQL;
46
+sql;
47 47
         $result = $this->connection->executeQuery($query, ['username' => $username])->fetchAssociative();
48 48
 
49 49
         if (false === $result) {
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     user.roles as roles
73 73
 FROM user
74 74
 WHERE uuid = :uuid
75
-SQL;
75
+sql;
76 76
         $result = $this->connection->executeQuery($query, ['uuid' => $uuid])->fetchAssociative();
77 77
 
78 78
         if (false === $result) {
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
     user.email as email,
101 101
     user.roles as roles
102 102
 FROM user
103
-SQL;
103
+sql;
104 104
         $result = $this->connection->executeQuery($query)->fetchAllAssociative();
105 105
 
106 106
         return new Users(
Please login to merge, or discard this patch.
Administration/Infrastructure/Finders/Doctrine/DoctrineSettingsFinder.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     settings.currency as currency,
40 40
     settings.locale as locale
41 41
 FROM settings
42
-SQL;
42
+sql;
43 43
         $result = $this->connection->executeQuery($query)->fetchAssociative();
44 44
 
45 45
         if (false !== $result) {
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     settings.locale as locale
62 62
 FROM settings
63 63
 WHERE locale = :locale
64
-SQL;
64
+sql;
65 65
         $result = $this->connection->executeQuery($query, ['locale' => $locale])->fetchAssociative();
66 66
 
67 67
         if (false !== $result) {
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     settings.locale as locale
84 84
 FROM settings
85 85
 WHERE currency = :currency
86
-SQL;
86
+sql;
87 87
         $result = $this->connection->executeQuery($query, ['currency' => $currency])->fetchAssociative();
88 88
 
89 89
         if (false !== $result) {
Please login to merge, or discard this patch.
Persistence/DoctrineOrm/Repositories/DoctrineUserRepository.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     user.roles as roles
83 83
 FROM user
84 84
 WHERE uuid = :uuid
85
-SQL;
85
+sql;
86 86
         $result = $this->connection->executeQuery($query, ['uuid' => $uuid])->fetchAssociative();
87 87
 
88 88
         return User::create(
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
         $query = <<<'SQL'
103 103
 SELECT username FROM user
104 104
 WHERE username = :username
105
-SQL;
105
+sql;
106 106
         $statement = $this->connection->executeQuery($query, ['username' => $username])->fetchAssociative();
107 107
 
108 108
         return false !== $statement;
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
         $query = <<<'SQL'
117 117
 SELECT email FROM user
118 118
 WHERE email = :email
119
-SQL;
119
+sql;
120 120
         $statement = $this->connection->executeQuery($query, ['email' => $email])->fetchAssociative();
121 121
 
122 122
         return false !== $statement;
Please login to merge, or discard this patch.
Persistence/DoctrineOrm/Repositories/DoctrineSettingsRepository.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     settings.locale as locale
72 72
 FROM settings
73 73
 WHERE uuid = :uuid
74
-SQL;
74
+sql;
75 75
         $result = $this->connection->executeQuery($query, ['uuid' => $uuid])->fetchAssociative();
76 76
 
77 77
         return Settings::create(
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     {
89 89
         $query = <<<'SQL'
90 90
 SELECT uuid FROM settings
91
-SQL;
91
+sql;
92 92
 
93 93
         $statement = $this->connection->executeQuery($query)->fetchAssociative();
94 94
 
Please login to merge, or discard this patch.
Persistence/DoctrineOrm/Repositories/DoctrineCompanyRepository.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         $query = <<<'SQL'
41 41
 SELECT uuid FROM company
42 42
 WHERE name = :name
43
-SQL;
43
+sql;
44 44
         $statement = $this->connection->executeQuery($query, ['name' => $name])->fetchOne();
45 45
 
46 46
         return !(false === $statement);
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
     company.slug as slug
113 113
 FROM company
114 114
 WHERE uuid = :uuid
115
-SQL;
115
+sql;
116 116
         $result = $this->connection->executeQuery($query, ['uuid' => $uuid])->fetchAssociative();
117 117
 
118 118
         return Company::create(
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
     {
139 139
         $query = <<<'SQL'
140 140
 SELECT uuid FROM company
141
-SQL;
141
+sql;
142 142
         $statement = $this->connection->executeQuery($query)->fetchOne();
143 143
 
144 144
         return !(false === $statement);
Please login to merge, or discard this patch.
Persistence/DoctrineOrm/Repositories/DoctrineSupplierRepository.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         $query = <<<'SQL'
43 43
 SELECT uuid FROM supplier
44 44
 WHERE name = :name
45
-SQL;
45
+sql;
46 46
         $statement = $this->connection->executeQuery($query, ['name' => $name])->fetchOne();
47 47
 
48 48
         return !(false === $statement);
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 FROM supplier
109 109
 JOIN family_log on family_log.uuid = supplier.family_log_id
110 110
 WHERE supplier.uuid = :uuid
111
-SQL;
111
+sql;
112 112
         $result = $this->connection->executeQuery($query, ['uuid' => $uuid])->fetchAssociative();
113 113
         if (null === $result) {
114 114
             throw new SupplierNotFound();
Please login to merge, or discard this patch.
Administration/Infrastructure/Finders/Doctrine/DoctrineFamilyLogFinder.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
 )
67 67
 SELECT DISTINCT uuid, parent_id, label, level, path, slug FROM cte
68 68
 ORDER BY level DESC
69
-SQL;
69
+sql;
70 70
 
71 71
         $results = $this->connection->executeQuery($query)->fetchAllAssociative();
72 72
 
Please login to merge, or discard this patch.
Administration/Infrastructure/Finders/Doctrine/DoctrineSupplierFinder.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     supplier.slug as slug
58 58
 FROM supplier
59 59
 WHERE uuid = :uuid
60
-SQL;
60
+sql;
61 61
         $result = $this->connection->executeQuery($query, ['uuid' => $uuid])->fetchAssociative();
62 62
 
63 63
         if (null === $result) {
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 FROM supplier
115 115
 INNER JOIN family_log ON supplier.family_log_id = family_log.uuid
116 116
 WHERE active = 1
117
-SQL;
117
+sql;
118 118
         $results = $this->connection->executeQuery($query)->fetchAllAssociative();
119 119
 
120 120
         return new Suppliers(
Please login to merge, or discard this patch.