original_string: public static function findIdentities($ids, $scope = null)
      {
          $query = static::find()->where(['id' => $ids]);
          if ($scope !== null) {
              if (is_array($scope)) {
                  foreach ($scope as $value) {
                      $query->$value();
                  }
              } else {
                  $query->$scope();
              }
          }
          return $query->all();
      }
code: public static function findIdentities($ids, $scope = null)
      {
          $query = static::find()->where(['id' => $ids]);
          if ($scope !== null) {
              if (is_array($scope)) {
                  foreach ($scope as $value) {
                      $query->$value();
                  }
              } else {
                  $query->$scope();
              }
          }
          return $query->all();
      }
code_tokens: public static function findIdentities ( $ ids , $ scope = null ) { $ query = static :: find ( ) -> where ( [ 'id' => $ ids ] ) ; if ( $ scope !== null ) { if ( is_array ( $ scope ) ) { foreach ( $ scope as $ value ) { $ query -> $ value ( ) ; } } else { $ query -> $ scope ( ) ; } } return $ query -> all ( ) ; }
docstring: Find users by IDs.
  
  @param $ids Users IDs
  @param null $scope Scope
  
  @return array|\yii\db\ActiveRecord[] Users
docstring_tokens: Find users by IDs .