Completed
Push — master ( 837f9d...054e17 )
by Marcel
02:22
created
src/VcsVersionInfo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
 		if (!is_dir($gitDir) || !OS::hasBinary('git')) {
100 100
 			return null;
101 101
 		}
102
-		$git = Exec::create('git', '--git-dir=' . $gitDir, '--work-tree=' . $this->repositoryRoot);
102
+		$git = Exec::create('git', '--git-dir='.$gitDir, '--work-tree='.$this->repositoryRoot);
103 103
 		$git->run('describe', '--tags', '--always', '--dirty');
104 104
 		return Dot::get($git->getOutput(), 0);
105 105
 	}
Please login to merge, or discard this patch.
src/Dot.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -82,10 +82,10 @@  discard block
 block discarded – undo
82 82
 		$keysWithoutLast = array_slice($keys, 0, -1);
83 83
 		$keyCount = count($keysWithoutLast);
84 84
 		$lastKey = $keys[$keyCount];
85
-		$node =& $array;
85
+		$node = & $array;
86 86
 		// Abort when key is missing earlier than expected
87 87
 		for ($i = 0; $i < $keyCount && is_array($node) && isset($node[$keys[$i]]); ++$i) {
88
-			$node =& $node[$keys[$i]];
88
+			$node = & $node[$keys[$i]];
89 89
 		}
90 90
 		if ($i < $keyCount) {
91 91
 			return;
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 		foreach ($array as $key => $value) {
109 109
 			$keypath = self::escapeKey($key);
110 110
 			if ($parent !== null) {
111
-				$keypath = $parent . '.' . $keypath;
111
+				$keypath = $parent.'.'.$keypath;
112 112
 			}
113 113
 			if (is_array($value)) {
114 114
 				$flat = array_merge(self::flatten($value, $keypath), $flat);
@@ -152,10 +152,10 @@  discard block
 block discarded – undo
152 152
 		$keys = self::extractKeys($path);
153 153
 		$lastKey = $keys[count($keys) - 1];
154 154
 		$keysWithoutLast = array_slice($keys, 0, -1);
155
-		$node =& $array;
155
+		$node = & $array;
156 156
 		foreach ($keysWithoutLast as $key) {
157 157
 			self::prepareNode($node, $key, $path, $strict);
158
-			$node =& $node[$key];
158
+			$node = & $node[$key];
159 159
 		}
160 160
 		$node[$lastKey] = $value;
161 161
 	}
Please login to merge, or discard this patch.
src/Strings.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -128,9 +128,9 @@
 block discarded – undo
128 128
 			$foo .= mb_substr($padding, 0, $partialPadLength);
129 129
 		}
130 130
 		if ($paddingType === STR_PAD_LEFT) {
131
-			return $foo . $input;
131
+			return $foo.$input;
132 132
 		}
133
-		return $input . $foo;
133
+		return $input.$foo;
134 134
 	}
135 135
 
136 136
 	/**
Please login to merge, or discard this patch.
src/Multiline.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 	 * @return string
44 44
 	 */
45 45
 	public function __toString() {
46
-		return implode((string) $this->eol, $this->list);
46
+		return implode((string)$this->eol, $this->list);
47 47
 	}
48 48
 
49 49
 	/**
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 	 */
109 109
 	public function prefix($prefix) {
110 110
 		$prefixer = function ($line) use ($prefix) {
111
-			return $prefix . $line;
111
+			return $prefix.$line;
112 112
 		};
113 113
 		return $this->apply($prefixer);
114 114
 	}
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 	public function getLineIndexByCharacterPosition($characterPosition) {
148 148
 		$position = 0;
149 149
 		foreach ($this->list as $key => $line) {
150
-			$length = mb_strlen($line . $this->getEol());
150
+			$length = mb_strlen($line.$this->getEol());
151 151
 			if ($characterPosition >= $position && $characterPosition <= $position + $length) {
152 152
 				return $key;
153 153
 			}
Please login to merge, or discard this patch.
src/Numeric.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 	 */
87 87
 	public static function ensureInteger($value) {
88 88
 		$numeric = self::ensure($value);
89
-		if ((double) (int) $numeric !== (double) $numeric) {
89
+		if ((double)(int)$numeric !== (double)$numeric) {
90 90
 			throw new \InvalidArgumentException(
91 91
 				sprintf(
92 92
 					"Could not safely convert value '%s' of type '%s' to integer because of trailing decimal places.",
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 				)
96 96
 			);
97 97
 		}
98
-		return (int) $numeric;
98
+		return (int)$numeric;
99 99
 	}
100 100
 
101 101
 	/**
@@ -117,6 +117,6 @@  discard block
 block discarded – undo
117 117
 	 * @return float
118 118
 	 */
119 119
 	public static function ensureFloat($value) {
120
-		return (double) self::ensure($value);
120
+		return (double)self::ensure($value);
121 121
 	}
122 122
 }
Please login to merge, or discard this patch.
src/EOL.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
 	 * @return string
87 87
 	 */
88 88
 	public function apply($input) {
89
-		return (string) Multiline::create($input)->setEol($this);
89
+		return (string)Multiline::create($input)->setEol($this);
90 90
 	}
91 91
 
92 92
 	/**
Please login to merge, or discard this patch.
src/Path.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,9 +23,9 @@
 block discarded – undo
23 23
 		$path = implode(DIRECTORY_SEPARATOR, $paths);
24 24
 		$path = self::localize($path);
25 25
 		$quotedSeparator = preg_quote(DIRECTORY_SEPARATOR);
26
-		$pattern = '#' . $quotedSeparator . '+#';
26
+		$pattern = '#'.$quotedSeparator.'+#';
27 27
 		$path = preg_replace($pattern, $quotedSeparator, $path);
28
-		return $scheme . $path;
28
+		return $scheme.$path;
29 29
 	}
30 30
 
31 31
 	/**
Please login to merge, or discard this patch.
src/OS.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 		// 'whereis' does not use status codes. Check for a matching line instead.
39 39
 		$exec->run('whereis', '-b', $binaryName);
40 40
 		foreach ($exec->getOutput() as $line) {
41
-			if (preg_match('/^' . preg_quote($binaryName) . ': .*$/', $line) === 1) {
41
+			if (preg_match('/^'.preg_quote($binaryName).': .*$/', $line) === 1) {
42 42
 				return true;
43 43
 			}
44 44
 		}
Please login to merge, or discard this patch.
src/Format/Duration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -174,13 +174,13 @@
 block discarded – undo
174 174
 				}
175 175
 				if ($stepValue > 0) {
176 176
 					$suffix = Quantity::format($suffix, $stepValue);
177
-					$parts[] = $stepValue . $suffix;
177
+					$parts[] = $stepValue.$suffix;
178 178
 					$seconds -= $stepValue * $minValue;
179 179
 				}
180 180
 			}
181 181
 		}
182 182
 		if (count($parts) === 0) {
183
-			$parts[] = $seconds . Quantity::format($steps[self::SECOND], $seconds);
183
+			$parts[] = $seconds.Quantity::format($steps[self::SECOND], $seconds);
184 184
 		}
185 185
 		if ($this->limit > 0) {
186 186
 			$parts = array_slice($parts, 0, $this->limit);
Please login to merge, or discard this patch.