Completed
Push — master ( ab0873...00f599 )
by Michael
02:51
created
src/Mvg/Factories/Departures.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
 	}
82 82
 
83 83
 	/**
84
-	 * @return array
84
+	 * @return ParserDepartures
85 85
 	 */
86 86
 	protected function getParserDepartures() {
87 87
 		return $this->parserDepartures;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
 			return $this->departures;
49 49
 		}
50 50
 
51
-		if( true === empty($filter)) {
51
+		if (true === empty($filter)) {
52 52
 			return $this->departures;
53 53
 		}
54 54
 
Please login to merge, or discard this patch.
src/Mvg/TextOutput/Departures.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
 	/**
66 66
 	 * found here http://stackoverflow.com/a/11871948
67 67
 	 * @param $input
68
-	 * @param $pad_length
68
+	 * @param integer $pad_length
69 69
 	 * @param string $pad_string
70 70
 	 * @param int $pad_type
71 71
 	 * @return string
Please login to merge, or discard this patch.
src/Mvg/TextOutput/NewsTicker.php 2 patches
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 
19 19
 
20 20
 	/**
21
-	 * @param  Mvg\Parser\Html\NewsTicker $newsTickerParser
21
+	 * @param  NewsTickerParser $newsTickerParser
22 22
 	 */
23 23
 	public function __construct(NewsTickerParser $newsTickerParser) {
24 24
 
@@ -45,6 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
 	/**
47 47
 	 * @param   Mvg\Parser\Html\NewsTicker
48
+	 * @param NewsTickerParser $newsTickerParser
48 49
 	 */
49 50
 	protected function setNewsTickerParser($newsTickerParser) {
50 51
 		$this->newsTickerParser = $newsTickerParser;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,8 +30,8 @@
 block discarded – undo
30 30
 		$str = '';
31 31
 		foreach ($this->getNewsTickerParser()->getInterferences() as $interference) {
32 32
 
33
-			$str .= '===' . $interference->lines . '===' . "\n";
34
-			$str .= $interference->messages . "\n";
33
+			$str .= '==='.$interference->lines.'==='."\n";
34
+			$str .= $interference->messages."\n";
35 35
 		}
36 36
 		return $str;
37 37
 	}
Please login to merge, or discard this patch.
src/Mvg/Parser/Html/NewsTicker.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 			}
41 41
 		}
42 42
 		if (null === $payload) {
43
-			throw new \Exception('unable to parse payload from ' . $jsonString);
43
+			throw new \Exception('unable to parse payload from '.$jsonString);
44 44
 		}
45 45
 
46 46
 		//Remove the Javastuff
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 		}
55 55
 
56 56
 		if (0 != (count($payload) % 2)) {
57
-			throw new \Exception('Item count is odd! ' . $jsonString);
57
+			throw new \Exception('Item count is odd! '.$jsonString);
58 58
 
59 59
 		}
60 60
 		$object = new \stdClass();
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 				$stringToAnalyze = trim(str_replace('Linie(n)', '', $item));
68 68
 				$linesString = explode(':', $stringToAnalyze)[0];
69 69
 				$object->affectedLines = explode(',', $linesString);
70
-				array_walk($object->affectedLines, function (&$item) {
70
+				array_walk($object->affectedLines, function(&$item) {
71 71
 					$item = trim($item);
72 72
 				});
73 73
 
Please login to merge, or discard this patch.
src/Mvg/TextOutput/Stations.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 	public function getOutput() {
27 27
 		$str = '';
28 28
 		foreach ($this->getStationsParser()->getStationsForTerm() as $station) {
29
-			$str .= $station->name . "\n";
29
+			$str .= $station->name."\n";
30 30
 		}
31 31
 		return $str;
32 32
 	}
Please login to merge, or discard this patch.
examples/newsticker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 error_reporting(E_ALL);
9 9
 
10 10
 
11
-require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'vendor/autoload.php';
11
+require_once dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'vendor/autoload.php';
12 12
 
13 13
 $response = (new HttpPostNewsTicker())->doPostRequest();
14 14
 $newsTicker = new \ Mvg\Parser\Html\NewsTicker($response);
Please login to merge, or discard this patch.
examples/interruptions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,12 +4,12 @@
 block discarded – undo
4 4
  * Date: 16.09.15
5 5
  * Time: 23:50
6 6
  */
7
-require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'vendor/autoload.php';
7
+require_once dirname(__FILE__).DIRECTORY_SEPARATOR.'vendor/autoload.php';
8 8
 
9 9
 
10 10
 use Mvg\RequestHandler\Json\HttpGetInterruptions;
11 11
 
12 12
 $b = new HttpGetInterruptions();
13 13
 
14
-$r  =$b->doRequest();
14
+$r = $b->doRequest();
15 15
 print_r($r);
16 16
\ No newline at end of file
Please login to merge, or discard this patch.
build-phar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
  * Time: 20:22
6 6
  * @see https://github.com/secondtruth/php-phar-compiler
7 7
  */
8
-require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'vendor/autoload.php';
8
+require_once dirname(__FILE__).DIRECTORY_SEPARATOR.'vendor/autoload.php';
9 9
 use Secondtruth\Compiler\Compiler;
10 10
 
11 11
 $compiler = new Compiler('./');
Please login to merge, or discard this patch.
cli.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 use Mvg\RequestHandler\Html\HttpGetDepartures;
22 22
 use Mvg\TextOutput\NewsTicker as NewsTickerOutput;
23 23
 
24
-require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'vendor/autoload.php';
24
+require_once dirname(__FILE__).DIRECTORY_SEPARATOR.'vendor/autoload.php';
25 25
 
26 26
 
27 27
 try {
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 	$parser = new Departures($result);
64 64
 	$departures = $parser->getDepartures();
65 65
 	if (0 === count($departures)) {
66
-		echo "Station '" . $searchForStation . "' unknown\n";
66
+		echo "Station '".$searchForStation."' unknown\n";
67 67
 		echo "Did you mean?\n";
68 68
 		$stationParser = new Stations($result);
69 69
 		echo (new TextOutputStations($stationParser))->getOutput();
Please login to merge, or discard this patch.