@@ -71,7 +71,7 @@ |
||
| 71 | 71 | public function setCommand($command) |
| 72 | 72 | { |
| 73 | 73 | // NOTE: Seems odd to have to add & then get, but the get(<class>, [$command]) does not work |
| 74 | - $this->generator->add('Symfony\\Component\\Process\\Process', function () use ($command) { |
|
| 74 | + $this->generator->add('Symfony\\Component\\Process\\Process', function() use ($command) { |
|
| 75 | 75 | // @codeCoverageIgnoreStart |
| 76 | 76 | return new Process($command); |
| 77 | 77 | // @codeCoverageIgnoreEnd |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | { |
| 13 | 13 | $this->output->writeln('<info>Running "composer dumpauto -o"...</info>'); |
| 14 | 14 | |
| 15 | - $response = $this->request->setCommand($this->input->getOption('composer') . ' dumpauto -o') |
|
| 15 | + $response = $this->request->setCommand($this->input->getOption('composer').' dumpauto -o') |
|
| 16 | 16 | ->run(); |
| 17 | 17 | |
| 18 | 18 | $this->outputResponse($response); |
@@ -15,6 +15,6 @@ |
||
| 15 | 15 | { |
| 16 | 16 | $type = (($response->getSuccessful()) ? 'comment' : 'error'); |
| 17 | 17 | |
| 18 | - $this->output->writeln("<" . $type . ">" . $response->getResponse() . "</" . $type . ">"); |
|
| 18 | + $this->output->writeln("<".$type.">".$response->getResponse()."</".$type.">"); |
|
| 19 | 19 | } |
| 20 | 20 | } |
@@ -189,14 +189,14 @@ discard block |
||
| 189 | 189 | return $this->commands[$hash]; |
| 190 | 190 | } |
| 191 | 191 | |
| 192 | - $path = $this->{$type . "Directory"}($pattern, false); |
|
| 192 | + $path = $this->{$type."Directory"}($pattern, false); |
|
| 193 | 193 | |
| 194 | 194 | $command_files = $this->files->glob($path); |
| 195 | 195 | |
| 196 | 196 | // They all extend Base, so it is not a command |
| 197 | 197 | if ($exclude) { |
| 198 | - $command_files = array_filter($command_files, function ($file) use ($exclude) { |
|
| 199 | - return !preg_match("/" . $exclude . "/u", $file); |
|
| 198 | + $command_files = array_filter($command_files, function($file) use ($exclude) { |
|
| 199 | + return !preg_match("/".$exclude."/u", $file); |
|
| 200 | 200 | }); |
| 201 | 201 | } |
| 202 | 202 | |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | |
| 207 | 207 | $alias = snake_case($class); |
| 208 | 208 | |
| 209 | - $class = $this->{$type . "Namespace"}($class); |
|
| 209 | + $class = $this->{$type."Namespace"}($class); |
|
| 210 | 210 | |
| 211 | 211 | $this->commands[$hash][$alias] = $class; |
| 212 | 212 | } |
@@ -272,7 +272,7 @@ discard block |
||
| 272 | 272 | // Merge the name as the first item |
| 273 | 273 | $arguments[0] = array_merge([$name], $arguments[0]); |
| 274 | 274 | |
| 275 | - return call_user_func_array([$this, $type . "Path"], $arguments); |
|
| 275 | + return call_user_func_array([$this, $type."Path"], $arguments); |
|
| 276 | 276 | } |
| 277 | 277 | |
| 278 | 278 | /** |
@@ -415,10 +415,10 @@ discard block |
||
| 415 | 415 | */ |
| 416 | 416 | private function verifyMakeDirectory($directory, OutputInterface $output = null) |
| 417 | 417 | { |
| 418 | - $this->outputLine("Verifying that " . $directory . " exist.", $output); |
|
| 418 | + $this->outputLine("Verifying that ".$directory." exist.", $output); |
|
| 419 | 419 | |
| 420 | 420 | if (!$this->files->isDirectory($directory)) { |
| 421 | - $this->outputLine("Built " . $directory . ".", $output, "comment"); |
|
| 421 | + $this->outputLine("Built ".$directory.".", $output, "comment"); |
|
| 422 | 422 | $this->files->makeDirectory($directory); |
| 423 | 423 | } |
| 424 | 424 | } |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | */ |
| 17 | 17 | public function get($key, $default = null) |
| 18 | 18 | { |
| 19 | - $getter = 'get' . studly_case($key) . 'Attribute'; |
|
| 19 | + $getter = 'get'.studly_case($key).'Attribute'; |
|
| 20 | 20 | |
| 21 | 21 | if (method_exists($this, $getter)) { |
| 22 | 22 | return $this->{$getter}(); |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | public function validateProperty($property, $value, array $rules = []) |
| 95 | 95 | { |
| 96 | 96 | foreach ($rules as $rule) { |
| 97 | - $validator = "validate" . studly_case($rule) . "Property"; |
|
| 97 | + $validator = "validate".studly_case($rule)."Property"; |
|
| 98 | 98 | |
| 99 | 99 | $this->{$validator}($property, $value); |
| 100 | 100 | } |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | |
| 83 | 83 | $value->setTimezone('UTC'); |
| 84 | 84 | |
| 85 | - return '[' . $value->toIso8601String() . ']'; |
|
| 85 | + return '['.$value->toIso8601String().']'; |
|
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | if ((is_array($value)) || (is_integer($value))) { |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | return "null"; |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | - return '\'' . addslashes($value) . '\''; |
|
| 100 | + return '\''.addslashes($value).'\''; |
|
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | /** |
@@ -260,7 +260,7 @@ discard block |
||
| 260 | 260 | return $this->filters[$key] = null; |
| 261 | 261 | } |
| 262 | 262 | |
| 263 | - return ' ' . $logical; |
|
| 263 | + return ' '.$logical; |
|
| 264 | 264 | } |
| 265 | 265 | |
| 266 | 266 | /** |
@@ -24,12 +24,12 @@ |
||
| 24 | 24 | ->getMethods(ReflectionMethod::IS_PUBLIC); |
| 25 | 25 | |
| 26 | 26 | // Get the actual name of the method |
| 27 | - $methods = array_map(function ($reflection) { |
|
| 27 | + $methods = array_map(function($reflection) { |
|
| 28 | 28 | return $reflection->getName(); |
| 29 | 29 | }, $methods); |
| 30 | 30 | |
| 31 | 31 | // Filter out all but the getters |
| 32 | - $methods = array_filter($methods, function ($method) { |
|
| 32 | + $methods = array_filter($methods, function($method) { |
|
| 33 | 33 | return preg_match("/^get[A-Z]/u", $method); |
| 34 | 34 | }); |
| 35 | 35 | |
@@ -112,16 +112,16 @@ discard block |
||
| 112 | 112 | { |
| 113 | 113 | $path = 'Spinen\\ConnectWise\\Library\\Results\\'; |
| 114 | 114 | |
| 115 | - $class = $path . $this->api . $type; |
|
| 115 | + $class = $path.$this->api.$type; |
|
| 116 | 116 | |
| 117 | 117 | // Collection specifically for the api data? |
| 118 | 118 | if (!class_exists($class)) { |
| 119 | - $class = $path . $this->api; |
|
| 119 | + $class = $path.$this->api; |
|
| 120 | 120 | } |
| 121 | 121 | |
| 122 | 122 | // Object specifically for the api data? |
| 123 | 123 | if (!class_exists($class)) { |
| 124 | - $class = $path . $type; |
|
| 124 | + $class = $path.$type; |
|
| 125 | 125 | } |
| 126 | 126 | |
| 127 | 127 | $class = new ReflectionClass($class); |
@@ -271,7 +271,7 @@ discard block |
||
| 271 | 271 | public function setColumns(array $columns) |
| 272 | 272 | { |
| 273 | 273 | foreach ($columns as $column) { |
| 274 | - $this->columns[] = 'get' . studly_case($column); |
|
| 274 | + $this->columns[] = 'get'.studly_case($column); |
|
| 275 | 275 | } |
| 276 | 276 | |
| 277 | 277 | return $this; |