Skip to content

Commit 54982d6

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 9a54249 + 60a25fe commit 54982d6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+60
-59
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
!/.travis.yml
77
!/composer.json
88
!/README.md
9-
!/tests.xml
9+
!/tests.xml

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
language: php
22

33
php:
4+
- 7
45
- 5.6
56
- 5.5
67
- 5.4
7-
- hhvm
88

99
before_script:
1010
- composer self-update

README.md

Lines changed: 3 additions & 1 deletion

composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@
88
}],
99
"require": {
1010
"php": ">= 5.4",
11+
"ext-pdo": "*",
12+
"ext-spl": "*",
1113
"psr/log": "~1"
1214
},
1315
"require-dev": {
1416
"phpunit/phpunit": "~4.0",
1517
"phake/phake": "1.0.5",
16-
"jimbojsb/pseudo": "dev-master"
18+
"rkr/fakepdo": "0.1"
1719
},
1820
"autoload": {
1921
"psr-4": {
@@ -25,4 +27,4 @@
2527
"Kir\\MySQL\\": ["src/", "tests/"]
2628
}
2729
}
28-
}
30+
}

src/Builder/Delete.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ public function __toString() {
5656
$query = $this->buildOffset($query);
5757
return $query;
5858
}
59-
}
59+
}

src/Builder/Exception.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
namespace Kir\MySQL\Builder;
33

44
class Exception extends \Exception {
5-
}
5+
}

src/Builder/Insert.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,13 @@ class Insert extends InsertUpdateStatement {
1717
private $ignore = false;
1818
/** @var Select */
1919
private $from = null;
20-
/** @var callable */
21-
private $tableFields = null;
2220

2321
/**
2422
* @param string $table
2523
* @return $this
2624
*/
2725
public function into($table) {
2826
$this->table = $table;
29-
$this->tableFields = function () {
30-
static $cache = null;
31-
if($cache === null) {
32-
$cache = $this->db()->getTableFields($this->table);
33-
}
34-
};
3527
return $this;
3628
}
3729

@@ -282,4 +274,4 @@ private function clearValues(array $values) {
282274

283275
return $result;
284276
}
285-
}
277+
}

src/Builder/InsertUpdateStatement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ protected function isFieldAccessible($fieldName, array $tableFields) {
6262
}
6363
return in_array($fieldName, $this->mask);
6464
}
65-
}
65+
}

src/Builder/Internal/ConditionBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ public static function build(Database $db, $query, array $conditions, $token) {
2525
$query .= join("\n\tAND\n", $arr);
2626
return $query."\n";
2727
}
28-
}
28+
}

src/Builder/Internal/DefaultValue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
namespace Kir\MySQL\Builder\Internal;
33

44
class DefaultValue {
5-
}
5+
}

0 commit comments

Comments
 (0)