Passed
Push — master ( 1e96d4...6a4462 )
by y
01:37
created
src/DB/Junction.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      * @param string $interface
30 30
      * @return Junction
31 31
      */
32
-    public static function fromInterface (DB $db, string $interface) {
32
+    public static function fromInterface(DB $db, string $interface) {
33 33
         try {
34 34
             $ref = new ReflectionClass($interface);
35 35
         }
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      * @param string $table
53 53
      * @param string[] $classes
54 54
      */
55
-    public function __construct (DB $db, string $table, array $classes) {
55
+    public function __construct(DB $db, string $table, array $classes) {
56 56
         parent::__construct($db, $table, array_keys($classes));
57 57
         $this->classes = $classes;
58 58
     }
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      * @param array $match Keyed by junction column.
67 67
      * @return Select
68 68
      */
69
-    public function getCollection (string $key, array $match = []) {
69
+    public function getCollection(string $key, array $match = []) {
70 70
         $record = $this->db->getRecord($this->classes[$key]);
71 71
         $select = $record->select();
72 72
         $select->join($this, $this[$key]->isEqual($record['id']));
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      * @param int[] $ids Keyed by column.
83 83
      * @return int Rows affected.
84 84
      */
85
-    public function link (array $ids): int {
85
+    public function link(array $ids): int {
86 86
         $link = $this->cache(__FUNCTION__, function() {
87 87
             $columns = implode(',', array_keys($this->columns));
88 88
             $slots = implode(',', SQL::slots(array_keys($this->columns)));
Please login to merge, or discard this patch.