Passed
Push — master ( 0380ca...346253 )
by Jesse
04:05
created
src/LexemeCollection.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 	 *
16 16
 	 * @internal
17 17
 	 */
18
-	public function __construct( Lexeme ...$lexItems ) {
18
+	public function __construct(Lexeme ...$lexItems) {
19 19
 		$this->lexItems = $lexItems;
20 20
 	}
21 21
 
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
25 25
 	 * This is useful for checking if a printf string parsed without error.
26 26
 	 */
27 27
 	public function getInvalid() : ?Lexeme {
28
-		foreach( $this->lexItems as $lexItem ) {
29
-			if( $lexItem->getLexItemType() === Lexeme::T_INVALID ) {
28
+		foreach ($this->lexItems as $lexItem) {
29
+			if ($lexItem->getLexItemType() === Lexeme::T_INVALID) {
30 30
 				return $lexItem;
31 31
 			}
32 32
 		}
@@ -37,8 +37,8 @@  discard block
 block discarded – undo
37 37
 	/**
38 38
 	 * @internal
39 39
 	 */
40
-	public function offsetSet( $offset, $value ) : void {
41
-		if( $offset === null ) {
40
+	public function offsetSet($offset, $value) : void {
41
+		if ($offset === null) {
42 42
 			$this->lexItems[] = $value;
43 43
 		} else {
44 44
 			$this->lexItems[$offset] = $value;
@@ -48,21 +48,21 @@  discard block
 block discarded – undo
48 48
 	/**
49 49
 	 * @internal
50 50
 	 */
51
-	public function offsetExists( $offset ) : bool {
51
+	public function offsetExists($offset) : bool {
52 52
 		return isset($this->lexItems[$offset]);
53 53
 	}
54 54
 
55 55
 	/**
56 56
 	 * @internal
57 57
 	 */
58
-	public function offsetUnset( $offset ) : void {
58
+	public function offsetUnset($offset) : void {
59 59
 		unset($this->lexItems[$offset]);
60 60
 	}
61 61
 
62 62
 	/**
63 63
 	 * @internal
64 64
 	 */
65
-	public function offsetGet( $offset ) : ?Lexeme {
65
+	public function offsetGet($offset) : ?Lexeme {
66 66
 		return $this->lexItems[$offset] ?? null;
67 67
 	}
68 68
 
@@ -97,11 +97,11 @@  discard block
 block discarded – undo
97 97
 	public function argTypes() : array {
98 98
 		$noNumInc = 1;
99 99
 		$args     = [];
100
-		foreach( $this->lexItems as $item ) {
101
-			if( $item instanceof ArgumentLexeme ) {
100
+		foreach ($this->lexItems as $item) {
101
+			if ($item instanceof ArgumentLexeme) {
102 102
 				$type = $item->argType();
103 103
 
104
-				if( $item->getArg() !== null ) {
104
+				if ($item->getArg() !== null) {
105 105
 					$args[$item->getArg()] = $type;
106 106
 				} else {
107 107
 					$args[$noNumInc] = $type;
Please login to merge, or discard this patch.