Completed
Branch develop (d8e67e)
by Timothy
04:10
created
src/Aviat/Ion/Cache/Driver/RedisDriver.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 	 *
76 76
 	 * @param string $key
77 77
 	 * @param mixed $value
78
-	 * @return CacheDriverInterface
78
+	 * @return RedisDriver
79 79
 	 */
80 80
 	public function set($key, $value)
81 81
 	{
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 	 * Invalidate a cached value
88 88
 	 *
89 89
 	 * @param string $key
90
-	 * @return CacheDriverInterface
90
+	 * @return RedisDriver
91 91
 	 */
92 92
 	public function invalidate($key)
93 93
 	{
Please login to merge, or discard this patch.
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Ion
4
- *
5
- * Building blocks for web development
6
- *
7
- * @package	 Ion
8
- * @author	  Timothy J. Warren
9
- * @copyright   Copyright (c) 2015 - 2016
10
- * @license	 MIT
11
- */
3
+	 * Ion
4
+	 *
5
+	 * Building blocks for web development
6
+	 *
7
+	 * @package	 Ion
8
+	 * @author	  Timothy J. Warren
9
+	 * @copyright   Copyright (c) 2015 - 2016
10
+	 * @license	 MIT
11
+	 */
12 12
 
13 13
 namespace Aviat\Ion\Cache\Driver;
14 14
 
Please login to merge, or discard this patch.
src/Aviat/Ion/Cache/Driver/SQLDriver.php 4 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 	 *
64 64
 	 * @param string $key
65 65
 	 * @param mixed $value
66
-	 * @return CacheDriverInterface
66
+	 * @return SQLDriver
67 67
 	 */
68 68
 	public function set($key, $value)
69 69
 	{
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 	 * Invalidate a cached value
82 82
 	 *
83 83
 	 * @param string $key
84
-	 * @return CacheDriverInterface
84
+	 * @return SQLDriver
85 85
 	 */
86 86
 	public function invalidate($key)
87 87
 	{
Please login to merge, or discard this patch.
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Ion
4
- *
5
- * Building blocks for web development
6
- *
7
- * @package	 Ion
8
- * @author	  Timothy J. Warren
9
- * @copyright   Copyright (c) 2015 - 2016
10
- * @license	 MIT
11
- */
3
+	 * Ion
4
+	 *
5
+	 * Building blocks for web development
6
+	 *
7
+	 * @package	 Ion
8
+	 * @author	  Timothy J. Warren
9
+	 * @copyright   Copyright (c) 2015 - 2016
10
+	 * @license	 MIT
11
+	 */
12 12
 
13 13
 namespace Aviat\Ion\Cache\Driver;
14 14
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 /**
20 20
  * Driver for caching via a traditional SQL database
21 21
  */
22
-class SQLDriver extends DB implements \Aviat\Ion\Cache\CacheDriverInterface  {
22
+class SQLDriver extends DB implements \Aviat\Ion\Cache\CacheDriverInterface {
23 23
 
24 24
 	/**
25 25
 	 * The query builder object
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 /**
20 20
  * Driver for caching via a traditional SQL database
21 21
  */
22
-class SQLDriver extends DB implements \Aviat\Ion\Cache\CacheDriverInterface  {
22
+class SQLDriver extends DB implements \Aviat\Ion\Cache\CacheDriverInterface {
23 23
 
24 24
 	/**
25 25
 	 * The query builder object
Please login to merge, or discard this patch.
src/Aviat/Ion/Cache/CacheDriverInterface.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Ion
4
- *
5
- * Building blocks for web development
6
- *
7
- * @package	 Ion
8
- * @author	  Timothy J. Warren
9
- * @copyright   Copyright (c) 2015 - 2016
10
- * @license	 MIT
11
- */
3
+	 * Ion
4
+	 *
5
+	 * Building blocks for web development
6
+	 *
7
+	 * @package	 Ion
8
+	 * @author	  Timothy J. Warren
9
+	 * @copyright   Copyright (c) 2015 - 2016
10
+	 * @license	 MIT
11
+	 */
12 12
 
13 13
 namespace Aviat\Ion\Cache;
14 14
 
Please login to merge, or discard this patch.
src/Aviat/Ion/Cache/CacheManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 	 * @param [array] $args - the arguments to pass to the retrieval method
53 53
 	 * @return mixed - the cached or fresh data
54 54
 	 */
55
-	public function get($object, $method, array $args=[])
55
+	public function get($object, $method, array $args = [])
56 56
 	{
57 57
 		$hash = $this->generateHashForMethod($object, $method, $args);
58 58
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 	 * @param [array] $args - the arguments to pass to the retrieval method
75 75
 	 * @return mixed - the fresh data
76 76
 	 */
77
-	public function getFresh($object, $method, array $args=[])
77
+	public function getFresh($object, $method, array $args = [])
78 78
 	{
79 79
 		$hash = $this->generateHashForMethod($object, $method, $args);
80 80
 		$data = call_user_func_array([$object, $method], $args);
Please login to merge, or discard this patch.
src/Aviat/Ion/Cache/CacheInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 	 * @param [array] $args - the arguments to pass to the retrieval method
27 27
 	 * @return mixed - the cached or fresh data
28 28
 	 */
29
-	public function get($object, $method, array $args=[]);
29
+	public function get($object, $method, array $args = []);
30 30
 
31 31
 	/**
32 32
 	 * Retreive a fresh value, and update the cache
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 	 * @param [array] $args - the arguments to pass to the retrieval method
37 37
 	 * @return mixed - the fresh data
38 38
 	 */
39
-	public function getFresh($object, $method, array $args=[]);
39
+	public function getFresh($object, $method, array $args = []);
40 40
 
41 41
 	/**
42 42
 	 * Clear the entire cache
Please login to merge, or discard this patch.
src/Aviat/AnimeClient/Dispatcher.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -273,7 +273,7 @@
 block discarded – undo
273 273
 
274 274
 		$params = [];
275 275
 
276
-		switch($failure->failedRule) {
276
+		switch ($failure->failedRule) {
277 277
 			case 'Aura\Router\Rule\Alows':
278 278
 				$params = [
279 279
 					'http_code' => 405,
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -273,7 +273,8 @@
 block discarded – undo
273 273
 
274 274
 		$params = [];
275 275
 
276
-		switch($failure->failedRule) {
276
+		switch($failure->failedRule)
277
+		{
277 278
 			case 'Aura\Router\Rule\Alows':
278 279
 				$params = [
279 280
 					'http_code' => 405,
Please login to merge, or discard this patch.
src/Aviat/AnimeClient/Controller/Anime.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 
125 125
 		foreach ($raw_status_list as $status_item)
126 126
 		{
127
-			$statuses[$status_item] = (string) $this->string($status_item)
127
+			$statuses[$status_item] = (string)$this->string($status_item)
128 128
 				->underscored()
129 129
 				->humanize()
130 130
 				->titleize();
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
 
184 184
 		foreach ($raw_status_list as $status_item)
185 185
 		{
186
-			$statuses[$status_item] = (string) $this->string($status_item)
186
+			$statuses[$status_item] = (string)$this->string($status_item)
187 187
 				->underscored()
188 188
 				->humanize()
189 189
 				->titleize();
Please login to merge, or discard this patch.
src/Aviat/AnimeClient/Controller/Manga.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 		];
90 90
 
91 91
 		$data = ($status !== 'all')
92
-			? [$map[$status] => $this->cache->get($this->model, 'get_list', ['status' => $map[$status]]) ]
92
+			? [$map[$status] => $this->cache->get($this->model, 'get_list', ['status' => $map[$status]])]
93 93
 			: $this->cache->get($this->model, 'get_all_lists');
94 94
 
95 95
 		$this->outputHTML('manga/' . $view_map[$view], [
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
 
207 207
 		if ($full_result['statusCode'] == 200)
208 208
 		{
209
-			$m =& $result['manga'][0];
209
+			$m = & $result['manga'][0];
210 210
 			$title = ( ! empty($m['english_title']))
211 211
 				? "{$m['romaji_title']} ({$m['english_title']})"
212 212
 				: "{$m['romaji_title']}";
Please login to merge, or discard this patch.