@@ -94,16 +94,16 @@ |
||
| 94 | 94 | */ |
| 95 | 95 | public function compiler($query) |
| 96 | 96 | { |
| 97 | - if (!isset($this->compilers[$query])) { |
|
| 98 | - return $this->defaultCompiler; |
|
| 99 | - } |
|
| 97 | + if (!isset($this->compilers[$query])) { |
|
| 98 | + return $this->defaultCompiler; |
|
| 99 | + } |
|
| 100 | 100 | |
| 101 | - $compiler = $this->compilers[$query]; |
|
| 101 | + $compiler = $this->compilers[$query]; |
|
| 102 | 102 | |
| 103 | - if (is_string($compiler)) { |
|
| 104 | - return $this->compilers[$query] = new $compiler($this->connection); |
|
| 105 | - } |
|
| 103 | + if (is_string($compiler)) { |
|
| 104 | + return $this->compilers[$query] = new $compiler($this->connection); |
|
| 105 | + } |
|
| 106 | 106 | |
| 107 | - return $compiler; |
|
| 107 | + return $compiler; |
|
| 108 | 108 | } |
| 109 | 109 | } |
@@ -66,16 +66,16 @@ |
||
| 66 | 66 | $this->assertEntity($expected, $entity, 0, $message); |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | - /** |
|
| 70 | - * Assert that two array of entities are equal |
|
| 71 | - * |
|
| 72 | - * @param array $expectedEntities |
|
| 73 | - * @param array $actualEntities |
|
| 74 | - * @param int $dateTimeDelta |
|
| 75 | - * @param string $message |
|
| 76 | - * |
|
| 77 | - * @throws \Exception |
|
| 78 | - */ |
|
| 69 | + /** |
|
| 70 | + * Assert that two array of entities are equal |
|
| 71 | + * |
|
| 72 | + * @param array $expectedEntities |
|
| 73 | + * @param array $actualEntities |
|
| 74 | + * @param int $dateTimeDelta |
|
| 75 | + * @param string $message |
|
| 76 | + * |
|
| 77 | + * @throws \Exception |
|
| 78 | + */ |
|
| 79 | 79 | public function assertEntities($expectedEntities, $actualEntities, $dateTimeDelta = 5, $message = '') |
| 80 | 80 | { |
| 81 | 81 | if (is_string($dateTimeDelta)) { |
@@ -724,13 +724,13 @@ |
||
| 724 | 724 | } |
| 725 | 725 | |
| 726 | 726 | $replacements = array( |
| 727 | - '<description>' => ucfirst($type).' '.$variableName, |
|
| 728 | - '<methodTypeHint>' => $methodTypeHint, |
|
| 729 | - '<variableType>' => $variableType, |
|
| 730 | - '<variableName>' => $variableName, |
|
| 731 | - '<methodName>' => $methodName, |
|
| 732 | - '<fieldName>' => $fieldName, |
|
| 733 | - '<variableDefault>' => ($defaultValue !== null ) ? (' = '.$defaultValue) : '' |
|
| 727 | + '<description>' => ucfirst($type).' '.$variableName, |
|
| 728 | + '<methodTypeHint>' => $methodTypeHint, |
|
| 729 | + '<variableType>' => $variableType, |
|
| 730 | + '<variableName>' => $variableName, |
|
| 731 | + '<methodName>' => $methodName, |
|
| 732 | + '<fieldName>' => $fieldName, |
|
| 733 | + '<variableDefault>' => ($defaultValue !== null ) ? (' = '.$defaultValue) : '' |
|
| 734 | 734 | ); |
| 735 | 735 | |
| 736 | 736 | $method = str_replace( |