@@ -17,7 +17,7 @@ |
||
| 17 | 17 | { |
| 18 | 18 | $hash = null; |
| 19 | 19 | foreach ($this as $property => $value) { |
| 20 | - $hash = md5($hash . $property . '=' . $value); |
|
| 20 | + $hash = md5($hash.$property.'='.$value); |
|
| 21 | 21 | } |
| 22 | 22 | return $hash; |
| 23 | 23 | } |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | $hints[] = '<code>LIMIT</code> without <code>ORDER BY</code> causes non-deterministic results, depending on the query execution plan'; |
| 161 | 161 | } |
| 162 | 162 | if (preg_match('/LIKE\\s[\'"](%.*?)[\'"]/i', $query, $matches)) { |
| 163 | - $hints[] = 'An argument has a leading wildcard character: <code>' . $matches[1] . '</code>. |
|
| 163 | + $hints[] = 'An argument has a leading wildcard character: <code>'.$matches[1].'</code>. |
|
| 164 | 164 | The predicate with this argument is not sargable and cannot use an index if one exists.'; |
| 165 | 165 | } |
| 166 | 166 | return implode("<br />", $hints); |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | foreach ($traces as $trace) { |
| 176 | 176 | if (isset($trace['class']) && isset($trace['file']) && strpos( |
| 177 | 177 | $trace['file'], |
| 178 | - DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR |
|
| 178 | + DIRECTORY_SEPARATOR.'vendor'.DIRECTORY_SEPARATOR |
|
| 179 | 179 | ) === false |
| 180 | 180 | ) { |
| 181 | 181 | if (isset($trace['object']) && is_a($trace['object'], 'Twig_Template')) { |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | $line = isset($trace['line']) ? $trace['line'] : '?'; |
| 188 | 188 | } |
| 189 | 189 | |
| 190 | - return $this->normalizeFilename($file) . ':' . $line; |
|
| 190 | + return $this->normalizeFilename($file).':'.$line; |
|
| 191 | 191 | } elseif (isset($trace['function']) && $trace['function'] == 'Illuminate\Routing\{closure}') { |
| 192 | 192 | return 'Route binding'; |
| 193 | 193 | } |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | { |
| 56 | 56 | $path = self::diskPath($path); |
| 57 | 57 | if (!Str::startsWith(root, $path)) { |
| 58 | - $path = root . DIRECTORY_SEPARATOR . ltrim($path, '\\/'); |
|
| 58 | + $path = root.DIRECTORY_SEPARATOR.ltrim($path, '\\/'); |
|
| 59 | 59 | } |
| 60 | 60 | return $path; |
| 61 | 61 | } |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | return false; |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | - $pattern = rtrim($path, '/') . '/*'; |
|
| 94 | + $pattern = rtrim($path, '/').'/*'; |
|
| 95 | 95 | $entry = glob($pattern, $mod); |
| 96 | 96 | |
| 97 | 97 | if ($returnRelative === true) { |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | array_pop($separatedPath); |
| 123 | 123 | $clearPath = implode(DIRECTORY_SEPARATOR, $separatedPath); |
| 124 | 124 | |
| 125 | - @rename($path, $clearPath . DIRECTORY_SEPARATOR . $newDirName); |
|
| 125 | + @rename($path, $clearPath.DIRECTORY_SEPARATOR.$newDirName); |
|
| 126 | 126 | |
| 127 | 127 | return true; |
| 128 | 128 | } |
@@ -165,15 +165,15 @@ |
||
| 165 | 165 | { |
| 166 | 166 | $path = Normalize::diskFullPath($path); |
| 167 | 167 | |
| 168 | - $dir = opendir($path . '/.'); |
|
| 168 | + $dir = opendir($path.'/.'); |
|
| 169 | 169 | while ($item = readdir($dir)) { |
| 170 | - if (is_file($sub = $path . '/' . $item)) { |
|
| 170 | + if (is_file($sub = $path.'/'.$item)) { |
|
| 171 | 171 | $item_ext = Str::lastIn($item, '.'); |
| 172 | 172 | if ($ext === null || Arr::in($item_ext, $ext)) { |
| 173 | 173 | if ($returnRelative) { |
| 174 | 174 | $files[] = $item; |
| 175 | 175 | } else { |
| 176 | - $files[] = $path . DIRECTORY_SEPARATOR . $item; |
|
| 176 | + $files[] = $path.DIRECTORY_SEPARATOR.$item; |
|
| 177 | 177 | } |
| 178 | 178 | } |
| 179 | 179 | } else { |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | if (isset($this->properties['options']) && Obj::isArray($this->properties['options'])) { |
| 39 | 39 | $options = $this->properties['options']; |
| 40 | 40 | } else { |
| 41 | - throw new SyntaxException('Options for field ' . self::nohtml($this->name) . ' is not defined'); |
|
| 41 | + throw new SyntaxException('Options for field '.self::nohtml($this->name).' is not defined'); |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | // set global field type |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | $options = $this->properties['options']; |
| 36 | 36 | unset($this->properties['options']); |
| 37 | 37 | if (!Obj::isArray($options) || count($options) < 1) { |
| 38 | - throw new SyntaxException('Select field ' . self::nohtml($this->name) . ' have no options passed'); |
|
| 38 | + throw new SyntaxException('Select field '.self::nohtml($this->name).' have no options passed'); |
|
| 39 | 39 | } |
| 40 | 40 | // value is not used there |
| 41 | 41 | unset($this->properties['value']); |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | 'id' => 'src-secure-image', |
| 41 | 41 | 'src' => $image, |
| 42 | 42 | 'alt' => 'secure captcha image', |
| 43 | - 'onClick' => 'this.src=\'' . $image . '&rnd=\'+Math.random()' |
|
| 43 | + 'onClick' => 'this.src=\''.$image.'&rnd=\'+Math.random()' |
|
| 44 | 44 | ]); |
| 45 | 45 | // render response tag with image |
| 46 | 46 | $this->properties['type'] = 'text'; |
@@ -97,9 +97,9 @@ discard block |
||
| 97 | 97 | { |
| 98 | 98 | // looks like a single tag, <img src="" class="" />, <hr class="" /> |
| 99 | 99 | if (Arr::in($name, self::$singleTags)) { |
| 100 | - return '<' . $name . self::applyProperties($properties) . ' />'; |
|
| 101 | - } elseif(Arr::in($name, self::$containerTags)) { // looks like a container tag, <div class=""></div> |
|
| 102 | - return '<' . $name . self::applyProperties($properties) . '>' . $content . '</' . $name . '>'; |
|
| 100 | + return '<'.$name.self::applyProperties($properties).' />'; |
|
| 101 | + } elseif (Arr::in($name, self::$containerTags)) { // looks like a container tag, <div class=""></div> |
|
| 102 | + return '<'.$name.self::applyProperties($properties).'>'.$content.'</'.$name.'>'; |
|
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | // empty response |
@@ -126,9 +126,9 @@ discard block |
||
| 126 | 126 | } |
| 127 | 127 | // sounds like single standalone property, ex required, selected etc |
| 128 | 128 | if ($value === null || $value === false) { |
| 129 | - $build .= ' ' . htmlentities($property, ENT_QUOTES); |
|
| 129 | + $build .= ' '.htmlentities($property, ENT_QUOTES); |
|
| 130 | 130 | } else { // sounds like a classic key="value" property |
| 131 | - $build .= ' ' . htmlentities($property, ENT_QUOTES) . '="' . htmlentities($value, ENT_QUOTES) . '"'; |
|
| 131 | + $build .= ' '.htmlentities($property, ENT_QUOTES).'="'.htmlentities($value, ENT_QUOTES).'"'; |
|
| 132 | 132 | } |
| 133 | 133 | } |
| 134 | 134 | return $build; |