Here is the list of the most complex expressions used in the code. A complex expression is an expression that requires more than 20 tokens to be build.
Literal arrays are omitted.
File | Count | Expression |
---|---|---|
/Source/Squid/MySql/Impl/Command/CmdCreate.php:210 | 1 | $command .= ') ' . $this->getPartIfSet(self::PART_ENGINE, 'ENGINE=') . $this->getPartIfSet(self::PART_CHARSET, 'CHARSET=') . $this->getPartIfSet(self::PART_CHARSET, 'AUTO_INCREMENT=') . $this->getPartIfSet(self::PART_COMMENT, 'COMMENT=') |
/Source/Squid/MySql/Impl/Command/CmdSelect.php:141 | 1 | $command .= Assembly::append('FROM', $from, ' ') . Assembly::appendWhere($this->getPart(CmdSelect::PART_WHERE)) . Assembly::append('GROUP BY', $this->getPart(CmdSelect::PART_GROUP_BY)) . ($this->getPart(CmdSelect::PART_WITH_ROLL_UP) ? 'WITH ROLLUP ' : '') . Assembly::append('HAVING', $this->getPart(CmdSelect::PART_HAVING)) . Assembly::append('ORDER BY', $this->getPart(CmdSelect::PART_ORDER_BY)) . Assembly::append('LIMIT', $this->getPart(CmdSelect::PART_LIMIT)) |
/Tests/Squid/MySql/Impl/Connectors/Objects/Join/OneToOne/OneToOneConnectorTest.php:290 | 1 | $subject = $this->subject([['a' => 1, 'b' => 2], ['a' => 2, 'b' => 2], ['a' => 3, 'b' => 3]], ['aa' => 11, 'pa' => 1, 'c' => 4]) |
/Source/Squid/MySql/Impl/Command/CmdCreate.php:189 | 1 | $command = 'CREATE ' . $this->getPartIfSet(self::PART_TEMP) . 'TABLE ' . $this->getPartIfSet(self::PART_IF_NOT_EXIST) . $this->parts[self::PART_DB] . $this->parts[self::PART_NAME] |
/Tests/Squid/MySql/Impl/Connectors/Objects/PlainObjectConnectorTest.php:91 | 1 | $res = $this->subject($this->row(1, 2))->insertObjects([$this->newObject(1, 4), $this->newObject(2, 3), $this->newObject(5, 6)], true) |
/Tests/Squid/MySql/Impl/Connectors/Objects/Polymorphic/PolymorphicIdConnectorTest.php:129 | 1 | $res = $subject->save([new DummyObject(['a' => 1, 'b' => -1]), new DummyObject(['a' => null, 'b' => 2]), new DummyObjectB(['a' => 1000, 'b' => 2, 'c' => 3]), new DummyObjectB(['a' => null, 'b' => 4, 'c' => 5]), ]) |
/Tests/Squid/MySql/Impl/Connectors/Objects/IdentityConnectorTest.php:161 | 1 | $res = $this->subject([$this->row(1, 2, 3), $this->row(4, 5, 6)])->delete([$this->createObject(1, 2, 4), $this->createObject(4, 5, 7)]) |
/Tests/Squid/MySql/Impl/Connectors/Objects/IdentityConnectorTest.php:179 | 1 | $res = $this->idSubject([$this->row(1, 2, 3), $this->row(4, 5, 6), $this->row(8, 5, 6)])->delete([$this->createObject(1, 10, 100), $this->createObject(4, 10, 100)]) |