From 93608e0a1349d8fdfa639da8b00e1f8173108a18 Mon Sep 17 00:00:00 2001
From: xamgore <xamgore@ya.ru>
Date: Sun, 8 Mar 2015 16:44:29 +0300
Subject: [PATCH] Some help to the static code analyzer

---
 .../application/classes/Controller/Handler.php       | 12 +++++++++++-
 .../modules/account/classes/Kohana/Account.php       |  2 +-
 ~dev_rating/modules/account/classes/Kohana/User.php  |  2 +-
 3 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/~dev_rating/application/classes/Controller/Handler.php b/~dev_rating/application/classes/Controller/Handler.php
index d36405de5..5c9592a67 100644
--- a/~dev_rating/application/classes/Controller/Handler.php
+++ b/~dev_rating/application/classes/Controller/Handler.php
@@ -1,7 +1,17 @@
 <?php defined('SYSPATH') or die('No direct script access.');
  
 class Controller_Handler extends Controller {
-    protected $user, $post, $get, $model;
+    /** @var  Validation */
+    protected  $post;
+
+    /** @var  Validation */
+    protected $get;
+
+    /** @var  User */
+    protected $user;
+
+    protected $model;
+
     private $access;
     
     const ACCESS_USER = 0; 
diff --git a/~dev_rating/modules/account/classes/Kohana/Account.php b/~dev_rating/modules/account/classes/Kohana/Account.php
index 3674eae8d..f1bcf0b28 100644
--- a/~dev_rating/modules/account/classes/Kohana/Account.php
+++ b/~dev_rating/modules/account/classes/Kohana/Account.php
@@ -9,7 +9,7 @@ class Kohana_Account {
     /**
      * Вовзращает экземпляр класса (singleton-паттерн)
      *
-     * @return  instance
+     * @return self
      */     
     public static function instance() {
         if(!isset(self::$_instance))
diff --git a/~dev_rating/modules/account/classes/Kohana/User.php b/~dev_rating/modules/account/classes/Kohana/User.php
index 9041d3fde..9df487f9f 100644
--- a/~dev_rating/modules/account/classes/Kohana/User.php
+++ b/~dev_rating/modules/account/classes/Kohana/User.php
@@ -12,7 +12,7 @@ class Kohana_User implements ArrayAccess {
     /**
      * Вовзращает экземпляр класса (singleton-паттерн)
      *
-     * @return  instance
+     * @return self
      */     
     public static function instance($state = false) {
         self::$_flag = $state;
-- 
GitLab