Completed
Push — master ( aa57ef...7cb27e )
by Chris
03:03
created
src/Darya/ORM/Relation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
 	 * @return string
114 114
 	 */
115 115
 	protected function delimitClass($class) {
116
-		return preg_replace_callback('/([A-Z])/', function ($matches) {
116
+		return preg_replace_callback('/([A-Z])/', function($matches) {
117 117
 			return '_' . strtolower($matches[1]);
118 118
 		}, lcfirst(basename($class)));
119 119
 	}
Please login to merge, or discard this patch.
src/Darya/Routing/Router.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 			return $controller;
97 97
 		}
98 98
 		
99
-		return preg_replace_callback('/^(.)|-(.)/', function ($matches) {
99
+		return preg_replace_callback('/^(.)|-(.)/', function($matches) {
100 100
 			return strtoupper($matches[1] ?: $matches[2]);
101 101
 		}, $controller) . 'Controller';
102 102
 	}
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 	 * @return string Action method name
112 112
 	 */
113 113
 	public static function prepareAction($action) {
114
-		return preg_replace_callback('/-(.)/', function ($matches) {
114
+		return preg_replace_callback('/-(.)/', function($matches) {
115 115
 			return strtoupper($matches[1]);
116 116
 		}, $action);
117 117
 	}
@@ -712,7 +712,7 @@  discard block
 block discarded – undo
712 712
 	 * @return string
713 713
 	 */
714 714
 	public function generate($path, array $parameters = array()) {
715
-		return preg_replace_callback('#/(:[A-Za-z0-9_-]+(\??))#', function ($match) use ($parameters) {
715
+		return preg_replace_callback('#/(:[A-Za-z0-9_-]+(\??))#', function($match) use ($parameters) {
716 716
 			$parameter = trim($match[1], '?:');
717 717
 			
718 718
 			if ($parameter && isset($parameters[$parameter])) {
Please login to merge, or discard this patch.
src/Darya/Service/Container.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -193,7 +193,7 @@
 block discarded – undo
193 193
 		
194 194
 		$container = $this;
195 195
 		
196
-		return function () use ($callable, $container) {
196
+		return function() use ($callable, $container) {
197 197
 			static $instance;
198 198
 			
199 199
 			if ($instance === null) {
Please login to merge, or discard this patch.
src/Darya/Storage/Filterer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
 	public function closure(array $filter, $or = false) {
121 121
 		$filterer = $this;
122 122
 		
123
-		return function ($row) use ($filterer, $filter, $or) {
123
+		return function($row) use ($filterer, $filter, $or) {
124 124
 			return $filterer->matches($row, $filter, $or);
125 125
 		};
126 126
 	}
Please login to merge, or discard this patch.
src/Darya/Storage/InMemory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@
 block discarded – undo
171 171
 		$this->data[$resource] = $this->filterer->map(
172 172
 			$this->data[$resource],
173 173
 			$filter,
174
-			function ($row) use ($data, &$affected) {
174
+			function($row) use ($data, &$affected) {
175 175
 				foreach ($data as $key => $value) {
176 176
 					$row[$key] = $value;
177 177
 				}
Please login to merge, or discard this patch.
src/Darya/ORM/Record.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
 	 * @return mixed
78 78
 	 */
79 79
 	public function get($attribute) {
80
-		list($attribute, $subattribute) = array_pad(explode('.',  $attribute, 2), 2, null);
80
+		list($attribute, $subattribute) = array_pad(explode('.', $attribute, 2), 2, null);
81 81
 		
82 82
 		if ($this->hasRelation($attribute)) {
83 83
 			$related = $this->related($attribute);
Please login to merge, or discard this patch.
src/Darya/Foundation/Providers/DatabaseStorageService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 	public function register(Container $container)
20 20
 	{
21 21
 		$container->register(array(
22
-			'Darya\Database\Storage' => function ($container) {
22
+			'Darya\Database\Storage' => function($container) {
23 23
 				return new Storage($container->resolve('Darya\Database\Connection'));
24 24
 			},
25 25
 			'Darya\Storage\Readable'   => 'Darya\Database\Storage',
Please login to merge, or discard this patch.
src/Darya/Foundation/Providers/HttpService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 	public function register(Container $container)
17 17
 	{
18 18
 		$container->register(array(
19
-			'Darya\Http\Request' => function ($container) {
19
+			'Darya\Http\Request' => function($container) {
20 20
 				return Request::createFromGlobals($container->resolve('Darya\Http\Session'));
21 21
 			},
22 22
 			'Darya\Http\Session' => new PhpSession
Please login to merge, or discard this patch.
src/Darya/Foundation/Providers/SmartyViewService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 	public function register(Container $container)
16 16
 	{
17 17
 		$container->register(array(
18
-			'Darya\Smarty\ViewResolver' => function ($container) {
18
+			'Darya\Smarty\ViewResolver' => function($container) {
19 19
 				$config = $container->config;
20 20
 				$basePath = $config['project.base_path'];
21 21
 				$realBasePath = realpath("{$basePath}/views/smarty");
Please login to merge, or discard this patch.