Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyklay committed May 28, 2018
1 parent 4f2e7cf commit 803b9ed
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG-3.4.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# [3.4.0](https://github.com/phalcon/cphalcon/releases/tag/v3.4.0) (2018-XX-XX)
- Added `Phalcon\Mvc\Router\Route::attach` to add `Route` object directly into `Router` [#13326](https://github.com/phalcon/cphalcon/issues/13326)
- Added `Phalcon\Mvc\Router::attach` to add `Route` object directly into `Router` [#13326](https://github.com/phalcon/cphalcon/issues/13326)
7 changes: 3 additions & 4 deletions phalcon/debug.zep
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ class Debug
var className, prepareInternalClass, preparedFunctionName, html, classReflection, prepareUriClass,
functionName, functionReflection, traceArgs, arguments, argument,
filez, line, showFiles, lines, numberLines, showFileFragment,
beforeLine, firstLine, afterLine, lastLine, i, linePosition, currentLine,
firstLine, lastLine, i, linePosition, currentLine,
classNameWithLink, functionNameWithLink;

/**
Expand Down Expand Up @@ -474,11 +474,10 @@ class Debug
* File fragments just show a piece of the file where the exception is located
*/
if showFileFragment {

/**
* Take seven lines back to the current exception's line, @TODO add an option for this
*/
let beforeLine = line - 7;
int beforeLine = line - 7;

/**
* Check for overflows
Expand All @@ -492,7 +491,7 @@ class Debug
/**
* Take five lines after the current exception's line, @TODO add an option for this
*/
let afterLine = line + 5;
int afterLine = line + 5;

/**
* Check for overflows
Expand Down
2 changes: 1 addition & 1 deletion phalcon/mvc/model/behavior/softdelete.zep
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class SoftDelete extends Behavior
*/
public function notify(string! type, <ModelInterface> model)
{
var options, value, field, updateModel, message, modelsManager, metaData, columnMap;
var options, value, field, updateModel, message, modelsManager, metaData;

if type == "beforeDelete" {

Expand Down

0 comments on commit 803b9ed

Please sign in to comment.