Passed
Pull Request — develop (#155)
by Laurent
03:37 queued 01:49
created
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.
Persistence/DoctrineOrm/Repositories/DoctrineFamilyLogRepository.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 )
66 66
 SELECT DISTINCT uuid, parent_id, label, level, path, slug FROM cte
67 67
 ORDER BY level
68
-SQL;
68
+sql;
69 69
 
70 70
         // Get parents
71 71
         $result = $this->connection->executeQuery($query, ['uuid' => $uuid])->fetchAllAssociative();
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 )
96 96
 SELECT DISTINCT uuid, parent_id, label, level, path, slug FROM cte
97 97
 ORDER BY level
98
-SQL;
98
+sql;
99 99
         // Get children
100 100
         $result = $this->connection->executeQuery($query, ['uuid' => $uuid])->fetchAllAssociative();
101 101
 
Please login to merge, or discard this patch.