Passed
Push — master ( 74bc2a...6c4562 )
by y
02:11
created
src/DB/Record.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -62,8 +62,7 @@  discard block
 block discarded – undo
62 62
     public static function fromClass (DB $db, $class) {
63 63
         try {
64 64
             $rClass = new ReflectionClass($class);
65
-        }
66
-        catch (ReflectionException $exception) {
65
+        } catch (ReflectionException $exception) {
67 66
             throw new LogicException('Unexpected ReflectionException', 0, $exception);
68 67
         }
69 68
         $columns = [];
@@ -74,8 +73,7 @@  discard block
 block discarded – undo
74 73
             $name = $rProp->getName();
75 74
             if (preg_match('/@col(umn)?[\s$]/', $doc)) {
76 75
                 $columns[] = $name;
77
-            }
78
-            elseif (preg_match('/@eav\s+(?<table>\S+)/', $doc, $attr)) {
76
+            } elseif (preg_match('/@eav\s+(?<table>\S+)/', $doc, $attr)) {
79 77
                 $eav[$name] = $db->factory(EAV::class, $db, $attr['table']);
80 78
             }
81 79
         }
@@ -114,8 +112,7 @@  discard block
 block discarded – undo
114 112
                 $rProp->setAccessible(true);
115 113
                 $this->properties[$name] = $rProp;
116 114
             }
117
-        }
118
-        catch (ReflectionException $exception) {
115
+        } catch (ReflectionException $exception) {
119 116
             throw new LogicException('Unexpected ReflectionException', 0, $exception);
120 117
         }
121 118
     }
@@ -242,8 +239,7 @@  discard block
 block discarded – undo
242 239
     public function save (EntityInterface $entity): int {
243 240
         if (!$entity->getId()) {
244 241
             $this->saveInsert($entity);
245
-        }
246
-        else {
242
+        } else {
247 243
             $this->saveUpdate($entity);
248 244
         }
249 245
         $this->saveEav($entity);
Please login to merge, or discard this patch.
src/DB/SQL/PredicateTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
      *
13 13
      * @return Predicate
14 14
      */
15
-    public function isFalse () {
15
+    public function isFalse() {
16 16
         return $this->db->factory(Predicate::class, "{$this} IS FALSE");
17 17
     }
18 18
 
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      *
22 22
      * @return Predicate
23 23
      */
24
-    public function isNotNull () {
24
+    public function isNotNull() {
25 25
         return $this->db->factory(Predicate::class, "{$this} IS NOT NULL");
26 26
     }
27 27
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      *
31 31
      * @return Predicate
32 32
      */
33
-    public function isNull () {
33
+    public function isNull() {
34 34
         return $this->db->factory(Predicate::class, "{$this} IS NULL");
35 35
     }
36 36
 }
37 37
\ No newline at end of file
Please login to merge, or discard this patch.
src/DB/SQL/Text.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
      *
15 15
      * @return Numeric
16 16
      */
17
-    public function toFloat () {
17
+    public function toFloat() {
18 18
         switch ($this->db) {
19 19
             case 'sqlite':
20 20
                 return $this->db->factory(Numeric::class, $this->db, "CAST({$this} AS REAL)");
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      *
29 29
      * @return Numeric
30 30
      */
31
-    public function toInt () {
31
+    public function toInt() {
32 32
         switch ($this->db) {
33 33
             case 'sqlite':
34 34
                 return $this->db->factory(Numeric::class, $this->db, "CAST({$this} AS INTEGER)");
Please login to merge, or discard this patch.
src/DB/SQL/AggregateTrait.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
      * @param string $aggregate `ALL|DISTINCT`
21 21
      * @return Numeric
22 22
      */
23
-    public function getAvg ($aggregate = 'ALL') {
23
+    public function getAvg($aggregate = 'ALL') {
24 24
         return $this->db->factory(Numeric::class, $this->db, "AVG({$aggregate} {$this})");
25 25
     }
26 26
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      * @param string $delimiter
31 31
      * @return Text
32 32
      */
33
-    public function getConcat (string $delimiter = ',') {
33
+    public function getConcat(string $delimiter = ',') {
34 34
         $delimiter = $this->db->quote($delimiter);
35 35
         switch ($this->db) {
36 36
             case 'sqlite':
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      * @param string $aggregate `ALL|DISTINCT`
47 47
      * @return Numeric
48 48
      */
49
-    public function getCount (string $aggregate = 'ALL') {
49
+    public function getCount(string $aggregate = 'ALL') {
50 50
         return $this->db->factory(Numeric::class, $this->db, "COUNT({$aggregate} {$this})");
51 51
     }
52 52
 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      *
56 56
      * @return Numeric
57 57
      */
58
-    public function getMax () {
58
+    public function getMax() {
59 59
         return $this->db->factory(Numeric::class, $this->db, "MAX({$this})");
60 60
     }
61 61
 
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      *
65 65
      * @return Numeric
66 66
      */
67
-    public function getMin () {
67
+    public function getMin() {
68 68
         return $this->db->factory(Numeric::class, $this->db, "MIN({$this})");
69 69
     }
70 70
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      * @param string $aggregate `ALL|DISTINCT`
75 75
      * @return Numeric
76 76
      */
77
-    public function getSum (string $aggregate = 'ALL') {
77
+    public function getSum(string $aggregate = 'ALL') {
78 78
         return $this->db->factory(Numeric::class, $this->db, "SUM({$aggregate} {$this})");
79 79
     }
80 80
 }
81 81
\ No newline at end of file
Please login to merge, or discard this patch.
src/DB/SQL/TextTrait.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     /**
18 18
      * @return Text
19 19
      */
20
-    public function getHex () {
20
+    public function getHex() {
21 21
         return $this->db->factory(Text::class, $this->db, "HEX({$this})");
22 22
     }
23 23
 
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      *
29 29
      * @return Numeric
30 30
      */
31
-    public function getLength () {
31
+    public function getLength() {
32 32
         switch ($this->db) {
33 33
             case 'sqlite':
34 34
                 return $this->db->factory(Numeric::class, $this->db, "LENGTH(CAST({$this} AS TEXT))");
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      *
43 43
      * @return Text
44 44
      */
45
-    public function getLower () {
45
+    public function getLower() {
46 46
         return $this->db->factory(Text::class, $this->db, "LOWER({$this})");
47 47
     }
48 48
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      * @param string $substring
55 55
      * @return Numeric
56 56
      */
57
-    public function getPosition (string $substring) {
57
+    public function getPosition(string $substring) {
58 58
         $substring = $this->db->quote($substring);
59 59
         switch ($this->db) {
60 60
             case 'sqlite':
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      * @param string $replace
72 72
      * @return Text
73 73
      */
74
-    public function getReplacement (string $search, string $replace) {
74
+    public function getReplacement(string $search, string $replace) {
75 75
         $search = $this->db->quote($search);
76 76
         $replace = $this->db->quote($replace);
77 77
         return $this->db->factory(Text::class, $this->db, "REPLACE({$this},{$search},{$replace})");
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      *
83 83
      * @return Numeric
84 84
      */
85
-    public function getSize () {
85
+    public function getSize() {
86 86
         switch ($this->db) {
87 87
             case 'sqlite':
88 88
                 return $this->db->factory(Numeric::class, $this->db, "LENGTH(CAST({$this} AS BLOB))");
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      * @param int $length
99 99
      * @return Text
100 100
      */
101
-    public function getSubstring (int $start, int $length = null) {
101
+    public function getSubstring(int $start, int $length = null) {
102 102
         if (isset($length)) {
103 103
             return $this->db->factory(Text::class, $this->db, "SUBSTR({$this},{$start},{$length})");
104 104
         }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      *
111 111
      * @return Text
112 112
      */
113
-    public function getUpper () {
113
+    public function getUpper() {
114 114
         return $this->db->factory(Text::class, $this->db, "UPPER({$this})");
115 115
     }
116 116
 }
117 117
\ No newline at end of file
Please login to merge, or discard this patch.
src/DB/SQL/DateTimeTrait.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
      *
20 20
      * @return Text
21 21
      */
22
-    public function getDate () {
22
+    public function getDate() {
23 23
         return $this->db->factory(Text::class, $this->db, $this->getDateTimeFormat('%Y-%m-%d'));
24 24
     }
25 25
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      * @param string|array $format Format, or formats keyed by driver name.
30 30
      * @return Text
31 31
      */
32
-    public function getDateTimeFormat ($format) {
32
+    public function getDateTimeFormat($format) {
33 33
         $driver = $this->db->getDriver();
34 34
         if (is_array($format)) {
35 35
             $format = $format[$driver];
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      *
49 49
      * @return Numeric
50 50
      */
51
-    public function getDay () {
51
+    public function getDay() {
52 52
         return $this->db->factory(Numeric::class, $this->db, $this->getDateTimeFormat('%d'));
53 53
     }
54 54
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      *
58 58
      * @return Numeric
59 59
      */
60
-    public function getDayOfWeek () {
60
+    public function getDayOfWeek() {
61 61
         return $this->db->factory(Numeric::class, $this->db, $this->getDateTimeFormat('%w'));
62 62
     }
63 63
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      *
67 67
      * @return Numeric
68 68
      */
69
-    public function getDayOfYear () {
69
+    public function getDayOfYear() {
70 70
         return $this->db->factory(Numeric::class, $this->db, $this->getDateTimeFormat('%j'));
71 71
     }
72 72
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
      *
76 76
      * @return Numeric
77 77
      */
78
-    public function getHours () {
78
+    public function getHours() {
79 79
         return $this->db->factory(Numeric::class, $this->db, $this->getDateTimeFormat('%H'));
80 80
     }
81 81
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      *
85 85
      * @return Numeric
86 86
      */
87
-    public function getMinutes () {
87
+    public function getMinutes() {
88 88
         return $this->db->factory(Numeric::class, $this->db, $this->getDateTimeFormat([
89 89
             'mysql' => '%i',
90 90
             'sqlite' => '%M'
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      *
97 97
      * @return Numeric
98 98
      */
99
-    public function getMonth () {
99
+    public function getMonth() {
100 100
         return $this->db->factory(Numeric::class, $this->db, $this->getDateTimeFormat('%m'));
101 101
     }
102 102
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      *
106 106
      * @return Numeric
107 107
      */
108
-    public function getSeconds () {
108
+    public function getSeconds() {
109 109
         return $this->db->factory(Numeric::class, $this->db, $this->getDateTimeFormat('%S'));
110 110
     }
111 111
 
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      *
115 115
      * @return Text
116 116
      */
117
-    public function getTime () {
117
+    public function getTime() {
118 118
         return $this->db->factory(Text::class, $this->db, $this->getDateTimeFormat([
119 119
             'mysql' => '%H:%i:%S',
120 120
             'sqlite' => '%H:%M:%S'
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
      *
127 127
      * @return Numeric
128 128
      */
129
-    public function getTimestamp () {
129
+    public function getTimestamp() {
130 130
         switch ($this->db) {
131 131
             case 'sqlite':
132 132
                 return $this->db->factory(Numeric::class, $this->db, "STRFTIME('%s',{$this})");
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
      *
141 141
      * @return Numeric
142 142
      */
143
-    public function getWeekOfYear () {
143
+    public function getWeekOfYear() {
144 144
         return $this->db->factory(Numeric::class, $this->db, $this->getDateTimeFormat([
145 145
             'mysql' => '%U',
146 146
             'sqlite' => '%W'
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
      *
153 153
      * @return Numeric
154 154
      */
155
-    public function getYear () {
155
+    public function getYear() {
156 156
         return $this->db->factory(Numeric::class, $this->db, $this->getDateTimeFormat('%Y'));
157 157
     }
158 158
 }
159 159
\ No newline at end of file
Please login to merge, or discard this patch.
src/DB/SQL/NumericTrait.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
      *
20 20
      * @return Numeric
21 21
      */
22
-    public function abs () {
22
+    public function abs() {
23 23
         return $this->db->factory(Numeric::class, $this->db, "ABS({$this})");
24 24
     }
25 25
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      * @param number|ValueInterface $arg
30 30
      * @return Numeric
31 31
      */
32
-    public function add ($arg) {
32
+    public function add($arg) {
33 33
         return $this->db->factory(Numeric::class, $this->db, "({$this} + {$arg})");
34 34
     }
35 35
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      *
39 39
      * @return Numeric
40 40
      */
41
-    public function ceil () {
41
+    public function ceil() {
42 42
         return $this->db->factory(Numeric::class, $this->db, "CEIL({$this})");
43 43
     }
44 44
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      * @param number|ValueInterface $arg
49 49
      * @return Numeric
50 50
      */
51
-    public function divide ($arg) {
51
+    public function divide($arg) {
52 52
         return $this->db->factory(Numeric::class, $this->db, "({$this} / {$arg})");
53 53
     }
54 54
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      *
58 58
      * @return Numeric
59 59
      */
60
-    public function floor () {
60
+    public function floor() {
61 61
         return $this->db->factory(Numeric::class, $this->db, "FLOOR({$this})");
62 62
     }
63 63
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      *
67 67
      * @return Predicate
68 68
      */
69
-    public function isEven () {
69
+    public function isEven() {
70 70
         return $this->db->factory(Predicate::class, "({$this} % 2) = 0");
71 71
     }
72 72
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
      *
76 76
      * @return Predicate
77 77
      */
78
-    public function isNegative () {
78
+    public function isNegative() {
79 79
         return $this->db->factory(Predicate::class, "{$this} < 0");
80 80
     }
81 81
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      *
85 85
      * @return Predicate
86 86
      */
87
-    public function isOdd () {
87
+    public function isOdd() {
88 88
         return $this->db->factory(Predicate::class, "({$this} % 2) <> 0");
89 89
     }
90 90
 
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      *
94 94
      * @return Predicate
95 95
      */
96
-    public function isPositive () {
96
+    public function isPositive() {
97 97
         return $this->db->factory(Predicate::class, "{$this} > 0");
98 98
     }
99 99
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      * @param number|ValueInterface $arg
104 104
      * @return Numeric
105 105
      */
106
-    public function modulo ($arg) {
106
+    public function modulo($arg) {
107 107
         return $this->db->factory(Numeric::class, $this->db, "({$this} % {$arg})");
108 108
     }
109 109
 
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      * @param number|ValueInterface $arg
114 114
      * @return Numeric
115 115
      */
116
-    public function multiply ($arg) {
116
+    public function multiply($arg) {
117 117
         return $this->db->factory(Numeric::class, $this->db, "({$this} * {$arg})");
118 118
     }
119 119
 
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      * @param number|ValueInterface $exponent
124 124
      * @return Numeric
125 125
      */
126
-    public function pow ($exponent) {
126
+    public function pow($exponent) {
127 127
         return $this->db->factory(Numeric::class, $this->db, "POW({$this},{$exponent})");
128 128
     }
129 129
 
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
      * @param int $decimals
134 134
      * @return Numeric
135 135
      */
136
-    public function round (int $decimals = 0) {
136
+    public function round(int $decimals = 0) {
137 137
         return $this->db->factory(Numeric::class, $this->db, "ROUND({$this},{$decimals})");
138 138
     }
139 139
 
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      * @param number|ValueInterface $arg
144 144
      * @return Numeric
145 145
      */
146
-    public function subtract ($arg) {
146
+    public function subtract($arg) {
147 147
         return $this->db->factory(Numeric::class, $this->db, "({$this} - {$arg})");
148 148
     }
149 149
 }
150 150
\ No newline at end of file
Please login to merge, or discard this patch.
src/DB/SQL/ComparisonTrait.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      * @param array $values
29 29
      * @return Value
30 30
      */
31
-    public function coalesce (array $values) {
31
+    public function coalesce(array $values) {
32 32
         array_unshift($values, $this);
33 33
         $values = $this->db->quoteList($values);
34 34
         return $this->db->factory(Value::class, $this->db, "COALESCE({$values})");
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      * @param array $values `[when => then]`
41 41
      * @return Choice
42 42
      */
43
-    public function getChoice (array $values) {
43
+    public function getChoice(array $values) {
44 44
         return $this->db->factory(Choice::class, $this->db, "{$this}", $values);
45 45
     }
46 46
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      * @param null|bool|number|string|Select $arg
54 54
      * @return Predicate
55 55
      */
56
-    public function is ($arg): Predicate {
56
+    public function is($arg): Predicate {
57 57
         $driver = $this->db->getDriver();
58 58
         if ($arg instanceof Select) {
59 59
             switch ($driver) {
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      * @param number $max
83 83
      * @return Predicate
84 84
      */
85
-    public function isBetween ($min, $max) {
85
+    public function isBetween($min, $max) {
86 86
         $min = $this->db->quote($min);
87 87
         $max = $this->db->quote($max);
88 88
         return $this->db->factory(Predicate::class, "{$this} BETWEEN {$min} AND {$max}");
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      * @param bool|number|string|array|Select $arg
95 95
      * @return Predicate
96 96
      */
97
-    public function isEqual ($arg) {
97
+    public function isEqual($arg) {
98 98
         return $this->db->match($this, $arg);
99 99
     }
100 100
 
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      * @param string $multi `ALL|ANY`
111 111
      * @return Predicate
112 112
      */
113
-    public function isGreater ($arg, string $multi = 'ALL') {
113
+    public function isGreater($arg, string $multi = 'ALL') {
114 114
         if ($arg instanceof Select) {
115 115
             switch ($this->db) {
116 116
                 case 'sqlite':
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
      * @param string $multi `ALL|ANY`
142 142
      * @return Predicate
143 143
      */
144
-    public function isGreaterOrEqual ($arg, string $multi = 'ALL') {
144
+    public function isGreaterOrEqual($arg, string $multi = 'ALL') {
145 145
         if ($arg instanceof Select) {
146 146
             switch ($this->db) {
147 147
                 case 'sqlite':
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
      * @param string $multi `ALL|ANY`
173 173
      * @return Predicate
174 174
      */
175
-    public function isLess ($arg, string $multi = 'ALL') {
175
+    public function isLess($arg, string $multi = 'ALL') {
176 176
         if ($arg instanceof Select) {
177 177
             switch ($this->db) {
178 178
                 case 'sqlite':
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
      * @param string $multi `ALL|ANY`
204 204
      * @return Predicate
205 205
      */
206
-    public function isLessOrEqual ($arg, string $multi = 'ALL') {
206
+    public function isLessOrEqual($arg, string $multi = 'ALL') {
207 207
         if ($arg instanceof Select) {
208 208
             switch ($this->db) {
209 209
                 case 'sqlite':
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
      * @param string $pattern
229 229
      * @return Predicate
230 230
      */
231
-    public function isLike (string $pattern) {
231
+    public function isLike(string $pattern) {
232 232
         $pattern = $this->db->quote($pattern);
233 233
         return $this->db->factory(Predicate::class, "{$this} LIKE {$pattern}");
234 234
     }
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
      * @param null|bool|number|string|Select $arg
240 240
      * @return Predicate
241 241
      */
242
-    public function isNot ($arg) {
242
+    public function isNot($arg) {
243 243
         return $this->is($arg)->invert();
244 244
     }
245 245
 
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
      * @param number $max
251 251
      * @return Predicate
252 252
      */
253
-    public function isNotBetween ($min, $max) {
253
+    public function isNotBetween($min, $max) {
254 254
         $min = $this->db->quote($min);
255 255
         $max = $this->db->quote($max);
256 256
         return $this->db->factory(Predicate::class, "{$this} NOT BETWEEN {$min} AND {$max}");
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
      * @param bool|number|string|array|Select $arg
263 263
      * @return Predicate
264 264
      */
265
-    public function isNotEqual ($arg) {
265
+    public function isNotEqual($arg) {
266 266
         if ($arg instanceof Select) {
267 267
             return $this->db->factory(Predicate::class, "{$this} NOT IN ({$arg->toSql()})");
268 268
         }
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
      * @param string $pattern
279 279
      * @return Predicate
280 280
      */
281
-    public function isNotLike (string $pattern) {
281
+    public function isNotLike(string $pattern) {
282 282
         $pattern = $this->db->quote($pattern);
283 283
         return $this->db->factory(Predicate::class, "{$this} NOT LIKE {$pattern}");
284 284
     }
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
      * @param string $pattern
290 290
      * @return Predicate
291 291
      */
292
-    public function isNotRegExp (string $pattern) {
292
+    public function isNotRegExp(string $pattern) {
293 293
         $pattern = $this->db->quote($pattern);
294 294
         return $this->db->factory(Predicate::class, "{$this} NOT REGEXP {$pattern}");
295 295
     }
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
      * @param string $pattern
301 301
      * @return Predicate
302 302
      */
303
-    public function isRegExp (string $pattern) {
303
+    public function isRegExp(string $pattern) {
304 304
         $pattern = $this->db->quote($pattern);
305 305
         return $this->db->factory(Predicate::class, "{$this} REGEXP {$pattern}");
306 306
     }
Please login to merge, or discard this patch.
src/DB/SQL/Numeric.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      *
15 15
      * @return Text
16 16
      */
17
-    public function toText () {
17
+    public function toText() {
18 18
         if ($this->db == 'sqlite') {
19 19
             return $this->db->factory(Text::class, $this->db, "CAST({$this} AS TEXT)");
20 20
         }
Please login to merge, or discard this patch.