@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | */ |
| 72 | 72 | public function getViewPath($name) |
| 73 | 73 | { |
| 74 | - return $this->getModuleDirectory($name).DIRECTORY_SEPARATOR.'views'.DIRECTORY_SEPARATOR; |
|
| 74 | + return $this->getModuleDirectory($name) . DIRECTORY_SEPARATOR . 'views' . DIRECTORY_SEPARATOR; |
|
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | /** |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | */ |
| 81 | 81 | public function getModuleDirectory($name) |
| 82 | 82 | { |
| 83 | - return $this->getModulesBaseDirectory().$name; |
|
| 83 | + return $this->getModulesBaseDirectory() . $name; |
|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | /** |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | */ |
| 42 | 42 | public function setEnabled($enabled = false) |
| 43 | 43 | { |
| 44 | - $this->enabled = (boolean)$enabled; |
|
| 44 | + $this->enabled = (boolean) $enabled; |
|
| 45 | 45 | return $this; |
| 46 | 46 | } |
| 47 | 47 | |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | if (null === $minimumSeconds) { |
| 216 | 216 | $this->filterElapsedSecs = null; |
| 217 | 217 | } else { |
| 218 | - $this->filterElapsedSecs = (integer)$minimumSeconds; |
|
| 218 | + $this->filterElapsedSecs = (integer) $minimumSeconds; |
|
| 219 | 219 | } |
| 220 | 220 | |
| 221 | 221 | return $this; |
@@ -74,6 +74,9 @@ discard block |
||
| 74 | 74 | return $this->enabled; |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | + /** |
|
| 78 | + * @param boolean $name |
|
| 79 | + */ |
|
| 77 | 80 | public function newProfileID($name) |
| 78 | 81 | { |
| 79 | 82 | if ($name) { |
@@ -128,6 +131,9 @@ discard block |
||
| 128 | 131 | return; |
| 129 | 132 | } |
| 130 | 133 | |
| 134 | + /** |
|
| 135 | + * @param boolean $profileID |
|
| 136 | + */ |
|
| 131 | 137 | protected function endPreckeck($profileID) |
| 132 | 138 | { |
| 133 | 139 | if (!$this->checkEnabled()) { |
@@ -230,7 +236,7 @@ discard block |
||
| 230 | 236 | } |
| 231 | 237 | |
| 232 | 238 | /** |
| 233 | - * @param $name |
|
| 239 | + * @param string $name |
|
| 234 | 240 | * @return AbstractAdapter |
| 235 | 241 | */ |
| 236 | 242 | public function newWriter($name) |
@@ -32,8 +32,8 @@ discard block |
||
| 32 | 32 | public function getDescriptorSpec() |
| 33 | 33 | { |
| 34 | 34 | return array( |
| 35 | - 0 => array("pipe", "r"), // stdin |
|
| 36 | - 1 => array("pipe", "w"), // stdout -> we use this |
|
| 35 | + 0 => array("pipe", "r"), // stdin |
|
| 36 | + 1 => array("pipe", "w"), // stdout -> we use this |
|
| 37 | 37 | 2 => array("pipe", "w") // stderr |
| 38 | 38 | ); |
| 39 | 39 | } |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | break; |
| 61 | 61 | } |
| 62 | 62 | if ($this->isVerbose()) { |
| 63 | - echo $returnLine."\n"; |
|
| 63 | + echo $returnLine . "\n"; |
|
| 64 | 64 | } |
| 65 | 65 | ob_flush(); |
| 66 | 66 | flush(); |
@@ -26,14 +26,14 @@ discard block |
||
| 26 | 26 | |
| 27 | 27 | public function initHTML() |
| 28 | 28 | { |
| 29 | - require(dirname(__FILE__).'/Layout/header.html'); |
|
| 29 | + require(dirname(__FILE__) . '/Layout/header.html'); |
|
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | public function printHeader() |
| 33 | 33 | { |
| 34 | 34 | echo ' |
| 35 | 35 | Checking the environment ... |
| 36 | -Running as <b>'.$this->getRunUser().'</b>. |
|
| 36 | +Running as <b>'.$this->getRunUser() . '</b>. |
|
| 37 | 37 | '; |
| 38 | 38 | } |
| 39 | 39 | |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | |
| 57 | 57 | public function checkRequiredBinary($binary) |
| 58 | 58 | { |
| 59 | - $shellCommand = $this->getCommand('which').' '.$binary; |
|
| 59 | + $shellCommand = $this->getCommand('which') . ' ' . $binary; |
|
| 60 | 60 | $process = $this->runProcess($shellCommand, false); |
| 61 | 61 | $path = $process->getReturn(); |
| 62 | 62 | $this->checkRequiredBinaryPath($path, $shellCommand, $binary); |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | <div class="error"> |
| 106 | 106 | Error encountered! |
| 107 | 107 | Stopping the script to prevent possible data loss. |
| 108 | -ERROR CODE ['.$process->getExitCode().'] |
|
| 108 | +ERROR CODE ['.$process->getExitCode() . '] |
|
| 109 | 109 | </div> |
| 110 | 110 | '; |
| 111 | 111 | } |
@@ -118,8 +118,8 @@ discard block |
||
| 118 | 118 | [%s] |
| 119 | 119 | </div>', $binary, $shellCommand)); |
| 120 | 120 | } else { |
| 121 | - $version = explode("\n", shell_exec($binary.' --version')); |
|
| 122 | - printf('<b>%s</b> : %s'."\n", $path, $version[0]); |
|
| 121 | + $version = explode("\n", shell_exec($binary . ' --version')); |
|
| 122 | + printf('<b>%s</b> : %s' . "\n", $path, $version[0]); |
|
| 123 | 123 | } |
| 124 | 124 | } |
| 125 | 125 | |
@@ -138,8 +138,8 @@ discard block |
||
| 138 | 138 | { |
| 139 | 139 | echo ' |
| 140 | 140 | Environment OK. |
| 141 | -Deploying ['.__DIR__.'] |
|
| 142 | -Run Commands on ['.getcwd()."]\n"; |
|
| 141 | +Deploying ['.__DIR__ . '] |
|
| 142 | +Run Commands on ['.getcwd() . "]\n"; |
|
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | public function runCommands() |
@@ -155,13 +155,13 @@ discard block |
||
| 155 | 155 | $this->printCommand($command); |
| 156 | 156 | echo '<div class="output">'; |
| 157 | 157 | $process = $this->runProcess($command); |
| 158 | - echo 'Exit Code ['.$process->getExitCode().']'."\n"; |
|
| 158 | + echo 'Exit Code [' . $process->getExitCode() . ']' . "\n"; |
|
| 159 | 159 | echo '</div>'; |
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 | public function printCommand($command) |
| 163 | 163 | { |
| 164 | - echo '<span class="prompt">$</span> <span class="command">'.$command.'</span>'; |
|
| 164 | + echo '<span class="prompt">$</span> <span class="command">' . $command . '</span>'; |
|
| 165 | 165 | } |
| 166 | 166 | |
| 167 | 167 | public function postDispatch() |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | * Set the shared instance of the container. |
| 33 | 33 | * |
| 34 | 34 | * @param ContainerInterface|null $container |
| 35 | - * @return static |
|
| 35 | + * @return null|ContainerInterface |
|
| 36 | 36 | */ |
| 37 | 37 | public static function setInstance(ContainerInterface $container = null) |
| 38 | 38 | { |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | } |
| 119 | 119 | |
| 120 | 120 | /** |
| 121 | - * @param $adapter |
|
| 121 | + * @param AbstractAdapter $adapter |
|
| 122 | 122 | */ |
| 123 | 123 | public function setAdapter($adapter) |
| 124 | 124 | {
|
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | } |
| 132 | 132 | |
| 133 | 133 | /** |
| 134 | - * @param $name |
|
| 134 | + * @param string $name |
|
| 135 | 135 | */ |
| 136 | 136 | public function setAdapterName($name) |
| 137 | 137 | {
|
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | } |
| 168 | 168 | |
| 169 | 169 | /** |
| 170 | - * @param mixed $database |
|
| 170 | + * @param string $database |
|
| 171 | 171 | */ |
| 172 | 172 | public function setDatabase($database) |
| 173 | 173 | {
|
@@ -296,7 +296,7 @@ discard block |
||
| 296 | 296 | } |
| 297 | 297 | |
| 298 | 298 | /** |
| 299 | - * @param $table |
|
| 299 | + * @param null|string $table |
|
| 300 | 300 | * @return mixed |
| 301 | 301 | */ |
| 302 | 302 | public function describeTable($table) |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | * Create a new connection instance. |
| 77 | 77 | * |
| 78 | 78 | * @param string $driver |
| 79 | - * @param \PDO|\Closure $connection |
|
| 79 | + * @param boolean $connection |
|
| 80 | 80 | * @param string $database |
| 81 | 81 | * @param string $prefix |
| 82 | 82 | * @param array $config |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | /** |
| 83 | - * @param null $generated |
|
| 83 | + * @param boolean $generated |
|
| 84 | 84 | * @return bool |
| 85 | 85 | */ |
| 86 | 86 | public function isGenerated($generated = null) |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | } |
| 237 | 237 | |
| 238 | 238 | /** |
| 239 | - * @param $start |
|
| 239 | + * @param integer $start |
|
| 240 | 240 | * @param bool $offset |
| 241 | 241 | * @return $this |
| 242 | 242 | */ |
@@ -384,7 +384,7 @@ discard block |
||
| 384 | 384 | } |
| 385 | 385 | |
| 386 | 386 | /** |
| 387 | - * @param $name |
|
| 387 | + * @param string $name |
|
| 388 | 388 | * @return mixed|null |
| 389 | 389 | */ |
| 390 | 390 | public function getPart($name) |
@@ -415,7 +415,7 @@ discard block |
||
| 415 | 415 | } |
| 416 | 416 | |
| 417 | 417 | /** |
| 418 | - * @return mixed |
|
| 418 | + * @return string |
|
| 419 | 419 | */ |
| 420 | 420 | protected function getTable() |
| 421 | 421 | {
|
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | {
|
| 151 | 151 | if (isset($params['where']) && is_array($params['where'])) {
|
| 152 | 152 | foreach ($params['where'] as $condition) {
|
| 153 | - $condition = (array)$condition; |
|
| 153 | + $condition = (array) $condition; |
|
| 154 | 154 | $this->where( |
| 155 | 155 | $condition[0], |
| 156 | 156 | isset($condition[1]) ? $condition[1] : null |
@@ -329,7 +329,7 @@ discard block |
||
| 329 | 329 | public function getString() |
| 330 | 330 | {
|
| 331 | 331 | if ($this->string === null) {
|
| 332 | - $this->string = (string)$this->assemble(); |
|
| 332 | + $this->string = (string) $this->assemble(); |
|
| 333 | 333 | } |
| 334 | 334 | |
| 335 | 335 | return $this->string; |
@@ -367,7 +367,7 @@ discard block |
||
| 367 | 367 | */ |
| 368 | 368 | protected function parseWhere() |
| 369 | 369 | {
|
| 370 | - return is_object($this->parts['where']) ? (string)$this->parts['where'] : ''; |
|
| 370 | + return is_object($this->parts['where']) ? (string) $this->parts['where'] : ''; |
|
| 371 | 371 | } |
| 372 | 372 | |
| 373 | 373 | /** |
@@ -432,7 +432,7 @@ discard block |
||
| 432 | 432 | protected function parseHaving() |
| 433 | 433 | {
|
| 434 | 434 | if (isset($this->parts['having'])) {
|
| 435 | - return (string)$this->parts['having']; |
|
| 435 | + return (string) $this->parts['having']; |
|
| 436 | 436 | } |
| 437 | 437 | |
| 438 | 438 | return ''; |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | protected $_values; |
| 15 | 15 | |
| 16 | 16 | /** |
| 17 | - * @return null |
|
| 17 | + * @return string |
|
| 18 | 18 | */ |
| 19 | 19 | public function assemble() |
| 20 | 20 | {
|
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | - * @return bool|string |
|
| 51 | + * @return string|false |
|
| 52 | 52 | */ |
| 53 | 53 | public function parseValues() |
| 54 | 54 | {
|
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | public function parseValues() |
| 54 | 54 | {
|
| 55 | 55 | if ($this->_values instanceof AbstractQuery) {
|
| 56 | - return ' ' . (string)$this->_values; |
|
| 56 | + return ' ' . (string) $this->_values; |
|
| 57 | 57 | } elseif (is_array($this->parts['data'])) {
|
| 58 | 58 | return $this->parseData(); |
| 59 | 59 | } |