@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | $constructorArgs = $this->prepareArgs($reflectedConstructor); |
80 | 80 | } |
81 | 81 | } catch (\Exception $e) { |
82 | - throw new InjectionException("Failed to create instance of '$className'. " . $e->getMessage()); |
|
82 | + throw new InjectionException("Failed to create instance of '$className'. ".$e->getMessage()); |
|
83 | 83 | } |
84 | 84 | $object = $reflectedClass->newInstanceArgs($constructorArgs); |
85 | 85 | } |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | } catch (\Exception $e) { |
115 | 115 | $msg = $e->getMessage(); |
116 | 116 | if ($e->getPrevious()) { // injection failed because PHP code is invalid. See #3869 |
117 | - $msg .= '; '. $e->getPrevious(); |
|
117 | + $msg .= '; '.$e->getPrevious(); |
|
118 | 118 | } |
119 | 119 | throw new InjectionException( |
120 | 120 | "Failed to inject dependencies in instance of '{$reflectedObject->name}'. $msg" |
@@ -58,7 +58,7 @@ |
||
58 | 58 | { |
59 | 59 | if ($input->getOption('generate-hook') && $input->getOption('use-vendor-bin')) { |
60 | 60 | global $argv; |
61 | - $argv[0] = 'vendor/bin/' . basename($argv[0]); |
|
61 | + $argv[0] = 'vendor/bin/'.basename($argv[0]); |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | parent::execute($input, $output); |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | $test = $input->getArgument('test'); |
56 | 56 | |
57 | 57 | $config = $this->getGlobalConfig(); |
58 | - if (! Configuration::isEmpty() && ! $test && strpos($suite, $config['paths']['tests']) === 0) { |
|
58 | + if (!Configuration::isEmpty() && !$test && strpos($suite, $config['paths']['tests']) === 0) { |
|
59 | 59 | list(, $suite, $test) = $this->matchTestFromFilename($suite, $config['paths']['tests']); |
60 | 60 | } |
61 | 61 | $settings = $this->getSuiteConfig($suite); |
@@ -123,10 +123,10 @@ discard block |
||
123 | 123 | if ($test->getMetadata()->isBlocked()) { |
124 | 124 | $output->writeln(''); |
125 | 125 | if ($skip = $test->getMetadata()->getSkip()) { |
126 | - $output->writeln("<warning> SKIPPED </warning>" . $skip); |
|
126 | + $output->writeln("<warning> SKIPPED </warning>".$skip); |
|
127 | 127 | } |
128 | 128 | if ($incomplete = $test->getMetadata()->getIncomplete()) { |
129 | - $output->writeln("<warning> INCOMPLETE </warning>" . $incomplete); |
|
129 | + $output->writeln("<warning> INCOMPLETE </warning>".$incomplete); |
|
130 | 130 | } |
131 | 131 | } |
132 | 132 | $output->writeln(''); |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | call_user_func_array([$context, $step->getAction()], $step->getArguments()); |
107 | 107 | } catch (\Exception $e) { |
108 | 108 | $class = get_class($e); // rethrow exception for a specific action |
109 | - throw new $class($e->getMessage() . "\nat $step"); |
|
109 | + throw new $class($e->getMessage()."\nat $step"); |
|
110 | 110 | } |
111 | 111 | } |
112 | 112 | } |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | |
118 | 118 | foreach ($this->actions as $step) { |
119 | 119 | $args = str_replace('"', "'", $step->getArgumentsAsString(20)); |
120 | - $actionsLog[] = $step->getAction() . ": $args"; |
|
120 | + $actionsLog[] = $step->getAction().": $args"; |
|
121 | 121 | } |
122 | 122 | |
123 | 123 | return implode(', ', $actionsLog); |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | continue; |
67 | 67 | } |
68 | 68 | |
69 | - $query .= "\n" . rtrim($sqlLine); |
|
69 | + $query .= "\n".rtrim($sqlLine); |
|
70 | 70 | |
71 | 71 | if (substr($query, -1 * $delimiterLength, $delimiterLength) == $delimiter) { |
72 | 72 | $this->sqlQuery(substr($query, 0, -1 * $delimiterLength)); |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | $columns = $stmt->fetchAll(\PDO::FETCH_ASSOC); |
100 | 100 | |
101 | 101 | foreach ($columns as $column) { |
102 | - $primaryKey []= $column['COLUMN_NAME']; |
|
102 | + $primaryKey [] = $column['COLUMN_NAME']; |
|
103 | 103 | } |
104 | 104 | $this->primaryKeys[$tableName] = $primaryKey; |
105 | 105 | } |
@@ -55,14 +55,14 @@ |
||
55 | 55 | $cwd = getcwd(); |
56 | 56 | $projectDir = Configuration::projectDir(); |
57 | 57 | chdir($projectDir); |
58 | - $this->container = require $projectDir . $this->config['container']; |
|
58 | + $this->container = require $projectDir.$this->config['container']; |
|
59 | 59 | $app = $this->container->get('Zend\Expressive\Application'); |
60 | 60 | |
61 | - $pipelineFile = $projectDir . 'config/pipeline.php'; |
|
61 | + $pipelineFile = $projectDir.'config/pipeline.php'; |
|
62 | 62 | if (file_exists($pipelineFile)) { |
63 | 63 | require $pipelineFile; |
64 | 64 | } |
65 | - $routesFile = $projectDir . 'config/routes.php'; |
|
65 | + $routesFile = $projectDir.'config/routes.php'; |
|
66 | 66 | if (file_exists($routesFile)) { |
67 | 67 | require $routesFile; |
68 | 68 | } |
@@ -100,7 +100,7 @@ |
||
100 | 100 | */ |
101 | 101 | public function haveContextualBinding($concrete, $abstract, $implementation) |
102 | 102 | { |
103 | - if (! isset($this->contextualBindings[$concrete])) { |
|
103 | + if (!isset($this->contextualBindings[$concrete])) { |
|
104 | 104 | $this->contextualBindings[$concrete] = []; |
105 | 105 | } |
106 | 106 |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | { |
125 | 125 | $files = parent::filterFiles($files); |
126 | 126 | |
127 | - if (! class_exists('Illuminate\Http\UploadedFile')) { |
|
127 | + if (!class_exists('Illuminate\Http\UploadedFile')) { |
|
128 | 128 | // The \Illuminate\Http\UploadedFile class was introduced in Laravel 5.2.15, |
129 | 129 | // so don't change the $files array if it does not exist. |
130 | 130 | return $files; |
@@ -170,15 +170,15 @@ discard block |
||
170 | 170 | |
171 | 171 | // Set the request instance for the application, |
172 | 172 | if (is_null($request)) { |
173 | - $appConfig = require $this->module->config['project_dir'] . 'config/app.php'; |
|
173 | + $appConfig = require $this->module->config['project_dir'].'config/app.php'; |
|
174 | 174 | $request = SymfonyRequest::create($appConfig['url']); |
175 | 175 | } |
176 | 176 | $this->app->instance('request', Request::createFromBase($request)); |
177 | 177 | |
178 | 178 | // Reset the old database after all the service providers are registered. |
179 | 179 | if ($this->oldDb) { |
180 | - $this->app['events']->listen('bootstrapped: Illuminate\Foundation\Bootstrap\RegisterProviders', function () { |
|
181 | - $this->app->singleton('db', function () { |
|
180 | + $this->app['events']->listen('bootstrapped: Illuminate\Foundation\Bootstrap\RegisterProviders', function() { |
|
181 | + $this->app->singleton('db', function() { |
|
182 | 182 | return $this->oldDb; |
183 | 183 | }); |
184 | 184 | }); |
@@ -191,11 +191,11 @@ discard block |
||
191 | 191 | // but for earlier Laravel versions the firing() method of the event dispatcher should be used |
192 | 192 | // to determine the event name. |
193 | 193 | if (method_exists($this->app['events'], 'firing')) { |
194 | - $listener = function () { |
|
194 | + $listener = function() { |
|
195 | 195 | $this->triggeredEvents[] = $this->normalizeEvent($this->app['events']->firing()); |
196 | 196 | }; |
197 | 197 | } else { |
198 | - $listener = function ($event) { |
|
198 | + $listener = function($event) { |
|
199 | 199 | $this->triggeredEvents[] = $this->normalizeEvent($event); |
200 | 200 | }; |
201 | 201 | } |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | // Even if events are disabled we still want to record the triggered events. |
248 | 248 | // But by mocking the event dispatcher the wildcard listener registered in the initialize method is removed. |
249 | 249 | // So to record the triggered events we have to catch the calls to the fire method of the event dispatcher mock. |
250 | - $callback = function ($event) { |
|
250 | + $callback = function($event) { |
|
251 | 251 | $this->triggeredEvents[] = $this->normalizeEvent($event); |
252 | 252 | |
253 | 253 | return []; |
@@ -17,13 +17,13 @@ |
||
17 | 17 | |
18 | 18 | public function getAction() |
19 | 19 | { |
20 | - $action = 'can' . ucfirst($this->action); |
|
20 | + $action = 'can'.ucfirst($this->action); |
|
21 | 21 | $action = preg_replace('/^canDont/', 'cant', $action); |
22 | 22 | return $action; |
23 | 23 | } |
24 | 24 | |
25 | 25 | public function getHumanizedAction() |
26 | 26 | { |
27 | - return $this->humanize($this->action . ' ' . $this->getHumanizedArguments()); |
|
27 | + return $this->humanize($this->action.' '.$this->getHumanizedArguments()); |
|
28 | 28 | } |
29 | 29 | } |