Passed
Push — master ( b832be...c7c377 )
by Jakub
03:09
created
src/TCollection.php 1 patch
Upper-Lower-Casing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
    * @param int $index
50 50
    */
51 51
   public function offsetExists($index): bool {
52
-    return $index >= 0 AND $index < count($this->items);
52
+    return $index >= 0 and $index < count($this->items);
53 53
   }
54 54
   
55 55
   /**
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
    * @throws \OutOfRangeException
58 58
    */
59 59
   public function offsetGet($index) {
60
-    if($index < 0 OR $index >= count($this->items)) {
60
+    if($index < 0 or $index >= count($this->items)) {
61 61
       throw new \OutOfRangeException("Offset invalid or out of range.");
62 62
     }
63 63
     return $this->items[$index];
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     }
96 96
     foreach($collection->items as $item) {
97 97
       if($newItem->$uniqueProperty === $item->$uniqueProperty) {
98
-        throw new \RuntimeException("Duplicate $uniqueProperty {$item->$uniqueProperty}.");
98
+        throw new \RuntimeException("duplicate $uniqueProperty {$item->$uniqueProperty}.");
99 99
       }
100 100
     }
101 101
   }
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
     $this->performChecks($item);
133 133
     if($index === null) {
134 134
       $this->items[] = & $item;
135
-    } elseif($index < 0 OR $index >= count($this->items)) {
135
+    } elseif($index < 0 or $index >= count($this->items)) {
136 136
       throw new \OutOfRangeException("Offset invalid or out of range.");
137 137
     } else {
138 138
       $this->items[$index] = & $item;
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
   public function offsetUnset($index): void {
147 147
     if($this->locked) {
148 148
       throw new \RuntimeException("Cannot remove items from locked collection.");
149
-    } elseif($index < 0 OR $index >= count($this->items)) {
149
+    } elseif($index < 0 or $index >= count($this->items)) {
150 150
       throw new \OutOfRangeException("Offset invalid or out of range.");
151 151
     }
152 152
     array_splice($this->items, $index, 1);
Please login to merge, or discard this patch.